2013/07/31

Statistical intuition fails

Warning: this post contains some mathematics. However, non-technical readers may ignore the equations and focus on the concepts, which are far more important in any case.

I am ashamed to say that my statistical intuition has failed me. I was doing some brainteasers and came across this one here:

In a country in which people only want boys every family continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. What is the proportion of boys to girls in the country?

My initial thought was there should be more girls than boys. But this is completely false. As long as all births are independent and a boy or a girl remains equally likely, the ratio of boys to girls in the whole population will be 1 (assuming the population is large). The choice the parents make of when to stop having babies has no influence on the overall distribution of boys or girls. This is actually obvious if you think about it, but you can also prove it mathematically as follows:

Let X1… Xn be the number of girls in each household in the country. These have a iid geometric distributions and the ratio of boys to girls is


By the law of large numbers this tends to
,
which is 1.

In real life, and in financial markets, our statistical intuition also fails us. One of the reasons I think I will never be able to be a trader (or at least not a good one) is that I will never trust any decision I make. It’s only through meticulous analysis, by slowing down, that you can overcome your biases and that is exactly the opposite of trading.

2013/07/09

Self-critique

I recently finished my masters thesis and I would now like to do something that most people never do. I am going to critique my work. I believe that being self-critical is essential not only in research, but in life in general. In research it is necessary to further the truth. It is not enough that others are critical of you (though it is necessary). You must be critical of yourself – only then will you be willing to remedy your flaws, change your convictions and pursue truth and goodness rather than your own prejudiced agenda.

I write this post as much to myself as for any reader who may come across it. It is another public reminder of a lesson I fear I may forget in the future, and of which I may need to be reminded. Even if you are not interested in my thesis, some of the points of criticism here may be useful for your own writing. I found in writing this post that self-criticism is hard. It’s really hard to come up with anything but weak flaws in your own work. I reckon it will take time to cultivate a truly self-critical nature.

My thesis was about momentum. I looked at time-series and cross-sectional momentum and their relationship with volatility and cross-sectional dispersion, specifically considering volatility weighting as a means of improving momentum strategies. If this sounds like Greek, do not fear, for I will be explaining all of this in later posts. Today I just want to list my critiques, starting with the more serious ones.

Subjective conclusions drawn from mixed results
I often found when I ran some numbers that I got results that were not clear-cut for any any one conclusion. Then I had to be satisfied with making a qualified conclusion if I thought there was enough support for it in the data. “Enough support” is subjective and others may feel differently. It may be a wiser course of action not to draw any conclusion at all, but it may also be far too conservative.

A lack of focus
Good academic research tends to focus on one thing and examine it thoroughly. My thesis, I think, tried to look at somewhat too much, and as a result ended up being huge and with not one aspect being treated quite as it deserved.

Strict assumptions (that I violate)
In order to prove things easily you need to make assumptions. Often you end up assuming independence or normality where it is clearly not the case in the data. In my case I needed to make such assumptions to prove things about volatility weighting and in at least one case I am not even certain there is a non-trivial (that is to say, interesting) process that satisfies my assumptions. I have little choice but to violate my assumptions (there are for instance no volatility estimators that satisfy the assumptions I had to make).

Overly detailed results that are hard to interpret
I have lots and lots and lots of tables in my thesis.  They are big and make your eyes sore. Ideally one should find a way of presenting just the right numbers, without hiding ambiguity and evidence that doesn’t support your conclusions. It is hard to read text referring to specific numbers in very large tables and keep track of what is happening. Making a graph is even better as it gives an immediate impression (but you may still want to report the numbers so that people can check them). I had relatively few graphs as I could think of no good way to convert my tables into something visual. This is a weakness. You may think that academics should be able to read such dense material, that they should take the time and effort. It is, however, a simple fact that academics are human and that they do not. Even if they do,  they are less likely to get the right picture if the information is not presented in accessible manner.

Use of advanced techniques without necessarily having the appropriate understanding
I used what are called “Robust regressions” in my thesis in order to cope with the fact that financial data contains so many extreme values. I had never used robust regressions before and only briefly looked up what the robust regressions did, then used them. I did not take the time to get well acquainted with their theory (as this would have been quite a task, I think) and I simply used a standard weighting function with a standard parameter.  Most likely this is still better than simply using OLS regressions (which I think are absolutely a no-go in financial research, except as a baseline comparison), but it is still possible that the version of robust regressions I used were not the most appropriate (deciding what is appropriate is of course more an art than a science) and it would have been preferable to have had more training in using them.

