2012/01/31

Don’t look at my crystal ball: predicting crashes

Stock market crashes seem to hit with a ferocity and suddenness that suggests we cannot possibly predict their occurrence. With previous crashes, including in 1929, there have been those who argued that a crash was coming because speculation could not be sustained. In “Why stock markets crash: critical events in complex financial systems” Didier Sornette argues that he has found a scientific way to predict crashes.

Heisenberg uncertainty for markets

The problem with predicting stock market crashes is that prediction changes the market. If you make your prediction public, either
  1. very few people believe you and the stock market crashes on its own, or it does not crash because your prediction was wrong; or
  2. a large number of people believe you. They get out of the market or worse, go short. The prediction causes the crash; or
  3. a sizeable number of people believe the prediction may be correct. They adjust. Rather than crash, the market merely wanes. The prediction prevents the crash.
Such a prediction has very little hope of being credible. If the market crashes either you caused the crash, or you were probably just lucky. Preventing the crash, a social good, necessarily destroys your credibility. The only way to make a prediction, then, is to do so in secret. Leave the prediction with a notary who will reveal it after the fact. This is what Sornette did.

There seems to me to be another problem with prediction and that is with the methods used. If you choose to publish your method, this is essentially the same as making very many future predictions public, provided of course people actually use the model. In this case, either the model becomes a good approximation of reality or, quite the opposite, it fails to predict crashes because people adjust correctly whenever the model predicts a crash will occur. The former case is likely to be unstable. It will create a pattern from which traders could profit.

In any case, if you want to make money from your model, you should probably keep it secret. And Sornette has done this as well, not publishing his latest models. The ones I relate here were probably published with some delay.

The mathematics

Sornette tries very hard to describe his models without heavy mathematics and to explain things in a way that a lay man would understand. He fails miserably in this task. With the talk of spontaneous symmetry breaking, goldstone modes, and log-periodic behaviour (concepts from physics and dynamical systems), I was entirely lost. I am no physicist, but I consider myself to be a sophisticated reader and I got no more than the gist of things.

Sornette’s method is based on identifying the log-periodic signature associated with a speculative bubble. Such a bubble, characterised by rapidly rising prices, must eventually burst or wind down. Prices cannot continue to rise at a super-exponential rate forever, as then they will reach infinity in a finite amount of time. There is a point in time at which a crash is then most likely to occur and this is what Sornette tries to find.

Inherent in this is the idea that there is something special about a crash, and the events that precede it. Crashes are not just price drops on a larger scale. They have special properties. If this were not the case, prediction would be impossible.

Here is a horribly simplified version of the model (which I will present without a proper justification for why markets should follow such a pattern). We can suppose that during a speculative bubble the logarithm of prices follows, roughly, a power law of the following form

log(P(t)) = A + B(tc – t)D

With 0 < D < 1 we see that the gradient of the function becomes infinite at tc and the log-price reaches a maximum value of A at this point. tc is the most likely point for the bubble to burst and a crash to ensue. However, the crash can occur earlier and it need not occur at all, if prices wind down more gently. The figure plots one example of such a power law for the 1987 crash with tc = 87.65.

The above figure plots the power-law formula as fitted for a period just before the 1987 crash of the Dow Jones index. (Created using Wolfram Alpha)
Ad absurdum

It is one thing to predict stock market crashes. When the economy is in a speculative frenzy, there are always a few sober individuals who realise it cannot last. It is another thing to predict the course of world events. Sornette applies his techniques to population statistics and other figures to conclude that something, the singularity, is going to happen around 2050. What will it be? Who knows? Sornette provides some fluffy speculation. I suspect this last chapter was added merely to increase sales and should not be taken seriously.

Track record

Sornette reports a small number of actual predictions (made before the events took place). Five crash predictions were made. Two were false alarms, and two (or three, depending on how loosely you define ‘crash’) were successes. This is, of course, a terribly small sample. But even predicting two crashes correctly is something. One can do some math to say whether it is really significant (and Sornette does), but I mistrust such endeavours. Needless to say, I need more convincing.

What is the use?

You can do two things with your ability to predict crashes. You can make money, or at least avoid losses, and you can help prevent future crashes. If people believe the model works, when a crash seems likely to be coming, speculation should slow. The market could become more stable (in fact, it is not clear that it might not rather cause the opposite). Authorities could use the model to decide when to step in. The problem is, if this works, the model will now be a bad predictor of crashes.

