Statistical Arbitrage

A statistical arbitrageur buys stocks that have fallen behind their statistical relatives and sells those that have run ahead, hundreds at a time, with the market’s direction hedged away. The edge on each bet is tiny, so the strategy runs on diversification, turnover and leverage, and its worst week came when too many funds held the same bets.

Abstract

Statistical arbitrage holds hundreds of small, market-hedged bets that prices which have strayed from their statistical relatives will converge. Simple published versions were profitable even after costs, but their profits shrank, and the top pairs’ mean monthly excess return of 0.24% in 2003–2009 was under a third of its 1962–1988 level. In August 2007 crowding and leverage turned one fund’s forced selling into a three-day loss of 6.85% for an unlevered contrarian strategy.

On Tuesday, August 7, 2007, a group of the most consistently profitable hedge funds in the world began losing money at a rate their models said was nearly impossible, on a day when the stock market barely moved. They were quantitative long/short equity funds, built to be indifferent to the market’s direction. By Friday, Renaissance Technologies had told investors that a key fund was down 8.7% for the month, and the next week the Wall Street Journal reported that Goldman Sachs’s Global Equity Opportunities fund had lost more than 30% of its value in a week.

Amir Khandani and Andrew Lo later ran the simplest version of what these funds did, a daily rule that buys yesterday’s losers and sells yesterday’s winners, through the same days. Without leverage it lost 1.16%, 2.83% and 2.86% on August 7, 8 and 9, then gained 5.92% on Friday the 10th. For the whole week it lost 0.43%.

The strategy behind those numbers is statistical arbitrage, and the shape of that week is its signature. Each position is a small bet that a price has strayed from where its statistical relatives say it should be. Thousands of such bets, hedged against the market and levered several times over, make a return series that is usually smooth. The week of August 6 showed what happens when many funds hold the same bets and one of them has to sell.

Arbitrage by statistics

Arbitrage in the strict sense is a riskless profit from offsetting positions. Statistical arbitrage keeps the offsetting positions and gives up the certainty. Its bets are relative: a long position in one security against a short position in another that has historically moved with it, so that the market’s rise or fall largely cancels and what remains is the gap between the two. Any one gap may widen further. The strategy relies on the law of large numbers across many gaps, which is why it is practiced almost entirely by computer.

The practice is older than its literature. In the mid-1980s Nunzio Tartaglia assembled a group of physicists, mathematicians and computer scientists at Morgan Stanley whose programs looked for securities whose prices tended to move together and traded them in pairs. The group reportedly made $50 million for the firm in 1987 and disbanded in 1989 after a couple of poor years. One of Tartaglia’s early protégés, David Shaw, went on to found D. E. Shaw & Co., which ran statistical arbitrage as a firm of its own.

In 1988 the mathematician James Simons’s firm, Renaissance Technologies, launched its Medallion fund. Renaissance has never described its methods, and what is known of the fund’s performance, which has been reported as exceptionally strong, comes from journalists’ reporting rather than from published accounts.

Building the spread

The first academic test of the practitioners’ method was by Evan Gatev, William Goetzmann and Geert Rouwenhorst, first circulated in the late 1990s and published in 2006. Their rule follows the trading-desk recipe as literally as possible. Every stock’s price is rescaled to start at one. Over a twelve-month formation period each stock is matched with the partner whose rescaled price path stayed closest to its own, in the sense of the smallest sum of squared differences. In the following six months, whenever the two paths diverge by more than two standard deviations of their formation-period gap, the rule buys a dollar of the cheaper stock and sells a dollar of the dearer one, and it closes the trade when the paths next cross.

The econometric idea behind such pairs is cointegration, set out by Robert Engle and Clive Granger in 1987. Two prices can each wander like random walks, with no tendency to return anywhere, while some combination of them is stationary and keeps returning to a fixed level. That combination is the spread worth trading. Marco Avellaneda and Jeong-Hyun Lee (2010) generalized the pair into a factor model. Each stock’s return is regressed on a few factors, either sector exchange-traded funds or the leading principal components of the cross-section of returns, and the running sum of the residual is the stock’s idiosyncratic price, its spread against its factors. They modeled that spread as an Ornstein–Uhlenbeck process, the continuous-time model of a quantity pulled back toward a level, and traded on its standardized distance from equilibrium.

