Showing posts with label trading. Show all posts
Showing posts with label trading. Show all posts

Friday, December 2, 2011

Interview with Dave Cliff

Dave Cliff of the University of Bristol is someone whose work I've been meaning to look at much more closely for a long time. Essentially he's an artificial intelligence expert, but has has devoted some of his work to developing trading algorithms. He suggests that many of these algorithms, even one working on extremely simple rules, consistently outperform human beings, which rather undermines the common economic view that people are highly sophisticated rational agents.

I just noticed tht Moneyscience is beginning a several part interview with Cliff, the first part having just appeared. I'm looking forward to the rest. Some highlights from Part I, beginning with Cliff's early work, mid 1990s, on writing algorithms for trading:
I wrote this piece of software called ZIP, Zero Intelligence Plus. The intention was for it to be as minimal as possible, so it is a ridiculously simple algorithm, almost embarrassingly so. It’s essentially some nested if-then rules, the kind of thing that you might type into an Excel spreadsheet macro. And this set of decisions determines whether the trader should increase or decrease a margin. For each unit it trades, has some notion of the price below which it shouldn’t sell or above which it shouldn’t buy and that is its limit price. However, the price that it actually quotes into the market as a bid or an offer is different from the limit price because obviously, if you’ve been told you can buy something and spend no more than ten quid, you want to start low and you might be bidding just one or two pounds. Then gradually, you’ll approach towards the ten quid point in order to get the deal, so with each quote you’re reducing the margin on the trade.  The key innovation I introduced in my ZIP algorithm was that it learned from its experience. So if it made a mistake, it would recognize that mistake and be better the next time it was in the same situation.

HFTR: When was this exactly?

DC: I did the research in 1996 and HP published the results, and the ZIP program code, in 1997. I then went on to do some other things, like DJ-ing and producing algorithmic dance music (but that’s another story!)

Fast-forward to 2001, when I started to get a bunch of calls because a team at IBM’s Research Labs in the US had just completed the first ever systematic experimental tests of human traders competing against automated, adaptive trading systems. Although IBM had developed their own algorithm called MGD, (Modified Gjerstad Dickhaut), it did the same kind of thing as my ZIP algorithm, using different methods. They had tested out both their MGD and my ZIP against human traders under rigorous experimental conditions and found that both algorithms consistently beat humans, regardless of whether the humans or robots were buyers or sellers. The robots always out-performed the humans.

IBM published their findings at the 2001 IJCAI conference (the International Joint Conference on AI) and although IBM are a pretty conservative company, in the opening paragraphs of this paper they said that this was a result that could have financial implications measured in billions of dollars. I think that implicitly what they were saying was there will always be financial markets and there will always be the institutions (i.e. hedge funds, pension management funds, banks, etc). But the traders that do the business on behalf of those institutions would cease to be human at some point in the future and start to be machines. 
Personally, I think there are two important things here. One is that, yes, trading will probably soon become almost all algorithmic. This may tend to make you think the markets will become more mechanical, their collective behaviour emerging out of the very simple actions of so many crude programs.

But the second thing is what this tells us about people -- that traders and investors and people in general aren't so clever or rational, and most of them have probably been following fairly simple rules all along, rules that machines can easily beat. So there's really no reason to think the markets should become more mechanical as they become more algorithmic. They've probably been quite mechanical all along, and algorithmic too -- it's just that non-rational zero intelligence automatons running the algorithms were called people. 

Tuesday, July 19, 2011

Making markets (appear) safe -- through more vigorous lobbying

It's as predictable as the Sun rising not long after it sets -- financial firms rightly criticized for creating dangerous systemic risks will do what is natural to protect their turf. No, not by looking deeply at their practices and asking if they actually do create greater risk, but by hiring a slew of lobbyists and image consultants to change the debate and stop any potential regulation in its tracks. As this article in the New York Times describes, now it's the turn of the high-frequency traders to follow this time-honored path (thanks to Alex Bentley at the University of Durham, UK for pointing me to this).

I learned last year that writing about finance isn't like writing about science, which I've been doing for 15 years. Scientists get touchy if you criticize their work, but generally respond with reasons and try to convince you you're wrong. Financial firms respond with threats of lawsuits. I found this out last year when I wrote this article for Wired UK on high-frequency trading and its potential systemic perils. I sent an early draft to the then PR person for GETCO, one big HFT firm, asking for her comments and help so I didn't misrepresent anything. I often find that showing interested parties early drafts of articles gets them to voice their criticisms early, so I can take them into account in later drafts. In this case it didn't work, as the PR person didn't respond with any reasoned argument.. Instead, she went quite ballistic. Even though I hadn't criticized GETCO at all in the piece -- I merely mentioned them as HFT traders, and argued that HFT trading in general may present new kinds of systemic risks -- she threatened to get the lawyers involved if I mentioned GETCO in the article at all.

GETCO is one of the firms mentioned in the NYT article as now hiring lots of lobbyists to prevent any new legislation which might hurt their profits, to hell with the stability of markets as a whole.

To be clear, I don't think these people are evil in any sense. They're trading in a legal way, and what they do brings some clear benefits to markets -- it has lowered spreads over the past decade and has indeed made it possible for many smaller traders to compete with the larger banks. But the HFT traders ought to be honest about that fact that no one -- absolutely no one -- currently knows what kinds of new systemic risks enter a market when it becomes dominated by algorithms making thousands of trades a second. This is new territory, and human intuition just isn't up working out what is likely to happen. Paul Wilmott made this point quite eloquently in an NYT OpEd well before the Flash Crash of 6 May, 2010 proved his concerns to be valid.

Since then, as I've mentioned before, we've had lots of smaller flash crashes, and a really devastating one may strike any day and possibly bring deep damage to the larger economy. Personally, it would seem sensible to put in place a speed limit of one trade per second and be done with it. Do we really need to trade faster than that?