It is also precisely when action is needed the most when the model is least likely to be trusted. In a speculative orgy, people want to believe the good times will continue. The model would have failed before. Perhaps it is wrong this time too. I do not believe the Sornette model is likely to have this effect, merely because it does not appear to have been widely adopted. Even if crashes do not occur as predicted by the model, this does not mean they will not occur. They may develop a new pattern, one the model cannot account for.

Final word

Stock market prediction is a perilous business. At best it is imprecise, unreliable. At worst it attracts charlatans and those who would manipulate markets for their own ends. In the midst of a speculative frenzy it seems that we should know better; we should know things cannot last. We seem to be unwilling to predict the end. We can neither trust our models nor our instincts. The former are too simple, the latter too susceptible to fallibility.

References

Sornette, D. (2003). Why stock markets crash. Woodstock: Princeton University Press.

2012/01/26

Blink and trade

I just finished reading the (highly recommended) book Blink by Malcolm Gladwell. It is about those decisions humans can make instantaneously, without conscious thought. It’s about when this works extremely well, and when it fails, sometimes with horrible consequences. My own decisions are the opposite of snap judgements. I consider everything with extreme care, perhaps too much care. Traders often do not have that luxury, especially not, I think, pit traders. What interests me then, is to what extent traders rely on snap judgements and is this a good thing?

Traders, war games and money

Gladwell relates a tale about General Van Riper, at a time when the US government was conducting very expensive war games. Van Riper thought there was something to be learnt from trading, and so the army played some trading games. What is more, he took some traders to play war games and found that they were very good. They were able to make the rapid assessments under high pressure that were needed. It was clear that the army and traders were “fundamentally engaged in the same business – the only difference being that one group bet on money and the other bet on lives.” George Soros, reportedly, owes much of his success to this kind of instinctive decision-making. His back starts to hurt and he changes his market position.

The good, the bad, the ugly

Blink decisions can be very good. They avoid over-analysis. They allow people to react within the necessary amount of time. And they can, under the right circumstances, be as good or better than decisions made with careful and tiresome deliberation.

The problem, of course, is getting those right circumstances. Snap judgements can fail horribly, such as when a policy officer shoots an unarmed suspect, seeing a gun that was never there. But such snap judgements can also allow you to avoid getting killed. In general, experience and practice, allow for better snap judgements. Is it thus possible for traders to get a feel for the markets based on their experience, a sense, a tingling, that they cannot perhaps explain, that allows them to avoid losses or make profits?

The problem is that markets are so very random. The information a trader sees is peppered with irrelevancies. There is, perhaps, no pattern. Our brains are very good at sifting through information and focussing on what’s really important. But it can also get fooled. I am not sure whether the markets are more likely to fool the brain or not. All the evidence for biases in human decision-making would suggest caution is warranted.

It is usually thought that deliberated decisions should be at least as good as snap judgements. This is often not the case. We can get swamped by information. We make errors because we cannot identify what is truly relevant. We get distracted by things we might be better off not considering. In the markets, more information is not necessarily better. Much of it is irrelevant, meaningless, in any case.

Snap judgements, of course, cannot be scrutinised. The mechanisms behind them are hidden from our conscious minds. We cannot, rationally, justify them. “I had a feeling,” is not a good enough explanation for entering a trade that lost a lot of money. And, even if some traders were good at making such snap decisions, not all of them would be. It might be hard to distinguish them.

Final word

I do not think this is a topic which has been much studied. I can, therefore do little but pose some interesting questions. Are trader snap judgements good? Can they be improved with training or by changing the environment in which those decisions are made (such as limiting the information a trader sees)? Should traders rely more or less on snap judgements?

Reference

Gladwell, M. (2005). Blink. New York: Little, Brown and Company.

2012/01/24

Markets as complex systems

Markets are driven by people (and, lately, algorithms). Their decisions (driven by their motives) drive prices. However, economic theory has had little to say about how these interactions ‘add up’ to give the aggregate market dynamics we observe. It is a convenient excuse to say that markets are efficient, and so what we observe must be because of news events, which people immediately react on and incorporate in prices. This seems a little fanciful. We may consider instead what some have called the interacting agents hypothesis, which says that we can explain (inefficient) market behaviour by looking at the aggregation of individual interactions. I recently examined a class of models based on dynamical systems theory that does just this.