\[X_t = \ln A_t - \beta \ln B_t, \qquad dX_t = \kappa\,(m - X_t)\,dt + \sigma\,dW_t, \qquad s_t = \frac{X_t - m}{\sigma_{eq}}, \quad \sigma_{eq} = \frac{\sigma}{\sqrt{2\kappa}}\]

\(X_t\)
the spread at time t: the log price of stock A less β times the log price of B (or of A’s factor portfolio)
\(\beta\)
the hedge ratio, dollars of B sold per dollar of A bought
\(m\)
the equilibrium level of the spread
\(\kappa\)
the speed of mean reversion, per year; the half-life of a deviation is \(\ln 2/\kappa\)
\(\sigma\)
the volatility of the shocks to the spread, per year
\(dW_t\)
the increment of a standard Brownian motion
\(\sigma_{eq}\)
the standard deviation of the spread around m once the process has settled
\(s_t\)
the s-score: how many equilibrium standard deviations the spread stands from m

Avellaneda and Lee estimated each stock’s parameters over a 60-day window, kept only stocks whose spreads had a mean-reversion time \(1/\kappa\) under 30 trading days, and used one set of thresholds for every stock: sell the spread when \(s_t\) rises above 1.25, buy it when \(s_t\) falls below −1.25, close a short when \(s_t\) falls back below 0.75 and close a long when it rises above −0.50. A single trade with plausible parameters shows how thin the edge is.

  1. Equilibrium spread, with κ = 12.5 a year and σ = 25% \[\sigma_{eq} = 0.25/\sqrt{25} = 5.0\%; \text{ half-life} = 252 \ln 2 / 12.5 = 14 \text{ trading days}\]
  2. The spread stands 6.5% above m \[s = 6.5\%/5.0\% = 1.30 > 1.25 \;\Rightarrow\; \text{sell A, buy } \beta \text{ of B}\]
  3. Expected time to the exit at s = 0.75 \[t = \ln(1.30/0.75)/12.5 = 0.044 \text{ years} \approx 11 \text{ trading days}\]
  4. Expected gain on the dollar committed \[(1.30 - 0.75) \times 5.0\% - 0.10\% \text{ (round-trip cost)} = 2.65\%\]

The 2.65% is an expectation under the model. The spread’s own standard deviation, 5%, is nearly twice the expected gain, so any single trade can easily lose. The strategy earns its return only by making such trades hundreds of times at once, on unrelated stocks, and repeating them every few weeks.

Figure: One pair, one rule. A simulated pair whose price spread reverts to its mean. The rule estimates the spread’s mean and standard deviation over the first 250 days, then trades for 500. Set the entry and exit thresholds, the half-life of a deviation and the cost of each round trip. Then let the relationship break, as it does when one company is taken over or changes its business, and watch a single permanent divergence undo many small gains.

Who pays the arbitrageur

Every statistical arbitrage profit is someone else’s loss on the other side of the trade, and the literature offers three accounts of who that is. The oldest is liquidity. Bruce Lehmann (1990) found that stocks with high returns one week tended to fall the next, and losers to recover, by enough to leave profits after bid-ask spreads and reasonable costs; he attributed the reversals mainly to inefficiency in how liquidity is supplied after large price moves. A trader who must sell quickly pushes a price down, and whoever buys from him earns the rebound. On this view a contrarian book is a dispersed market maker, paid for absorbing other people’s urgency, and Khandani and Lo described their simulated strategy in exactly those terms.

The second account is overreaction. Tartaglia’s own explanation was psychological.

Human beings don’t like to trade against human nature, which wants to buy stocks after they go up not down. — Nunzio Tartaglia, quoted in Institutional Investor, May 1989