Linearity
I used linear models for the theoretical and empirical investigations. One thing that is clear from finance, though, is that nothing is linear and so results from linear models can be misleading. We have, however, I think, only poor substitutes and thus linearity is still common in academia. This is thus only a weak criticism on my part, but I would like to see a move away from linear models, if only we could find an accessible and preferably tractable alternative.

Little thought for practicalities
I did not consider that I was basing my results on markets that closed at different times (essentially I assumed they closed at the same time); I did not include transaction costs, commissions, taxes, etc. This is not unreasonable. To include all these things meticulously would detract from the main purpose of the study. But they are important and their inclusion could potentially change the nature of the relationships found (though this is unlikely).

If you read my thesis and you think there are other criticisms, then please let me know. Perhaps I'll include them in a further post.

2013/03/11

Don't trust research, not even your own


The more research I do (and I have not done much) the less I trust other research, and the less I trust my own.  When you read a paper in finance you will invariably find significant results that support the author’s conclusions.  When I run regressions, my results are weak, sometimes contradicting my hypothesis sometimes confirming it.

Significance bias

Weak results don’t get published (and negative results, i.e. results that do not find evidence for an hypothesis don’t get published either).  Academics have an incentive to try things until they find something significant. Of course, they then only report the significant results. The problem is firstly that this is a form of data mining and secondly that there is information in the insignificant results that is now lost. Future researchers may well duplicate much of the work, not knowing it has already been tried.

The story bias

We like stories that fit together. In research (particularly research in finance) this can be problematic. At some point during your research (or beforehand) you will develop a theory, a kind of story puts all your results together like pieces of a puzzle. This will develop long before you have all your results. It’s a good thing to have a hypothesis before you start running tests on your data – it helps to avoid data mining. However, the danger is that as you look at your results, you discount the results that do not fit your story.  This may not even be conscious. It’s just the way your brain works.  The danger, then, is that you only report results that fit your story.  

As a researcher you are likely to have more results at your disposal than you can reasonably report in an article or thesis. You must condense, summarise, omit. More than that, you must give the appearance of a coherent structure, an evidence-based explanation of the underlying forces you have uncovered. You can’t just say, “well, it’s a bit of a mess.” Your story has to make sense. But sometimes the world is a mess and stories don’t work.

Self-examination

I wrote this post not because I found these tendencies in other researchers. I found their beginnings in myself. I have careful supervision that will prevent abuses. In theory peer review should uncover these things as well. In practice, I don’t trust the peer review system either. Thus this is a public reminder to myself: be wary of cherry-picking results to suit your prejudices.

2013/01/31

The anonymous referee


In academic articles, you sometimes come across a paragraph that makes no sense (even on a second or third reading). Very often you will find, attached to this paragraph, a footnote, which says something like the following

“We thank the anonymous referee for drawing our attention to this.”

To the anonymous referee, that is exactly what is being said. But to anyone else reading the article it translates as

“We had to put this in our article in order to get it published because the anonymous referee is an idiot and insisted on it.”

One can then proceed to read the paper, ignoring that paragraph. This seems wrong to me. On the one hand I understand the trade-off: no publication vs make one little, albeit nonsensical, change. I would like to think I have more honour, more backbone than that, but I probably do not.

I think the anonymous peer review system is flawed. And it appears I’m not the only that thinks so.
Peer review is currently (at least in some fields and journals, not all though) double blind. In theory the referee does not know whose paper they are reviewing and the author does not know who the referee is (in practice, I think, anonymity is hardly guaranteed, especially in fields where there are a small number of specialists. Your writing, the references you choose (especially your own papers) can give you away).

It is one side of this double blindness that bothers me – that referees are anonymous. The other side may have flaws too, but at least it should prevent a paper being accepted merely because it is written by a bigshot academic.

Referee anonymity absolves journals of the responsibility of explaining their choice of referee (if they choose a referee obviously against the line of research or too obviously biased for it). It also means referees are not held accountable for their reviews. They may not take the process seriously and out of sheer laziness rather than malice block good research or let bad research pass.

I think that if referees are made known it will allow for greater dialogue. Referees can be challenged. Their reputations depend on being thorough. The feedback process may in fact lead to better research.

I think I, like one Dr Bertrand Meyer (see below), will always insist on signing my reviews (if I am ever in the position to review work for publication). My reputation is important to me. I want my reviews to reflect on my reputation (otherwise I will not take them seriously) and I want them to be thorough and thoughtful (otherwise they will reflect badly on my reputation).





2013/01/28

Review: Models. Behaving. Badly