What we are trying to explain

In virtually all markets a number of stylised facts have been found. The ones that contradict the standard model of financial markets (the random walk model) have often been called anomalies, as if they are aberrant and infrequent. They are not. It is the standard model that is aberrant. Here are the things I mean

Unit roots

Standard tests of whether markets follow a random walk (whether they have a unit root) are unable to reject it. This would, on its own, seem to confirm the standard model. However, there is ample other evidence of market behaviour to reject it. That these standard tests thus still give this result is very interesting.

Fat tails

Market returns exhibit fat tails. Technically, it means that they have a distribution with a high kurtosis. This means that very large price movements as well as negligible price movements occur more frequently than the standard model would predict. A very interesting feature of the returns distribution is that the fat tails are observed for daily returns, but monthly and yearly returns appear to be approximately normal. One could argue that even daily returns are made of thousands of intra-daily returns – if these followed the standard model, the daily returns would have a normal distribution by the central limit theorem. Why is it not applying, or why is it acting so slowly? The interacting agents models attempt to explain it by including dependencies between agents (remember that the central limit theorem needs independent observations).

Volatility clustering

The market has periods of relative calm interspersed with periods of highly volatile prices. The autocorrelations absolute returns (and to lesser extent squared returns) is high. Markets are well-behaved most of the time, but sometimes something happens....

Dynamical systems

Dynamical systems theory, also known as chaos theory is a branch of mathematics that looks at the interactions of many particles. Non-linear interactions (even if each particle behaves according to a relatively simple set of rules) can result in surprisingly rich behaviour of the system as a whole, know as emergent properties. I have mentioned chaos theory before because it naturally leads to power law behaviour. These systems may have infrequent but sudden transitions, corresponding to critical points (or singularities) where the system makes a transition from disorder to order. Such properties may explain the relative calmness of markets most of the time, interspersed with periods of volatility.

The models

The models I have looked at use two kinds of agents, chartists and fundamentalists. The former are technical analysts, trend followers. They are supposed to exaggerate market movements. The latter believe the market will return to its fundamental price. They are supposed to have a stabilising effect on prices as they buy when prices are below fundamental value and sell when they are above. I have written about these investment philosophies before.

The basic mechanism of these models is imitation. Chartists may be optimistic (buyers) or pessimistic (sellers). This mood (of optimism or pessimism) can spread from trader to trader like a virus. As such it can be called contagion, infection, or herding. This is a simple way of modelling trader psychology. There is a force that results in people getting on the bandwagon. And the more people there are on already, the stronger the force. This is not necessarily irrational. It makes sense to look at the opinions of your peers as this provides information (especially if you do not have other information). For traders it may be very important not to underperform the rest of the market (as this may get them fired). The surest way to prevent this from happening is to follow the crowd.

As long as people have different opinions, i.e. no one group of traders dominates, the market is in a state of disorder. Participants' actions tend to counteract each other and the market is stable. When any one group dominates order is created in the market. Many traders agree and take the same action. Their actions reinforce each other and in the case of a dominance of optimistic (or pessimistic) noise traders, exaggerate market movements away from the fundamental value. It is the actions of fundamental traders, who then act on the mispricing, that drives the prices back toward fundamental value. These models thus explain intermittent waves of optimism and pessimism. The data generated appear to fit the stylized facts.

Caveat

Dynamical systems models are analytically intractable. We need to be happy with either grossly oversimplified models or else only approximate or simulated results. Even the more complicated models are a drastic oversimplification of reality. They may provide a useful explanatory tool, but applying them in a useful way, may still be a way off. Although I have heard of trading being done with chaos theory models, I do not know what form they take. There is certainly a lot interesting research that can still be done.

One important point that must be made is that these models do not (and cannot) prove that the efficient markets hypothesis (EMH) is incorrect. In fact, none of the stylized facts I mentioned contradict the EMH (they do however contradict the far stronger notion that markets follow a random walk). Human behaviour, at least, is partly observable (maybe even quantifiable) whereas the supposed news process driving fundamental prices is far more ethereal. If the source of market turmoil is primarily from trader behaviour, then we may hope to curtail it by appropriate policies and education. However, very little can be done if it follows from fundamental processes.