Andrew Lo and Craig MacKinlay (1990) took the contrarian strategy apart and found evidence against overreaction as its only source. Individual stocks’ weekly returns are negatively autocorrelated, but portfolio returns are positively autocorrelated, because large stocks’ returns lead those of small stocks. A strategy that buys losers and sells winners profits partly from that lead and lag, an effect usually read as information reaching some prices before others rather than as investors’ emotions.

The third account is risk. Gatev, Goetzmann and Rouwenhorst found that their pairs’ returns shared a common factor that conventional risk measures did not capture. Binh Do and Robert Faff (2010) emphasized arbitrage risk, the chance that a pair keeps moving apart before it converges or never converges at all. The classic case for efficient markets assumes that arbitrage capital is always at hand. A mispricing can persist when correcting it requires capital that may be withdrawn at the worst moment.

A shrinking edge

The published evidence starts strong. Over July 1963–December 2002 the twenty closest pairs of Gatev, Goetzmann and Rouwenhorst earned an average excess return of 1.44% a month when trades were executed at the closing prices that signaled them, and 0.81% a month measured on the capital actually committed to open trades. Waiting a day to trade, which strips out the bounce between bid and ask prices, cut the fully invested figure to 0.90% a month. The paper’s abstract summarizes the results as average annualized excess returns of up to 11%. A deliberately harsh cost estimate of 324 basis points per pair per six months still left net profits of 113–225 basis points each six-month period. The rule was not revised after the first draft, and over 1999–2002, data the authors had not seen when they designed it, the top twenty pairs earned 10.4% a year with a standard deviation of 3.8%.

The decline came anyway, and from more than one direction. Do and Faff extended the test through June 2009.

The decay of simple statistical arbitrage in three studies
Study and strategyEarlier periodLater periodLatest period
Do and Faff (2010): top 20 pairs, mean monthly excess return0.86%, 1962–19880.37%, 1989–20020.24%, 2003–2009
Avellaneda and Lee (2010): PCA residuals, Sharpe ratio after costs1.44, 1997–20070.9, 2003–2007
Khandani and Lo (2007): one-day contrarian, mean daily return before costs1.38%, 19950.57%, 19980.15%, 2006
Khandani and Lo (2007): leverage needed to match 1998’s mean return2 : 1, 19985.5 : 1, 20037.8 : 1, 2006

Do and Faff estimated that worsening arbitrage risks accounted for up to 70% of the decline in pairs profits, leaving greater market efficiency to explain the rest, and noted that pairs trading still did well in the bear market of 2000–02 and the crisis of 2007–09. Khandani and Lo’s figures are before costs and assume daily rebalancing of every stock, which no fund could do in 1995. Their point was the trend. As the raw profit of the simplest contrarian rule shrank, funds kept the returns their investors expected by borrowing more, and the leverage needed to match 1998’s average daily return rose almost fourfold by 2006.

Four days in August

Khandani and Lo’s first study (2007), written within six weeks of the event, proposed what became the standard account. One or more large quantitative market-neutral portfolios, probably at a multi-strategy fund or a bank’s proprietary trading desk, perhaps in response to margin calls on a deteriorating credit portfolio or a decision to cut risk, were unwound rapidly on August 7 and 8. Their sales pushed down the stocks they held long and pushed up the ones they had sold short. Every other fund holding similar positions lost money, and many cut their own positions to stay within risk limits, which deepened the losses on August 8 and 9. When the selling stopped, prices snapped back on the 10th. Funds that had cut on the way down missed much of the recovery. The same contrarian rule levered 8 to 1, roughly the leverage implied by 2006 returns and four times the 2 to 1 at which Khandani and Lo count the unlevered rule, would have lost 4.64%, 11.33% and 11.43% on the three days, a little over a quarter of its capital.