This book was written by the famous quant “Emanuel Derman”, whom I mentioned in one of my blog posts before when I commented on the Financial Modeller’s Manifesto.  I was expecting a lot from this book, I admit. And I was disappointed. That is not to say that the book did not contain valuable insight, but I was hoping for more. For a book inspired by the financial crisis, it has precious little to say about it.

Not really about finance: The very long preamble

If you were hoping to read a book about finance (or at least financial models) with some references to other material for diversion (as I was) you will be disappointed.  Most of the book hardly even mentions finance. Instead it deals with the Emanuel’s (admittedly not uninteresting) view of models in physics,  society (such as during the apartheid era) and Spinozan philosophy. The point of this, I think, was to illustrate in a more general setting the idea of a model or a theory. But given that the book is portrayed as being firstly about “Wall Street” it feels a bit like fluff.

There are some autobiographical passages about Dermans life in South Africa. I found these very interesting, but they added little value to the goal of the book. The point Derman was trying to make (that the models used in apartheid South Africa failed) could have been made in much less space.  But then the book would have been even shorter than it already is. I hardly think anyone who buys the book would be truly interested in reading about Spinoza’s theory of emotions (as interesting it might be philosophically). I certainly hoped the financial stuff would come soon.

One would have expected to get at least a good explanation of how models were used during the financial crisis and how they failed. Instead, the links that Derman makes with his descriptions of some basic financial models and the financial crisis are superficial at best. If you want insight into this part of the financial crisis, you must go elsewhere.  Early on in the book Derman laments what had happened during the crisis and before it: “decline of manufacturing; the ballooning of the financial sector; that sector’s capture of the regulatory system; ceaseless stimulus whenever the economy has waivered; tax-payer-funded bailouts…” It’s a very long list and not one item on it is treated in the book. We are told that model failure was the cause – we are never given any more insight than that.

The value of commonsense

I have been quite critical thus far, but the book does add value. There is a distinction between models used in physics, which are accurate, and those used in finance which are, at best, sometimes useful. The latter often treat people as if they are just particles or objects, which they are not. Derman calls this “pragmamorphism”. Financial models always leave out something important. The admonition to always use common sense is valid. However, I was hoping to come away with more insight than that. Perhaps that’s all there is, really.

Models and theories and facts – Derman does the unforgivable

Central to the book is the distinction between “models”, which are based on analogy, and
“theories” which attempt to describe the real world without analogy. Essentially, physics works with theories (mostly) and finance works exclusively with models. This is a useful distinction – though I am not convinced that the two categories are not instead two extremes of a continuum of models. However, as far as thinking about modelling goes, I believe it is very valuable.

Dr Derman goes one step further though, doing something I find unforgivable.  He claims that a “correct” theory becomes a fact. Physics models that say there are electrons and that they behave in certain ways are the truth. I do not think Dr Derman actually thinks this – because to do so would be to disavow even the possibility of a theory being overturned, replaced by something better. And we have seen it done: Newton’s laws, “confirmed” to be accurate for hundreds of years turned out to be a poor description of reality once you started looking at things moving near the speed of light.

Physics uses mathematics and mathematics is not and will never be the real world – though it is the most useful tool we have for describing the world. In science (all of science, including physics) we can only ever say this: IF my model or theory is correct then we would expect certain observations in the real world.

Science can never confirm a theory to be correct. Theories that are considered “facts” are just the ones that have not yet been proven to be wrong. I think that a better theory than general relativity or quantum electrodynamics may come along – it may only bring incremental changes or it may bring a revolution in the way we think about the world. But it is the way we think about the world that changes, not the world.


Verdict


I must, if I am kind, conclude that Derman’s book tries to do a little too much (or, if I am unkind, that it tries to do too little and pads it with fluff): it wants to be philosophy, biography, essay and social commentary. It does none of these particularly well. 

Reference

Derman, E., 2012. Models.Behaving.Badly.: Why Confusing Illusion with Reality Can Lead to Disaster, on Wall Street and in Life, Free Press. Available at: http://www.amazon.com/Models-Behaving-Badly-Confusing-Illusion-Reality-Disaster/dp/1439164991 [Accessed January 27, 2013].

2013/01/22

Humble academics


(The following is based on my initial and brief impressions of the quality of academic writing in finance. I may change my mind later)

I’ve been reading through (the introductions) of very many articles in finance these past two weeks. The more I read, the more I realise that in finance the truth is a very murky prospect. In physics it seems like the truth is more stable (although physicists have a nasty habit of confusing their “theories” with reality. They seem to forget when their theories are shown to be wrong that they ever thought of them as Gospel).  But in finance, if you find two papers that agree, they probably share an author.

