Shannon’s Demon
During some recent travels, I read William Poundstone’s ramblingly entertaining Fortune’s Formula. It had been sitting on my shelf after I’d originally gotten it, perused it and offhandedly discarded it as yet another of these science-is-fun-and-full-of-wacky-characters books for the butch humanities student. My initial impression was a bit harsh as the book proved entertaining and covered a lot of ground including significant coverage of Ed Thorp and his stat arb alchemy (see here for his own papers on the topic).
One of the more compelling segments of the book relates Claude Shannon’s demon which is a nice thought-experiment / trading-strategy which illustrates the tractability of the problem of trading on a random walk market with fixed properties. I wrote the above applet to explore the impacts of applying friction and otherwise modifying the behaviors of the market and the demon.
The original demon posited a world with no friction in which the market contains one instrument which doubled or halved in value each day. Shannon’s demon looks to take advantage of this volatility by maintaining a portfolio which was rebalanced each day to ensure a 50/50 split between cash and the market. The applet implements a very simple monte-carlo test-bed for Shannon’s Demon. You can configure the demon and the marketplace along a variety of parameters, and then run many instances of the demon, each on its own self-contained random-walk market.
Although Shannon’s demon is a highly “stylized” case in the sense that it operates on a very synthetic, unrealistic and favorable formulation of a random-walk marketplace, it has spawned a great deal of interest and serious research.
Most of all, it’s a revealing illustration of the kind of reasoning one must embrace in order to address stat arb strategy development. Enjoy.
—
Updated: March 4th - made price axis logarithmic to better reveal mc paths.
books, dereferenced, monte-carlo methods, strategy development



I’m very pleased to present our first guest blogger to this space - Scott Johnston. Scott’s an experienced hedge fund exec who’s currently a PM and principal at the 


I’ll make a few more comments on the last strategy we looked at before we move on. Although I’ve panned it, it’s actually a nice strategy for consideration as it’s very simple to implement, efficient to run, has a plausible-ish sounding premise and can be permuted in many directions. It has the unfortunate characteristic of being a loser, but nothing is perfect. It might offset that characteristic by providing us with a means of seeing interesting phenomena or learning. For example, all of the futures exchanges I ran it against - ICE, CME and NYX performed very well. Might be something there. Or not. If we look at the distribution of the *best* performing of each of the 4 strategies we ran by instrument, we get a pretty clear picture:
