Tuesday, 21 April 2009

Quant funds and the field approximation

It has come to general attention recently that many quant funds have had a terrible few months: see here for more details. Specifically the momentum following funds have suffered badly from the crap rally of the last little while.

What is going wrong?

One way to see the issue is to consider a technique that sometimes works well in statistical physics. Don't panic, I promise there will be no hard maths. It's like this. Sometimes, you want to know how a given something behaves inside a solid. Let's make the something an atom (although it doesn't have to be). Say this is an atom of impurity in an otherwise pure crystal. How will this impurity affect things?

One could attempt to model the interaction of the atom of impurity with its neighbours, and their neighbours, and so on. If you could do those calculations, the results would be precise. But often you can't, because there are too many effects to consider, and too many other atoms which can exert an effect. So a good short cut is to first calculate the properties of a perfectly pure crystal, and then consider the impurity like a boat in the sea with these properties. You don't model each neighbour separately, in other words: you model the combination of their effects as one thing. This is sometimes called the field approximation, as you are calculating the field of the pure crystal, and then looking about how the impurity behaves in that field.

This works pretty well for one impurity, and it isn't too bad when there are many, providing the percentage of impurity atoms is low enough. But once the percentage of impurities starts rising to the point where one impurity interacts with another, the approximation starts to fail rather badly. Furthermore if the impurities change the way the crystal interacts with itself, then this also means that a new approach is needed.

And so it is with hedge funds. When there were few quant hedge funds interacting with a market that was mostly driven by real money, then the fund's model of market behaviour was reasonable. But as the percentage of trading activity that was hedge fund originated increases, that model becomes less and less tractable. I suspect that phase transitions are possible, whereby the market dynamics suddenly change for only a small increase in the percentage of fund activity. What's happening, then, is that we have too many hedge funds chasing too few arbs. Things won't get better until the capital allocated to quant funds declines significantly.

Labels:

Friday, 13 February 2009

Sociologists do models, kinda

From Reflexive Modeling: The Social Calculus of the Arbitrageur by Daniel Beunza and David Stark:
Modeling entails fundamental assumptions about the probability distribution faced by the actor, but this knowledge is absent when the future cannot be safely extrapolated from the past...

By privileging certain scenarios over others, by selecting a few variables to the detriment of others, and in short, by framing the situation in a given way, models and artifacts shape the final outcome of decision-making. This ... is the fundamental way in which the economics discipline shapes the economy, for it is economists who create the models in the first place...

...models can lead to a different form of entanglement. In effect, models can lock their users into a certain perspective on the world, even past the point in which such perspective applies to the case at hand. In other words, models disentangle their users from their personal relationship with the actor at the other side of the transaction, but only at the cognitive cost of entangling them in a certain interpretation.
Despite the focus on relatively uninteresting models (merger arb), this is an interesting paper for anyone interested in how traders really use models.

Labels: ,

Monday, 9 February 2009

Prop trading tech