I am pretty sure that all these papers have one thing in common: they are all wrong. But every author is confident of his conclusions. References to why their results may be spurious are rare. Hardly ever do authors mention that their underlying assumptions are completely wrong – it seems standard to just rely on run-of-the-mill statistical methods, which I cannot believe take into account the wild randomness of the markets. Very few seem to care.

Academics in finance needs to be a little more humble. I think every paper should contain a disclaimer:
“The results in this paper are only valid under the assumptions of the methods used. These assumptions are almost certainly violated. The conclusions in this paper are disputed. Please do not confuse what is presented here with the truth.”

Some tips for academics:
  • Write very clearly the underlying assumptions are – don’t just use methods without being very clear what it is they assume. 
  • If you’re using a method outside of an area in which it is (proven) valid, write it in CAPS LOCK, because otherwise you’re a fraud, a charlatan.
  • Show how the assumptions are violated (note I used “how” not “if”) – not just speculation, I want to see statistical tests and diagrams. 
  •  Please reference everyone who disagrees with you. They’re not right either, but at least we know where to look for alternatives. 
  • Stop being so sure of yourself.

Readers of anything in finance (of academic journals, of The Economist, etc.) should consider that anything can be challenged. There is no absolute truth. If there is, we cannot discover it, which amounts to the same thing. Live in a state of scepticism of everything you read. It isn’t fun – but the alternative, as Voltaire would say, is absurd. 

2012/12/29

Out the tragedy... fun

It is interesting how a tragedy impresses itself upon the human collective conscience, how it is transformed, in rather unexpected ways. From the holocaust we have books, films, plays. From the financial crisis and its various extensions of financial meltdown we have gotten a Margin Call, a movie with a rather loose grip on reality  (as is the case with most movies) and, I now find, a game called Market Meltdown.

What is it?

The game appears to be based on the antics of a number of rogue traders. In Market Meltdown the players are traders who must make ever bigger bets (as the money they owe increases) in order to stay afloat. The losers are those who go bust first.

Just some fun

It is likely the board game is just good fun, amoral. That is what it is intended to be. It is hard to tell if the game will succeed, whether perhaps people will find it distasteful. But if kids can play computer games pretending to be evil overlords, why not have families play games pretending to be reckless traders. It could be used as an exercise in moral instruction – don’t do this in real life.

But in our hearts

The fact is that there is something about these rogue traders that captures our hearts. Sure, we’re angry with them for being heartless human beings, extensions of a merciless financial sector. But it’s not our money they lost. What a thrill it must be to place such huge bets, to waver between being ignominious Kweku Adoboli or glorious George Soros. (Admittedly Soros was no rogue trader, but his bets were massive and if he were wrong his ignominy would have been as great, if not necessarily prosecutable).

Social commentary

In some sense, the game, with its simplified rules, its exaggerated nature, is a kind of mockery. What were they thinking? We give them, those rogue traders, immortality, not by their reputation, but by frequently reliving their defeat, and laughing at it. Perhaps that, too, is a kind of punishment.

Out of sight

Despite the financial crisis’s impact on people, it being discussed everywhere. Despite the fate of Greece and the entire Eurozone hanging in the balance, I do not think that it is a ripe source of creative inspiration. There are a number of other games inspired by the crisis. Still, I would not imagine that many books of fiction will be written about these times once they are past, that many more films will be made (though there will undoubtedly be some). The halls of finance are just too hard for people to imagine, the dealing and wheedling too obscure, the language too foreign, with certain obvious exceptions, it’s just not exciting enough (although I may be wrong).

It is a pity. Perhaps if we could bring the world of finance to the hearts of people, we could place some heart in finance.

Some references

The game:
  • Clarendon Games, 2012a. Market Meltdown. Available at: http://www.clarendongames.com/product.php?xProd=19 [Accessed December 29, 2012]. Clarendon Games, 2012b. 
  • Market Meltdown Intro. Available at: http://www.youtube.com/watch?v=lq_AdyyiQx4 [Accessed December 29, 2012]. 
The Economist's take:
  • The Economist, 2012. Financial board games: Playing the markets. The Economist. Available at: http://www.economist.com/blogs/prospero/2012/12/financial-board-games [Accessed December 29, 2012]. 
George Soros: 
  • Wikipedia, 2012a. George Soros. Wikipedia. Available at: http://en.wikipedia.org/wiki/Soros [Accessed December 29, 2012]. 
Rogue trader Kweku Adoboli (he is just the most recent):
  •  Wikipedia, 2012b. Kweku Adoboli - Wikipedia, the free encyclopedia. Wikipedia. Available at: http://en.wikipedia.org/wiki/Kweku_Adoboli [Accessed December 29, 2012].