Disclaimer

I do not fully understand the models I have written about myself. I do not (yet) have the necessary mathematical knowledge. If you want to know more please see the essay I wrote which gives a more in depth discussion and references.

References

Please see my essay on this topic.

2012/01/22

Imaginary Alpha

Alpha is what hedge funds sell. It is the skill of the investment manager(s), allowing them to earn a higher return than justified merely by the amount of risk they take. In practice this means earning more than a simple index fund. For this excess return, hedge funds charge higher fees. Presumably this is justified. In an efficient market alpha would be zero – there would be no way to earn (on average) higher returns than the market as a whole. No one (except economists and some MBA students) believes markets are efficient anymore. However, since 1998, hedge fund clients (in the US) have earned on average only half the rate of return on treasuries.

Self-selection bias

Indices of hedge fund performance suffer from a crucial flaw which make them (in my opinion) all but useless. Reporting to the indices is voluntary. And as such only hedge funds that perform well will start to report. Those that perform badly will stop reporting. The indices thus overstate hedge fund returns.

It has been argued that this may well be offset by the fact that the top-performing hedge funds may also choose not to report. They may do so because they have already raised enough capital or because they no longer need the exposure.

It would, however, appear that the latter effect is far smaller than the former, making any studies based on this data (which is most studies up to this point) suspect.

Damnation

A recent study by Aiken, Clifford and Ellis indicates that hedge fund alpha may well be much lower than previously thought. They find that, in fact, most of the alpha of hedge funds is explained by their decision to report (or not) in the commercial indices. In order to get past the self—selection problem they use the figures of funds of funds registered with the Securities and Exchange Commission. These funds invest in other hedge funds, whose returns can thus be scrutinised.

Funds that stop reporting afterward have dramatically lower returns than those that continue. The delisted funds continue to operate for some time and contribute zero alpha. This would still mean a positive alpha for hedge funds overall, but smaller than given by only examining the reporting funds.

Why not invest only in funds that do report returns? The hedge fund sector is illiquid – it takes time to get your money out. There is also a lag in the reporting of returns. An investor cannot be sure that a hedge will report its most recent returns.

Another problem (not tackled by the paper) is that some funds may perform well when they are small, which allows them to attract more money. This performance may or may not be simply due to luck. However, when (not if) the fund performs badly, its cash losses may well exceed all previous gains, simply because it now has more money. Investors, on average, lose out.

The above can be applied to the industry as a whole. When it was small, it was making high returns, and attracted capital from various sources. However, the losses in 2008, may have wiped out all cumulative gains in the industry going back ten years.

Caveats

The Aiken, Clifford and Ellis paper does suffer from flaws and these should be considered when evaluating the results. For instance, the period studied is from 2004 to 2009. It may be that a longer time period (or a future time period) gives different results. There is at least one study that finds no evidence of a selection bias due to the fact that funds that perform well may choose to stop reporting after having raised sufficient capital. The Aiken, Clifford and Ellis study itself has a selection bias, in that it only examines hedge funds that are invested in by funds of funds reporting to the SEC. The authors do, however, perform various tests which suggest that this results in no systematic errors. The statistical methods used are based on normal theory and as returns patently do not follow normal distributions, results should be treated with some scepticism. However, this latter point applies to most financial papers.

The dilemma

Hedge fund managers earn very large fees. They have done so, despite that their clients have walked away with meagre returns. This raises the question of whether the alpha displayed by some managers is anything more than mere luck. People have trouble believing in luck. They attribute high returns to skill. This is good for hedge fund managers, but it may be very bad for investors.

Some references
  • Aiken, A. L., Clifford, C. P., & Ellis, J. (2010). Out of the dark: Hedge fund reporting biases and commercial databases. Finance.
  • The Economist. (2012a). Hedge fund returns: More damning data. The Economist. Retrieved January 21, 2012, from http://www.economist.com/blogs/buttonwood/2012/01/hedge-fund-returns?fsrc=scn/fb/wl/bl/moredamningdata
  • The Economist. (2012b). Rich managers, poor clients. The Economist. Retrieved January 21, 2012, from http://www.economist.com/node/21542452
  • Wikipedia. (2012). Alpha (investment). Wikipedia. Retrieved January 21, 2012, from http://en.wikipedia.org/wiki/Alpha_(investment)