The Wall Street Journal reported that Morgan Stanley’s own quantitative group, PDT, the group Peter Muller had built, had also suffered heavy losses, according to traders. In a later study, Khandani and Lo (2011) used factor and transaction data to refine the story. The stress began in July and lasted through the end of the year; the unwinds of August 1 and of the open on August 6 began in financial stocks, in long positions in high book-to-market stocks and in short positions in stocks with strong earnings momentum, the stocks a value and momentum book would hold; and market makers withdrew capital from August 8, so that providing liquidity, the source of the strategy’s normal profit, was what lost money that week.

Figure: A crowded trade. An illustrative model of the mechanism, not a reconstruction of August 2007. Sixteen funds hold books that overlap by the share you choose. Fund 1 is forced to sell everything over two days. Its sales move the crowded positions against everyone, and each fund cuts its positions when its loss passes its own risk limit. Vary the overlap, the leverage, the size of the forced seller and how quickly the others cut.

The model reproduces the two features that made the episode distinctive. Losses scale roughly with the square of leverage, since leverage multiplies both the dollars sold and each fund’s exposure to the resulting price move, and a cascade needs crowding as well; with little overlap the same forced sale barely moves anyone. Khandani and Lo drew a broader inference. The trigger appeared to lie outside equities, in a fund’s losses on unrelated assets, which suggested that systemic risk among hedge funds had grown with their common positions.

What the record cannot show

The academic record tests simple rules that practitioners describe, and practitioners do not describe the rules they use. A decline in the published strategies’ returns is consistent with an industry whose edge disappeared and equally consistent with one that moved on to signals no one has published. Medallion’s reported record suggests the second is possible for some firms, though how large such opportunities are relative to the capital that has chased them cannot be read from outside.

The backtests themselves are fragile in known ways. Short-horizon reversal profits are concentrated in small stocks, where Khandani and Lo’s 1995 returns were largest and where trading costs are highest; profits measured at signal prices include the bid-ask bounce that a one-day wait removes. The parameters are hard to estimate: the Mean Reversion lesson shows how readily a short sample of a random walk produces a confident estimate of a half-life, and a spread that has merely been stable is easily mistaken for a cointegrated one. With thousands of candidate pairs and thresholds, the risk of selecting the lucky ones is the problem examined in Hypothesis Testing & the Factor Zoo; Gatev, Goetzmann and Rouwenhorst guarded against it by fixing their rule in 1999 and reporting its later performance unchanged.

Finally, the smoothness of the return series understates its risk. A book of many small, mostly independent bets has a low volatility in ordinary times, which is what licenses the leverage. The bets are independent only until the funds holding them are forced to trade at once. In August 2007 Khandani and Lo’s unlevered contrarian strategy lost 6.85% in three days, against a daily standard deviation of 0.52% the year before.

Sources

  1. Engle, R. F., and C. W. J. Granger (1987). Co-Integration and Error Correction: Representation, Estimation, and Testing. Econometrica 55(2), 251–276.
  2. Lehmann, B. N. (1990). Fads, Martingales, and Market Efficiency. Quarterly Journal of Economics 105(1), 1–28.
  3. Lo, A. W., and A. C. MacKinlay (1990). When Are Contrarian Profits Due to Stock Market Overreaction?. Review of Financial Studies 3(2), 175–205.
  4. Gatev, E., W. N. Goetzmann, and K. G. Rouwenhorst (2006). Pairs Trading: Performance of a Relative-Value Arbitrage Rule. Review of Financial Studies 19(3), 797–827.
  5. Khandani, A. E., and A. W. Lo (2007). What Happened to the Quants in August 2007?. Journal of Investment Management 5(4), 5–54.
  6. Avellaneda, M., and J.-H. Lee (2010). Statistical Arbitrage in the US Equities Market. Quantitative Finance 10(7), 761–782.
  7. Do, B., and R. Faff (2010). Does Simple Pairs Trading Still Work?. Financial Analysts Journal 66(4), 83–95.
  8. Khandani, A. E., and A. W. Lo (2011). What Happened to the Quants in August 2007? Evidence from Factors and Transactions Data. Journal of Financial Markets 14(1), 1–46.