Showing posts with label EMH. Show all posts
Showing posts with label EMH. Show all posts

Friday, 6 December 2013

Randomness

One of the most famous stories about the randomness of markets is the following: One day, Burton Malkiel, one of the leading proponents of the Efficient Market Hypothesis decided to perform an experiment. A hypothetical starting value of a stock was set, and the closing price of each day was determined by the flip of a coin. If for example it was heads, the stock price rose by a point. If it was tails, then it fell by a point. Thus, the probability of the price increasing or decreasing was the same at 50%. When he had accumulated a large set of observations he presented this to a chartist who was unhappy when he found out that it was just a random sequence since he had advised Malkiel to buy. 

A similar graph can be seen below. Using Excel's random numbers generator, I set the price to increase if the number generated was higher than 0.5 and to decrease if the number was less than that. Starting price was 50.

Figure 1
The trend observed here is random, (or quasi-random as most random generators are) and could have just as easily have been downwards. After the first experiment I have to admit I got a bit carried away, which led to the following two graphs:
Figure 2

Figure 3
The graphs compliment the EMH greatly: what appears to be a meaningful trend is in fact random combinations of random numbers. Or are they? In fact, neither Figure 2 nor Figure 3 are random. Figure 2 uses the digits of pi (the known mathematical constant of 3.14159...) with a starting value of 50 and changing signs at each change of decimal. Although some might claim that pi is in fact random (although these people highly doubt it) it is not strictly random in the sense that individual digits are mathematically fixed and not prone to changes.

For those who find it hard to believe that this is not randomness but it follows a "specific" pattern, have a look at Figure 3: this is nothing but Euler's constant which is mathematically anything but random, as it is the limit of (1+1/n)^n as n goes to infinity and can be approximated by
Thus, even though the trend appears to be random, it is in fact just as deterministic as 1,2,3,4.

Why the whole fuss about this the reader may ask. Well, since the mid 1960's when Fama published his Efficient Market Hypothesis paper, many have been promoting that markets are in fact random and cannot be predicted. I would beg to differ. Although markets do reflect information, and no-one can doubt that, I think we can safely say that they are not random in their reactions. Just like the two graphs above, what appears to be random may be just that we have no information about it yet. Even though the sequence of numbers like pi or e are relatively easy to spot using modern-day computers, its sequence is not one which we can follow in the long-run.