A friend of mine is dipping a toe into writing code to support prop trading. So, in the spirit of telling tales out of school, let me make some observations about this business.
  • The users don't know what they want. And they cannot spare the time to tell you even their incoherent and ill-posed ideas about what they think they want.
  • As soon as they get something, what they think they want changes.
  • What they want also changes are the market moves, as new research comes out, and as their ideas turn out to be worthless.
  • The less the analytics depend on one particular paradigm, the better. Flexibility is the key to profitability.
  • Expect that things will work for a while, then fail. This means you need to build in `does it still work' measures which might help avoid sailing over a cliff.
  • Risk measures are nonsense, often, but you have to provide them anyway. Try to give both conventional (often silly but expected) and less conventional (more useful but unconventional) risk measures.
  • Remember that model error is onmi-present and that over-fitting is very common. Expect the model to fail unpredictably and catastrophically.
None of this is a problem as long as you are expecting it. Just don't think that IT development for prop trading is linear...

Labels:

Wednesday, 21 January 2009

Tarring Taleb

I have always been a little suspicious of Nassim Taleb. He seems to take too much pleasure in discussion of crises. And his first book -- a very conventional account of hedging -- isn't actually very useful for actually running portfolios of options. Now a post on Models and Agents (an excellent blog I have only found recently) gives a more focussed critique:
the current crisis is not a black swan. Alas, the world’s economic history has offered a slew of (very consequential) credit and banking crises ... So not only aren’t credit crises highly remote; they can be a no-brainer, particularly if they involve extending huge loans to people with no income, no jobs and no assets.

Taleb also recommends that we buy insurance against good black swans—that is, investments with a tremendous (though still highly remote) upside but limited downside. For example, you could buy insurance against the (unlikely?) disappearance of Botox due to the discovery of the nectar of eternal youth. And make tons of money if it happens.
And that surely is the point. Yes, the unexpected happens with considerable frequency. But knowing which black swan is more likely than the market is charging for is the hard part. Buying protection in the wings on everything is far too expensive to be a good trading strategy. If all Taleb's observations amount to is the claim that being long gamma can sometimes be profitable, then they are hardly prophetic. What would be much more useful would be his analysis of when, exactly, black swan insurance is worth buying.

Labels: , , ,

Thursday, 8 January 2009

Backtesting quant strategies

Felix Salmon has an excellent post today on quant strategies. As he points out, knowing whether you have something worth trading isn't exactly easy at the moment.
When you backtest, do you backtest through the quant blow-up of 2007 and the stock-market meltdown of 2008? If so, do you really think that's going to give you the kind of trading idea which will make money going forwards? And if not, then what do you ignore, and why do you ignore it, and what makes you think you won't run into a third period of high volatility which will lie well outside any reasonable assumptions you might make?

Up until 2007, the problems with quant funds was that the models didn't remotely conceive of the world as it transpired. Now, the problem with quant funds is that they can't help but conceive of the world as it transpired.
This applies more broadly, of course. No one has any recent data on normal markets because there haven't been any recently...

Labels: ,

Thursday, 20 December 2007

Renaissance man

Alea reports a talk that James Simons, founder of Renaissance Technologies, gave at NYU recently. Simons is a highly successful quant investor so his remarks are interesting. The part of the Alea article that really piqued my interest was:

[...] perhaps the most interesting observation came in response to a question posed by the moderator, Nobel Prize-winner Robert Engle: “Why don’t you publish your research, the theory behind your trading methods? If not while you are active in the markets, perhaps later on.”

Simons’ reply – there is nothing to publish. Quantitative investment is not physics. The markets have no fundamental, set-in-stone truths, no immutable laws. Financial “truth” changes constantly, so that a new paper would be needed almost every week.

The implication is that there is no eternal theorem of finance that could serve as an infallible guide through all the ages. Indeed, there can be no Einstein or Newton of finance. Even the math genius raking in $1 billion and consistently generating 30%-plus annual returns wouldn’t qualify. The terrain is just too lawless.

Simon's view seems to me to be obviously true, although I don't quite agree with the Alea spin. It isn't that there is no law, it is that the law changes as the behaviour of market participants change. Yesterday's arb is today's theorem is tomorrow's unrealistic simplification. As I said over a year ago, mostly the market trades based on the current orthodoxy. But big news changes that orthodoxy - as is happening at the moment in the liquidity markets, and so to make a lot of money you need to be willing to keep changing your theory of asset prices.

This neatly brings me to a related topic, the non-equilibrium nature of financial markets. In retrospect, Walras' idea of an auctioneer groping towards equilibrium (word of the week - tâtonnement) is really unhelpful because it suggests that there is enough time for this process to be completed and equilibrium reached before the next piece of news hits the market. I don't think this is true. Rather I conjecture that the process is much more like a game of tetherball, with each new news item changing people's opinions and hence moving the market long before equilibrium is reached from the previous piece. The ball almost never hangs by the pole, so any theory which analyses where it will come to rest isn't much use in determining who is going to win the game.

The last piece of the puzzle is the primary role of transactions. There are no prices without transactions to establish them - lots of transactions. So it is only opinions about asset prices which lead to trading that matter. You can be right for a long period about the fundamentals, but if your assumption about how fundamentals lead to trading is wrong then you will lose money. For example I called the weakness of Japan completely correctly through the 2nd half of the 1990s and first half of 2000s, but I was wrong for extended periods on dollar/yen because I hadn't accounted for the actions of the BoJ and other market participants beliefs about the BoJ. To make a lot of money you need to predict what most other market participants trading-related beliefs will be and get your position on before they do. Predicting fundamentals is only useful if they will influence future trading: on the flip side, predicting wrong beliefs is just as good as predicting right ones if they pertain for long enough for you to make money.

Labels: , ,

Tuesday, 30 October 2007

Black box trading and information fusion

According to Wikipedia, Information Fusion
refers to the field of study of techniques attempting to merge information from disparate sources despite differing conceptual, contextual and typographical representations
The convention is to keep the term data fusion for the situation where all information is quantitative, and use information fusion for the broader problem of integrating quantitative and qualitative data.
Another authority says that data fusion
takes isolated pieces of sensor output and turns them into a situation picture: a human-understandable representation of the objects in the world that created those sensor outputs.
Basically then, whenever you have diverse data which you have to try to turn into a coherent picture, you are performing data or information fusion.

Unsurprisingly much of the academic interest in this area occurs in limited problem domains: figuring out where the planes are from radar and visual data, for instance, or combining multiple different sonar sources to get a more complete picture of what's swimming around you. Many quantitative trading models of this class: they take feeds of market data and transactions and attempt to form a picture of where the market will go next. One simpler class of models, for instance, are basically trend followers. Often the idea of momentum is used: when markets are rising on increasing volume with low volatility, the models pile in, perhaps intensifying the rise. Decreasing volumes and/or rising volatility are sometimes used as triggers to reduce the size of the trade.

Many quantitative models, then, implicitly have a confidence estimate built in. When they strongly believe in their own predictions, they put a trade on. When they either don't believe in them, or they cannot make a prediction, the trade is taken off.

This feature is important: quantitative trading has been described as picking up pennies in from of a steam roller, and certainly many trading strategies act like short gamma positions, making a little money when they work, but losing a great deal when they are wrong. A false positive - a trade that you don't think will work and so don't make but in fact would have been profitable - is a lot less bad than a false negative - a trade you do think will work but turns out not to. The magnitude of this issue can be seen from Morgan Stanley's $480M one day quant trading loss.

For this reason, some quant traders use multiple models and only trade when all of them are giving the same signal. If the models are sufficiently different and do not share common assumptions this helps to reduce model risk.

It occurred to me recently that another approach might be to cast quantitative trading as an information fusion rather than a data fusion problem. That is, is there non-quantitative information that might be useful, in particular in avoiding false negatives by making the model more doubtful in situations where more care is needed? One of the anticedants here is the theory of prediction markets: when a large number of independent people have an opinion, a suitable weighting strategy can often lead to better predictions than any individual pundit. Note that I am not discussing analysts opinions here - there are clearly institutional biases at work there, and the history of collective analyst predictions is not that promising. Rather I am suggesting trying to use the commentariat, ideally as large a body of it as possible, as a signal akin to rising volatility. When enough blogs start to discuss a possible crash, that is a sell signal akin to rising volatility or rising market risk premiums. Such an information fusion based quantitative trading model would be of more use in global macro than in very short term applications like index arb, but the idea of using rising worry as a deleveraging signal could be interesting. Or it could just be a heap of potatoes.

Labels: , ,