• Plunging into uncertainty

  • Building an Alpha Model with Senticon

  • Adapting Senticon for Risk Models

  • Trading with Senticon

  • Risk Measures

  • Intro

  • Alpha

  • Risk

  • Execution

  • Portfolio

  • Conclusion

  • References

  • Ludic Fallacy

  • VAR

  • Tail Conditions

  • Counterparty Risk

  • Systemic Risk

  • Long Gamma

  • “Optionality is Promethean, narrative is Epimethean.”
    N. N. Taleb

  • We humans are creatures of narrative. This serves us well in the string of interactions that our life - itself a narrative - consists of. However, place us in an environment characterized by coalescence of millions of individual narratives, and our neural predispositions are quickly relocated next to our appendix at the corner of Vestigial and Curious.

    When immersed in emergent phenomena, whether they be prices on a ticker or hashtags on twitter, our ability to predict is almost completely compromised. Simply put, we’re just not wired to think in aggregates. We abstract the aggregates and create a higher-order emergent system, one that is characterized by a very small number of newer, emergent narratives, and attempt to attack the problem of prediction with this newer, larger, and diluted tool.

    How good is our “new” story, our abstracted model of an emergent system? Let us consider a framework to evaluate predictive models in our far-too-often inconveniently uncooperative reality. At the very least, this framework will hopefully help frame conversations around the swarmsignals content.

  • “What did I think would happen?”
    Jim Lebenthal, ‎Bernice Kanner

  • The objective of any model is to predict some aspect of the system it is modeling. It takes in some set of data, and outputs a prediction. As no model can be completely accurate, some level of error is expected.

    Alpha models can be either theory driven or data driven. Theory driven models detail what should happen based on behavioral assumptions on how outputs of the model relate to inputs. Data driven models rely on techniques such as data mining and other statistical methods to determine behavioral relationships between inputs and outputs, and assume those relationships will hold going forward.

    Here at swarmsignals, we will initially be focusing on data driven models. However, building theory driven models is not entirely out of scope. Consider, for example, a model that predicts next quarter’s performance based on the levels of stress detected in the voices of the conference call for this quarter. Or, perhaps, a model that monitors cellphone traffic at various locations and attempts to derive macroeconomic assumptions as well as retail traffic.

    The understanding of what kind of model we are working with is important, when attempting to use tools such as correlation and multi-parameter optimization to backtests. Additionally, the type of model also has implications on what parameters are allowed to vary: a data driven model, for example, may allow significant variance of the model parameters themselves, as no narrative constrains our model; however, a theory driven model may not be modified beyond the bounds of the narrative imposed by the theory.

  • “If a man is both wise and lucky, he will not make the same mistake twice. But he will make any one of the ten thousand brothers or cousins of the original. The mistake family is so large that there is always one of them around when you want to see what you can do in the fool-play line.”
    Jesse Livermore

  • Risk models represent the nemesis generated by any position taken in response to an alpha model. They attempt to quantify how much taking a position can lose. Risk models can quantify types of risk, amount of risk, or both.

    In the last two decades, a lot of work has been focused on characterizing risk via various models, ranging from risk incurred by a single position (VaR, Extreme Value Theory, etc.) to risk at a systemic level (NYU’s V-Lab’s various methods).

    From a financial trading perspective, trades are ideally structure so that the risk/reward is extremely asymmetric, such that our exposure allows for the most gain with the least risk. Operationally, Jamie Mai of Cornwall Capital and Michael Burry of Scion Capital are excellent examples of how this can be done.

    It is important to note that risk models represent more than just “stop” or “max pain” levels. If the trade is designed to be held overnight, risk models must incorporate gap risk, perhaps using tools such Average True Range (ATR).

  • “Guessing what the pitcher is going to throw is 80% of being a successful hitter. The other 20% is just execution.”
    Hank Aaron

  • Once we have understood what we expect to happen (alpha) and the risk we incur by taking a position (risk), all that remains is to take the position. Execution models quantify the details in actually taking the position.

    Execution models may include transaction costs (although frequently, transaction costs are given their own model). They usually include the trading venue for the instrument in question, positioning strategy, and order types.

    Execution models also frequently include the cost of exiting the position, for both unfavorable or favorable exit conditions.

  • “Life is a series of natural and spontaneous [portfolio choices]. Don’t resist them; that only creates sorrow. Let reality be reality.”
    Lao Tzu (paraphrased)

  • The metrics resulting from the alpha, risk, and execution models described above can be used to make a decision of whether to take a particular position or not. However, once this decision has been made, the question of asset allocation arises. What to allocate, and how often to change the allocation, are decisions handled at the portfolio level.

    Broadly speaking, there are rule-based portfolio models (such as Ed Throp’s Kelly-criteria based models, or models that rely on each strategy’s equity curve), and optimizer models. Optimizer models are a field under heavy research currently, especially due to complexities involved with calculating the risk incurred over the entire portfolio.

    Portfolio models are often subject to transaction costs as the portfolio is rebalanced to address the changing risk profile as it evolves with time. For example, a modern delta-neutral model will adjust positions to accommodate the changing delta of its positions at varying time intervals. For an accurate understanding of how a set of strategies perform with a given portfolio model, these costs must be accounted for.

  • “If we knew what it was we were doing, it would not be called research, would it?”
    Albert Einstein

  • With the above main models, we can start collecting performance statistics of our portfolio. These metrics can then feed back to our various models as desired.

    The following image sums up the process of a single iteration.

    The above framework represents just one of many possible frameworks for trade and portfolio structure, but it is one that should offer a good starting point for discussion on use of the data offered by swarmsignals.

    As the saying goes, the way to get started is to quit talking and begin doing. To that end, I hope to tackle building trading models with senticon data in my next post.

  • The ludic fallacy is a term coined by Nassim Nicholas Taleb in his 2007 book The Black Swan. “Ludic” is from the Latin ludus, meaning “play, game, sport, pastime.”[1] It is summarized as “the misuse of games to model real-life situations.”[2] Taleb explains the fallacy as “basing studies of chance on the narrow world of games and dice.”[3]

    It is a central argument in the book and a rebuttal of the predictive mathematical models used to predict the future – as well as an attack on the idea of applying naïve and simplified statistical models in complex domains. According to Taleb, statistics works only in some domains like casinos in which the odds are visible and defined. Taleb’s argument centers on the idea that predictive models are based on platonified forms, gravitating towards mathematical purity and failing to take some key ideas into account:

  • In financial mathematics and financial risk management, value at risk (VaR) is a widely used risk measure of the risk of loss on a specific portfolio of financial assets. For a given portfolio, probability and time horizon, VaR is defined as a threshold value such that the probability that the mark-to-market loss on the portfolio over the given time horizon exceeds this value (assuming normal markets and no trading in the portfolio) is the given probability level.[1][clarification needed]

    For example, if a portfolio of stocks has a one-day 5% VaR of $1 million, there is a 0.05 probability that the portfolio will fall in value by more than $1 million over a one day period if there is no trading. Informally, a loss of $1 million or more on this portfolio is expected on 1 day out of 20 days (because of 5% probability). A loss which exceeds the VaR threshold is termed a “VaR break.”[2]

    VaR has four main uses in finance: risk management, financial control, financial reporting and computing regulatory capital. VaR is sometimes used in non-financial applications as well.[3]