Don't get me wrong here: no full predictability exists in the markets. They are driven by information as already said, and some information is indeed random (e.g. natural catastrophes, etc) while other is not. If all information was random then there wouldn't be people betting on the collapse of Lehman Brothers or shorting Mortgage-Backed Securities (MBS) (Michael Lewis's "The Big Short" provides an interesting read on those who managed to short before the sub-prime lending crisis).

To some extent, markets can be predictable. Not to everyone and not every person making a prediction will be correct all of the time. In fact, most investors understand what if they are correct 60-70% of the time they will become extremely successful. Timing is hard. As Nassim Nicholas Taleb says, nothing is easier than to say "we could have seen this coming" after the event. As stated before, there are things which are random and there are others which are not. Nevertheless, stating that markets are random because you cannot understand them is the same as a hunter blaming everyone else but himself because he cannot shoot well enough to catch his prey.

Friday, 8 November 2013

The EMH vs MPT redux: Does Distribution Matter?

One of the posts that have stirred most comments and provoked interesting discussions on this blog is the one on the contradiction between the EMH and the MPT. In a nutshell, in it I claim that if the EMH holds and prices are random then no prediction can be made about the future of a portfolio based on previous prices. A common criticism I usually get is that the EMH does not say that prices are fully random but that they follow a distribution which (in the long run) does not allow for excess returns since prices are anticipated perfectly and thus are random (as per Samuelson 1965).

The first question we then have to answer is what randomness is. The Wikipedia definition of a random variable is "a variable whose value is subject to variations due to chance (i.e. randomness, in a mathematical sense). As opposed to other mathematical variables, a random variable conceptually does not have a single, fixed value (even if unknown); rather, it can take on a set of possible different values, each with an associated probability." Basically, a random variable is one that we do not know the outcome but we rely on probabilities to estimate it.

The most common and widely used distribution in statistics is the normal. Basically the normal encompasses 99.7% of all possible outcomes if one calculates its mean plus, minus 3 variances. Probability-wise, it says that the most efficient estimate would be the mean, which, for example has an 8% chance of occurring if the game is toss a coin for 100 repetitions. Thus, proponents may add, although we cannot forecast the outcome with accuracy it is quite possible that we can forecast the long-term distribution of returns. 

Let's think about this for a second. When we say that we know the distribution it means that we can be certain that any outcome will be part of it. The probability of the range of the outcome may be large or small but still it would have to be part of our distribution. Such a distribution is not hard to create. We know for example that a stock cannot fall to less than 0 (i.e. 100%) in any time-frame thus we may use that as the lower limit and build a higher limit from there. We would not even care about the skewness of the distribution as a 200% increase is possible but a 200% decrease is not. Thus, such a distribution, either based on past data or constructed by the analyst is not a difficult task. Up to this point the MPT and the EMH appear quite complementary: the first defines that risk-adjusted returns may be obtained by utilizing past price data and the latter confirms that no excess returns may occur from that.

Yet, the magic word here is the long-term. What is the long-term? Although there is no standard definition I would say that the short-term is the time when we do not have enough data to "significantly affect" our distribution. If I have 200 data points then 10 points make a difference; if I have 200,000 points then 10 points do not matter at all. Thus, in the latter we have a short-run. The MPT basically says nothing about short-run dynamics. It doesn't know what will happen in the short run since the assumption of a normal distribution does not allow it to know; remember that a distribution is useful in predicting large samples but terrible in single observations. In other words, the probability of finding the exact return is zero.

Thus, in the short run the MPT allows the model, via its statistical distribution not to abide by its rules. In fact, it does not care if it abides by its rules. All it cares is that in the long-run, whatever that may be, the average return is the one predicted by the data. Yet, this means that in the short-run, for example a daily return or an hourly return may be higher than the mean. In other words, excess returns may be gained from actions. This is not against statistics as returns will move in the distribution, both up and down. Yet, in the long-term they should not be in excess of the expected return.

So far, I have not moved away from anything that any reader with a basic understanding of statistics does not know and neither have I proposed anything that the student of the MPT or the EMH is unaware of. Yet the consequences of accepting that in the short-run an investor could earn excess returns is something odd in the EMH literature. The EMH states that "one cannot consistently achieve returns in excess of average market returns on a risk-adjusted basis" which is rather in disagreement with what we have suggested before. Basically, the MPT does not really deny the possibility of excess returns. It merely wishes to either maximize return given risk or minimize risk given return. This does not, in any sense, mean that excess returns are "forbidden" or impossible. They may be hard to be achieved or they may not be achieved by many but they are allowed to happen.

In contrast the EMH does not accept that any such possibility exists (even in its weak form the long-run consistency of excess returns is not allowed). In the long-run, nobody will outperform the market. No matter how short or long the definition is, people are not "allowed" to win excess returns. As already said, not only does the MPT allow for such deviations and it does not even care about them. If excess returns can consistently be earned, then the EMH does not hold as it does not allow for any such events. If they cannot be consistently earned, then the EMH holds and the risk-adjusted returns of MPT are the norm. Yet, the MPT allows for excess returns as we have already seen but the EMH does not. Here, if the EMH holds, the MPT will not.

As we already said, a random variable is one whose values are not known but they are picks form a distribution. Is this distribution known in the stock market? Perhaps the analyst could make up one as stated before. Yet, as values are added to the distribution, the probability of each band of outcomes is reduced. If I take 260 observations of daily returns from the market (i.e. a year) then it will probably not fit my estimated distribution (it might but it's highly unlikely). But if the MPT holds, then very little risk (i.e. very little variance) would give me back something close to my expected return. This expected return is basically the mean of a distribution comprised of past observations. Yet, if I have a great approximation of the return, I have a great approximation of the price. But if I have a great approximation of the price a year ago, then the price was not random for me. As we have seen, the probability of getting a correct price under the EMH is 8% for a coin toss of 100 times. If the price is very close to the estimation then my probability was much higher than 0.08, probably 0.80 or even more. Then, unless we will have to change the definition of a random variable to "a value which has a very large probability of happening but we are not 100% certain of" then the EMH, even in distribution, does not occur. Even in risk-adjusted returns, if one can forecast will accuracy, then prices are not "random variables"Thus, if the MPT holds, then the EMH will not hold.

As Paul Samuelson commented, the EMH is "micro efficient but macro inefficient" meaning that it is better applied in specific stocks and not in the aggregate market. In essence, sometimes, prices move randomly (Robert Shiller has already shown that in much of his work) but this holds more of a single daily (or even of higher frequency) return and yet is more often than not focused on some specific piece of information. Prices do not move without news, yet the effect these news have is not ex ante known to any participant. Although I have serious doubts whether markets are efficient, I agree that they reflect information, or better perceived information. Yet, I also think that forecasts can and are made. The EMH and the MPT is their original forms are not complementary; in fact they are quite contradictory. This does not make one correct the other erroneous. If anything, it should just make us understand that no theory holds for everything.

Thursday, 11 July 2013

Inside Information and Trading

The US has been the prominent pursuant of investors who, after having undisclosed information about a corporation try to exploit it by either buying or selling according it. The Wikipedia definition is "any individual who trades shares based on material non-public information in violation of some duty of trust", not limited to people who are part of the specific company but to all others who use such information to their benefit. The rationale for going after people who trade as such is simply that they are taking advantage of people with less information than their own.

The other side of the coin promotes that people with inside information should not be persecuted but instead, in the words of Milton Friedman "You want more insider trading, not less. You want to give the people most likely to have knowledge about deficiencies of the company an incentive to make the public aware of that." Others, argument that insider trading is a victimless act, meaning that those who were going to sell were going to sell anyhow, thus the fact that their counterpart has more information does not affect them. Nevertheless, this rather simplistic argument does not take into account that if a person is presented with more information he might change his mind from selling his current position. Thus, the seller is prevented from reaching a decision under full information. Obviously, those who argue that this kind of asymmetric information is legal in other practices such as real estate, are making the argument that if something bad is happening somewhere else then we should let it happen elsewhere even if we can control for it.

Friedman's argument brings to mind the theses of the Efficient Market Hypothesis (EMH) and the Noise Trader approach. The former, as already discussed, suggests that all available information (either past, present or future, public or private) has already been reflected in the stock price, thus making the market efficient and inappropriate for gaining from them. The latter states that in a stock market, there exist two types of agents: noise traders, who trade erratically and irrationally and rational ones. The noise traders, who even under erroneous beliefs can dominate the market and earn significantly higher returns than rational investors, are responsible for the stock market deviating from fundamental values and they are keeping arbitrageurs from correcting those values (the interested reader may have a look here, here and here for more details).

Returning to the argument, Friedman implicitly assumes that the markets are not efficient but if insiders with more information come to dominate the market then noise traders would diminish thus making markets fully efficient. If someone has information which is useful in estimating a company's future prospects (regardless of the way the estimation is done) then his knowledge would alter the company's stock price, even slightly, to his favour. No trader with new information is ever small, no matter how large the market is. The only difference is that if a trader has private information about a company and that information will never become public, then he stands no chance of ever winning in the stock market no matter how important his information is.

Although this is a rather strange thought, it is easy to understand: if I have information that a company faces trouble but no-one else has that information then I would sell the stock short in order to make a profit from its fall. However, this fall will not occur until the rest of the crowd finds out about it as well. The crowd has no incentive to sell the company if they do not have that information: for them, the company is doing as great as always and no news to the opposite have come to shutter that belief. In addition, the ends do not justify the means either: the public would be aware of that but the only way that insiders would ever disclose such information would be if they stand a chance of winning from it. Thus, they would not be doing it for the public's benefit and neither would the public be benefited from this new information. In fact, new information would increase the duration of the effect as it would start with the insiders' trading and finish when the stock market had assimilated the effect (to be fair it might decrease volatility in the market since prices would not have to adjust so rapidly; still that would depend on the state of the economy, the current trend in the market and so on).

Thus, any inside information trading is bound to disrupt the current market state; although readers may assume that this happens every time new information presents itself, I would like to remind you that this is not a collective action: the market shifts because of the action of some individuals who are in fact determining the price of a stock based on their beliefs and information. This is essentially the same as stock manipulation: the motive to earn a greater return than others, exploiting information others do not have (in the original case the public had no idea that someone was manipulating the stock while in this case they have no idea that new information exists).

The above, make the simple case that if private information was obtained by a person and used in such a manner as to secure a profit, it would only be illegal if that information was to reach the public at a point in the future; if the information was to remain private then no such case would hold. In fact, this also brings forth an issue of importance: it is not the information per se that matters but the timing of that information. As a recent experiment (whose link I was unfortunately unable to find) has shown, those investors who (on purpose) received information on the CPI publication minutes before the actual were published gained on average more than those who received it later. The information on the CPI would have been practically useless if they had received it 3 months prior to the actual publication as the stock market would have demolished their potential profits. In common parlance the investor would have been "too smart for his own good". (The same holds in experimental game theory as participants who understood the game before everyone else faced the problem of being right too soon, thus losing their bets.)

The main idea of all the above arguments can be put simply in just a sentence: insider trading is knowing information sooner than the public does but not too soon as volatility would destroy any potential for gain. In addition, you have to be certain that the public will find out that information and that it will subsequently act on it. Thus, instead on focusing on information which could potentially be used by insiders we should focus on the people who can get that information just minutes before everyone else does and act on it. Inside information is nothing more than timing and not new information.

Saturday, 9 February 2013

Efficient Market Hypothesis vs Modern Portfolio Theory

The Markowitz Efficient Frontier
Note: Unlike my previous articles this is "supposedly" a bit more technical, although no mathematics will be employed in its process. The response to those who claim that the EMH and MPT are not contradictory in the long-run can be found here.

What is the current state of the economics profession? From what we can witness any person who is not an economist would think that the state is bad (although there have been many within the profession which share this opinion, for example Paul Krugman not to mention many bloggers). Lately, I have had some time available to have a look at what appears to be the most influential theories of the 20th century (regarding stock markets that is):  the Modern Portfolio Theory (MPT) and the Efficient Market Hypothesis (EMH). The former was introduced in the early 1950's by Harry Markowitz and the latter was introduced by Paul Samuelson and Eugene Fama in the early 1960's. Of the three people mentioned above two (Markowitz and Samuelson) received a Nobel price later on.*

I will waste no time in discussing whether the assumptions used by both theories are valid or not. This debate has been raging for nearly 40 years and I do not think that anything can be said to settle it. Besides, the limitations of the assumptions used were first presented by the persons who introduced it (for example one may have a look at Markowitz's or Samuelson's articles). Other than the assumptions and their implications as to the validity of the models, no article has ever stated what I think is the most important aspect of the debate:

If the MPT holds then EMH cannot hold and vice versa.

What do I mean by that? Having a a look at the EMH forms as presented by Fama we get the following:
1. Weak-form efficiency
Future prices cannot be predicted by analyzing past prices or past returns.
2. Semi-strong-form efficiency
In addition to the point (1), share prices adjust to publicly available new information very quickly and in an unbiased fashion, such that no excess returns can be earned by trading on that information.
3. Strong-form efficiency
In addition to point (2), share prices reflect all information, public and private, and no one can earn excess returns. 

Given that the Strong-form efficiency is considered impossible in the real world we are only left with the first two alternatives. These two take for granted what Samuelson proved: properly anticipated prices fluctuate randomly, i.e. that future price movements are determined entirely by information not contained in the price series. In simple words, prices must follow a random walk.

The random-walk hypothesis is the pillar of the EMH. Without it nothing holds. If one could prove that prices do not fluctuate randomly then everything would collapse. Yet, as it has yet to be proven we may take for granted that prices do indeed follow a random walk. Even proponents of the EMH who have stated that markets may not always be perfectly efficient, such as Burton Malkiel, continue to believe that this holds.

Let us now have a look at the MPT as presented by Markowiz:
The underlying assumption is that higher expected returns also mean higher risk assumed by the investor. While many may argue that this does not hold, this sort of discussion is beyond the scope of this article. In any case, the MPT uses the expected returns of an asset, either by employing past returns or by using investors' "beliefs" for the future (which are rational and match the true distribution of returns) to form a portfolio of assets which maximizes expected return over a given risk amount. 

Economists have been raging over the years if the models' assumptions are correct, what could happen if the assumptions are altered or whether the world functions this way. Now here I just assume that both models are correct. 

Then ponder on the following:
If the EMH holds (even at its weakest form) then past prices are not a good forecast of future prices since future prices are to follow a random walk. In addition, any forecast of the future prices, given that they follow a random walk, would be erroneous as it would not be a good proxy for neither risk nor expected return. Thus, we would not be able to use MPT for investing purposes as it would not yield proper results.

Conversely, if MPT holds it would mean that either past prices can predict future returns or that investors beliefs are the real distributions of returns the random walk hypothesis does not hold. 

Which of the two theories is correct? I would not know. Yet, what I would know is that if one of them holds, as described in its original form, then the other cannot. The worst part for their proponents is that the answer cannot lie in-between this as any deviation would mean that the random-walk hypothesis is discarded. If it holds and investors cannot forecast anything then why should they bother putting their money in the market? It appears that we can either forecast or not. It all boils down to whether stocks follow a random walk. If they do then the the EMH holds and the MPT is discarded. If they do not the opposite is true.

Simple enough isn't it?

*Update: Since the writing of this article, Eugene Fama has won the Nobel Prize in Economics for 2013. There has been a lot of talk about whether it was a good call or whether it was right to award Robert Shiller alongside with him. Dan Davies has an excellent article on why this was done, which reminded me of the conclusions in Paul Samuelson's paper which started the whole EMH literature (titled "Properly anticipated prices fluctuate randomly"):

“I have not here discussed where the basic probability distributions are supposed to come from. In whose minds are they ex ante? Is there any ex post validation of them? Are they supposed to belong to the market as a whole? And what does that mean? Are they supposed to belong to the “representative individual”, and who is he? Are they some defensible or necessitous compromise of divergent expectation patterns? Do price quotations somehow produce a Pareto-optimal configuration of ex ante subjective probabilities? This paper has not attempted to pronounce on these interesting questions.”

It appears that Paul Samuelson had a much greater understanding of what he was doing than most economists have about his work since.