Basic Prerequisites: 04 · Trading Rules & Backtest and Backtesting Hygiene & Deflated Sharpe.


1. Intuition & Practical Objective

Statistical arbitrage is mathematically clean and empirically fragile in three specific ways. This page names them precisely so a practitioner knows which assumptions to distrust and how the failures show up in money terms:

  1. Structural break. The equilibrium (, , or the very existence of cointegration) moves. The spread no longer reverts.
  2. Data snooping / selection bias. The pair was chosen because it looked good in the past; that choice inflates the backtest.
  3. Costs, borrow and crowding. Two legs of spread cost, scarce short borrow, and the fact that every quant fund runs the same screen - so the trades unwind together.

The discipline is not cynicism; it is knowing exactly where the model is an approximation so the residual risk can be measured before it is realised.


2. Mathematical Ground Truth & Derivations

2.1 Structural break in the cointegrating vector

Suppose the true relationship is where or changes at time . The estimated residual using the pre-break is

A break in injects a nonstationary component into the “spread” - the residual is no longer , the test loses its meaning, and the z-score grows without bound. The test battery:

  • Chow test for a known break date,
  • CUSUM / CUSUMSQ on the residuals (recursive),
  • rolling / recursive cointegration ( over a moving window),
  • Bai–Perron for an unknown break date.

Empirically, one of the most damaging breaks is a merger or index reconstitution: the target’s price converges to the acquirer’s offer and stops trading as an independent series; the cointegration is destroyed by construction.

2.2 The decline of pairs trading

GGR (2006) found average annualised excess returns up to over 1962–2002. Do & Faff (2010) extended the sample and documented a steady, structural decline:

  • mean excess return on employed capital fell (delayed-trading rule) from /month (1962–88) to (1989–2002), a decline, and further to (2003–09); the no-delay rule runs higher but lower, ;
  • the strategy remained statistically significant but economically thin after costs;
  • profitability is state-dependent - it spiked in 2001–02 (the dot-com bust) and again in 2008–09.

Why it decays. Arbitrage capital competes away the mispricing; the mechanism is the same as any alpha decay. Krauss (2017) confirms the pattern across the literature and notes that the distance approach is the most robust to data snooping while the cointegration approach tends to survive costs better in some studies.

2.3 Data snooping in pair selection

Screening stocks yields pairs; the best in-sample pair has an in-sample statistic that is an extreme order statistic of draws. Under the null of no cointegration anywhere, the best pair still shows a strongly negative ADF -stat purely by chance. Formally, with independent tests the expected minimum -statistic grows roughly like in magnitude; for , , i.e. a spurious "" ADF is expected. Two corrections:

  • Out-of-sample protocol (GGR): choose pairs on a formation window, trade a disjoint trading window - never re-tune on the trading window.
  • Deflated Sharpe Ratio / multiple-testing haircut (Bailey & López de Prado): deflate the reported Sharpe by the number of trials.

3. Computational Implementation - the failures in numbers

Stdlib only. Part A builds a pair that is genuinely cointegrated for 300 days, then has the residual acquire a permanent drift (the economic link breaks), and trades it with the same rule. Part B searches 200 independent random-walk pairs for the “best” in-sample cointegration and shows its out-of-sample collapse.

Part A is the catastrophic case: the pair passes the cointegration test in-sample (), then the spread marches to (and ) out-of-sample. A stop at fires and the position is closed for a loss; a strategy without a stop is ruinous. The ADF test on the full sample would have been polluted by the break term - you only see the break by re-testing recursively.

Part B is the subtle case: no pair is cointegrated (all are independent random walks), yet the best of shows ADF in-sample - convincingly “cointegrated.” On a fresh window the same pair gives : nothing. The in-sample statistic was pure selection.


4. Failure Modes & First-Principles Breakdowns (numbered)

  1. Structural break in or drift (the divergence trap). Mergers, index changes, dividend cuts, technological substitution. Symptom: the spread widens and stops reverting. First-principle check: rolling/recursive cointegration and CUSUM tests on the residual; a hard statistical stop.
  2. Data snooping / selection bias. The pair was picked ex post; the reported Sharpe is an extreme order statistic. Symptom: great backtest, dead live. Fix: out-of-sample formation/trading split, deflated Sharpe, purged CV.
  3. Transaction costs and turnover. Two legs of spread cost each time the position changes; turnover scales as . Symptom: gross Sharpe net (the flat-file’s own illustration). Fix: cost-aware thresholds, longer half-life screen, portfolio netting (Avellaneda–Lee ETF netting).
  4. Short borrow and asymmetric costs. The short leg may be unborrowable or expensive precisely when the divergence is largest - a hidden, one-sided risk.
  5. Crowding and unwinding. When many funds run the same residual-reversion book, a deleveraging event forces a correlated unwind and a sharp, temporary loss. The August 2007 quant quake: Avellaneda & Lee (2010) and Khandani & Lo (2007) attribute the drawdown to simultaneous unwinding, not a model failure.
  6. Regime dependence of profitability. Returns concentrate in high-volatility periods (2001–02, 2008–09); a strategy calibrated on calm markets under-estimates the tail moves that produce both the profits and the drawdowns.
  7. Non-synchronous pricing and microstructure. Stale closes, bid-ask bounce and nonsynchronous legs fabricate convergence on paper that cannot be captured live.

5. References

  • Do, B. & Faff, R., “Does Simple Pairs Trading Still Work?”, Financial Analysts Journal 66(4), 2010
  • Do, B. & Faff, R., “Are Pairs Trading Profits Robust to Trading Costs?”, Journal of Financial Research 35(2), 2012.
  • Avellaneda, M. & Lee, J.-H., Quantitative Finance 10(7), 2010
  • Krauss, C., J. Economic Surveys 31(2), 2017
  • Hasbrouck, Empirical Market Microstructure
  • Bailey, D. H. & López de Prado, M.

6. Connected Graph Bridges