{"cards":[{"_id":"3799ffb8d7eb44eb99000019","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":null,"content":"Plunging into uncertainty"},{"_id":"379a004ad7eb44eb9900001a","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"3799ffb8d7eb44eb99000019","content":"Intro"},{"_id":"37aab582793f94d05a000020","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a004ad7eb44eb9900001a","content":"“Optionality is Promethean, narrative is Epimethean.”\n N. N. Taleb"},{"_id":"37aabf1665c4e8fd0a000013","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a004ad7eb44eb9900001a","content":"\nWe humans are creatures of narrative. This serves us well in the string of interactions that our life - itself a narrative - consists of. However, place us in an environment characterized by coalescence of millions of individual narratives, and our neural predispositions are quickly relocated next to our appendix at the corner of Vestigial and Curious.\n\nWhen immersed in emergent phenomena, whether they be prices on a ticker or hashtags on twitter, our ability to predict is almost completely compromised. Simply put, we’re just not wired to think in aggregates. We abstract the aggregates and create a higher-order emergent system, one that is characterized by a very small number of newer, emergent narratives, and attempt to attack the problem of prediction with this newer, larger, and diluted tool.\n\nHow good is our “new” story, our abstracted model of an emergent system? Let us consider a framework to evaluate predictive models in our far-too-often inconveniently uncooperative reality. At the very least, this framework will hopefully help frame conversations around the swarmsignals content.\n"},{"_id":"379a00c9d7eb44eb9900001b","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"3799ffb8d7eb44eb99000019","content":"Alpha"},{"_id":"37aac7dd65c4e8fd0a000019","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a00c9d7eb44eb9900001b","content":"\"What did I think would happen?\" \nJim Lebenthal, ‎Bernice Kanner"},{"_id":"37aacfac65c4e8fd0a00001a","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a00c9d7eb44eb9900001b","content":"The objective of any model is to predict some aspect of the system it is modeling. It takes in some set of data, and outputs a prediction. As no model can be completely accurate, some level of error is expected.\n\nAlpha models can be either theory driven or data driven. Theory driven models detail what **should** happen based on behavioral assumptions on how outputs of the model relate to inputs. Data driven models rely on techniques such as data mining and other statistical methods to determine behavioral relationships between inputs and outputs, and assume those relationships will hold going forward.\n\nHere at swarmsignals, we will initially be focusing on data driven models. However, building theory driven models is not entirely out of scope. Consider, for example, a model that predicts next quarter's performance based on the levels of stress detected in the voices of the conference call for this quarter. Or, perhaps, a model that monitors cellphone traffic at various locations and attempts to derive macroeconomic assumptions as well as retail traffic. \n\nThe understanding of what kind of model we are working with is important, when attempting to use tools such as correlation and multi-parameter optimization to backtests. Additionally, the type of model also has implications on what parameters are allowed to vary: a data driven model, for example, may allow significant variance of the model parameters themselves, as no narrative constrains our model; however, a theory driven model may not be modified beyond the bounds of the narrative imposed by the theory."},{"_id":"379a00f0d7eb44eb9900001c","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":3,"parentId":"3799ffb8d7eb44eb99000019","content":"Risk"},{"_id":"37ab2a2065c4e8fd0a000020","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a00f0d7eb44eb9900001c","content":"\"If a man is both wise and lucky, he will not make the same mistake twice. But he will make any one of the ten thousand brothers or cousins of the original. The mistake family is so large that there is always one of them around when you want to see what you can do in the fool-play line.\"\nJesse Livermore"},{"_id":"37ab34ab65c4e8fd0a000021","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a00f0d7eb44eb9900001c","content":"Risk models represent the nemesis generated by any position taken in response to an alpha model. They attempt to quantify how much taking a position can lose. Risk models can quantify types of risk, amount of risk, or both. \n\nIn the last two decades, a lot of work has been focused on characterizing risk via various models, ranging from risk incurred by a single position (VaR, Extreme Value Theory, etc.) to risk at a systemic level (NYU's V-Lab's various methods). \n\nFrom a financial trading perspective, trades are ideally structure so that the risk/reward is extremely asymmetric, such that our exposure allows for the most gain with the least risk. Operationally, Jamie Mai of Cornwall Capital and Michael Burry of Scion Capital are excellent examples of how this can be done.\n\nIt is important to note that risk models represent more than just \"stop\" or \"max pain\" levels. If the trade is designed to be held overnight, risk models must incorporate gap risk, perhaps using tools such Average True Range (ATR). "},{"_id":"379a0111d7eb44eb9900001d","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":4,"parentId":"3799ffb8d7eb44eb99000019","content":"Execution"},{"_id":"37ab8d9e65c4e8fd0a000027","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a0111d7eb44eb9900001d","content":"\"Guessing what the pitcher is going to throw is 80% of being a successful hitter. The other 20% is just execution.\"\nHank Aaron "},{"_id":"37abdfbd65c4e8fd0a000029","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a0111d7eb44eb9900001d","content":"Once we have understood what we expect to happen (alpha) and the risk we incur by taking a position (risk), all that remains is to take the position. Execution models quantify the details in actually taking the position.\n\nExecution models may include transaction costs (although frequently, transaction costs are given their own model). They usually include the trading venue for the instrument in question, positioning strategy, and order types. \n\nExecution models also frequently include the cost of exiting the position, for both unfavorable or favorable exit conditions."},{"_id":"379a0142d7eb44eb9900001e","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":5,"parentId":"3799ffb8d7eb44eb99000019","content":"Portfolio "},{"_id":"37ac14a4a7dce5c1bb000019","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a0142d7eb44eb9900001e","content":"\"Life is a series of natural and spontaneous [portfolio choices]. Don't resist them; that only creates sorrow. Let reality be reality.\"\nLao Tzu (paraphrased)"},{"_id":"37b94f96db6a09137000001a","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a0142d7eb44eb9900001e","content":"The metrics resulting from the alpha, risk, and execution models described above can be used to make a decision of whether to take a particular position or not. However, once this decision has been made, the question of asset allocation arises. What to allocate, and how often to change the allocation, are decisions handled at the portfolio level.\n\nBroadly speaking, there are rule-based portfolio models (such as Ed Throp's Kelly-criteria based models, or models that rely on each strategy's equity curve), and optimizer models. Optimizer models are a field under heavy research currently, especially due to complexities involved with calculating the risk incurred over the entire portfolio. \n\nPortfolio models are often subject to transaction costs as the portfolio is rebalanced to address the changing risk profile as it evolves with time. For example, a modern delta-neutral model will adjust positions to accommodate the changing delta of its positions at varying time intervals. For an accurate understanding of how a set of strategies perform with a given portfolio model, these costs must be accounted for."},{"_id":"379a01add7eb44eb99000020","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":6,"parentId":"3799ffb8d7eb44eb99000019","content":"Conclusion"},{"_id":"37b9b525db6a09137000001c","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"379a01add7eb44eb99000020","content":"\"If we knew what it was we were doing, it would not be called research, would it?\"\nAlbert Einstein"},{"_id":"37b9b9d7db6a09137000001d","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":"379a01add7eb44eb99000020","content":"With the above main models, we can start collecting performance statistics of our portfolio. These metrics can then feed back to our various models as desired.\n\nThe following image sums up the process of a single iteration. \n![](https://dl.dropboxusercontent.com/u/17386936/building_a_trade.PNG)\n\nThe above framework represents just one of many possible frameworks for trade and portfolio structure, but it is one that should offer a good starting point for discussion on use of the data offered by swarmsignals.\n\nAs the saying goes, the way to get started is to quit talking and begin doing. To that end, I hope to tackle building trading models with senticon data in my next post.\n"},{"_id":"37ab7fdb65c4e8fd0a000024","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":6.5,"parentId":"3799ffb8d7eb44eb99000019","content":"References"},{"_id":"37ab803c65c4e8fd0a000025","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":1,"parentId":"37ab7fdb65c4e8fd0a000024","content":"1. **Inside the Black Box**, Narang, Wiley Finance\n2. **Financial Technology: Algorithmic Trading and Social Media Analytics**, http://talks.cam.ac.uk/talk/index/41207 \n3. **A Computational Social Science Environment for \nFinancial/Economic Experiments**, Michal Galas, Dan Brown and Philip Treleaven, http://computationalsocialscience.org/wp-content/uploads/2012/09/GalasEtAl2012.pdf"},{"_id":"37aae17aab3e87efd000002b","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":2,"parentId":null,"content":"Building an Alpha Model with Senticon"},{"_id":"37aae3ceab3e87efd000002c","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":3,"parentId":null,"content":"Adapting Senticon for Risk Models"},{"_id":"37aae53dab3e87efd000002d","treeId":"3799ff36d7eb44eb99000017","seq":1,"position":4,"parentId":null,"content":"Trading with Senticon"},{"_id":"458748cae9945b473500002c","treeId":"3799ff36d7eb44eb99000017","seq":262728,"position":5,"parentId":null,"content":"Risk Measures"},{"_id":"45874ef4e9945b473500002d","treeId":"3799ff36d7eb44eb99000017","seq":262729,"position":1,"parentId":"458748cae9945b473500002c","content":"Ludic Fallacy\n"},{"_id":"45875afce9945b4735000034","treeId":"3799ff36d7eb44eb99000017","seq":262764,"position":1,"parentId":"45874ef4e9945b473500002d","content":"The ludic fallacy is a term coined by Nassim Nicholas Taleb in his 2007 book The Black Swan. \"Ludic\" is from the Latin ludus, meaning \"play, game, sport, pastime.\"[1] It is summarized as \"the misuse of games to model real-life situations.\"[2] Taleb explains the fallacy as \"basing studies of chance on the narrow world of games and dice.\"[3]\n\nIt is a central argument in the book and a rebuttal of the predictive mathematical models used to predict the future – as well as an attack on the idea of applying naïve and simplified statistical models in complex domains. According to Taleb, statistics works only in some domains like casinos in which the odds are visible and defined. Taleb's argument centers on the idea that predictive models are based on platonified forms, gravitating towards mathematical purity and failing to take some key ideas into account:"},{"_id":"45874f24e9945b473500002e","treeId":"3799ff36d7eb44eb99000017","seq":262730,"position":2,"parentId":"458748cae9945b473500002c","content":"VAR"},{"_id":"45878e41e9945b4735000035","treeId":"3799ff36d7eb44eb99000017","seq":262765,"position":1,"parentId":"45874f24e9945b473500002e","content":"In financial mathematics and financial risk management, value at risk (VaR) is a widely used risk measure of the risk of loss on a specific portfolio of financial assets. For a given portfolio, probability and time horizon, VaR is defined as a threshold value such that the probability that the mark-to-market loss on the portfolio over the given time horizon exceeds this value (assuming normal markets and no trading in the portfolio) is the given probability level.[1][clarification needed]\n\nFor example, if a portfolio of stocks has a one-day 5% VaR of $1 million, there is a 0.05 probability that the portfolio will fall in value by more than $1 million over a one day period if there is no trading. Informally, a loss of $1 million or more on this portfolio is expected on 1 day out of 20 days (because of 5% probability). A loss which exceeds the VaR threshold is termed a \"VaR break.\"[2]\n\nVaR has four main uses in finance: risk management, financial control, financial reporting and computing regulatory capital. VaR is sometimes used in non-financial applications as well.[3]"},{"_id":"45874f43e9945b473500002f","treeId":"3799ff36d7eb44eb99000017","seq":262731,"position":3,"parentId":"458748cae9945b473500002c","content":"Tail Conditions"},{"_id":"45874f67e9945b4735000030","treeId":"3799ff36d7eb44eb99000017","seq":262732,"position":4,"parentId":"458748cae9945b473500002c","content":"Counterparty Risk"},{"_id":"45875a73e9945b4735000031","treeId":"3799ff36d7eb44eb99000017","seq":262747,"position":5,"parentId":"458748cae9945b473500002c","content":"Systemic Risk"},{"_id":"45875a9fe9945b4735000032","treeId":"3799ff36d7eb44eb99000017","seq":262748,"position":6,"parentId":"458748cae9945b473500002c","content":"Long Gamma"}],"tree":{"_id":"3799ff36d7eb44eb99000017","name":"Swarm Blog","publicUrl":"swarm-blog-plunging-into-uncertainty"}}