Quant Memo

Paper Explained

Pairs Trading, Industrialised: Avellaneda and Lee's Statistical Arbitrage

Instead of matching stocks two at a time, Avellaneda and Lee stripped out every common factor from every stock at once and traded whatever wiggle was left over.

QM
Quant Memo

July 13, 2026

The paper

Statistical arbitrage in the US equities market

Marco Avellaneda and Jeong-Hyun Lee · 2010

Read the original →

Pairs trading has an obvious weakness: it only lets you trade in pairs. A stock is not related to exactly one other stock. It is related to its sector, to the market, to interest rates, to oil, to a dozen invisible forces at once. Forcing that web of relationships into a single partner is throwing away most of the information.

Marco Avellaneda and Jeong-Hyun Lee wrote the paper that generalises pairs trading to the whole market at once. It is one of the most-read papers in practical quantitative trading, largely because it is unusually explicit about how you would actually build the thing.

The problem: what is a stock's "fair" partner?

The classic pairs trade needs a benchmark. You are betting that a stock has moved unfairly relative to something. In the original strategy, that something is one other stock.

But which one? And what if the right benchmark is not one stock but a blend: forty percent of the market, thirty percent of the energy sector, and a bit of the dollar? Then a two-stock pair is a distorted, low-resolution version of the true relationship, and your signal is contaminated by all the stuff you failed to hedge out.

The deeper question is: what part of a stock's move is shared with everything else, and what part is genuinely its own? If you could cleanly split those, you would have a much better trade. The shared part is not mispricing, it is the market doing market things. The leftover, idiosyncratic part is where the mean reversion lives.

The key idea via analogy: subtract the crowd, trade the leftover

Imagine you are at a concert watching a crowd sway. Most of a person's movement is the crowd's movement. But one person is swaying slightly out of phase with everyone around them, leaning left when the crowd leans right. That out-of-phase wobble is personal, and it is the only part worth paying attention to.

Avellaneda and Lee do exactly this with stocks:

Step one: identify the crowd. They construct the market's common factors, and they show two ways to do it.

  • The elegant way is principal component analysis on the correlation matrix of returns. PCA is a machine that looks at how all the stocks move together and extracts, in order, the directions of largest common movement. The first component is essentially "the market," the thing that makes everything go up and down together. The next few are things like sector rotations. Crucially, PCA finds these factors from the data, without you telling it what a sector is. And because the number of meaningful factors is far smaller than the number of stocks, this is a genuine compression: a few hundred stocks, a handful of real forces.
  • The practical way is to use sector ETFs directly as the factors. Instead of deriving an abstract "energy component," just use the energy sector ETF, which has the enormous advantage that you can actually trade it as a hedge.

Step two: subtract the crowd. For each stock, regress its returns on those factors. What comes out is a decomposition: the part of the stock's return explained by the common factors, and the residual, the part that is uniquely its own.

Step three: trade the leftover. Accumulate the residuals over time into a running total, a residual price path. The core assumption, and it is the assumption on which everything rests, is that this residual path mean-reverts. It wanders away from zero and gets pulled back. Model it as a mean-reverting process, estimate its typical level and how strongly it snaps back, and then compute a simple score: how many standard deviations is the residual currently away from its own average?

Avellaneda and Lee call this the s-score. When a stock's s-score is very negative, the stock has underperformed what its factor exposures say it should have done, so you buy it, and you short the factor portfolio that hedges it. When the s-score is very positive, you do the reverse. Close the position when the score comes back toward zero.

The result is a portfolio that holds hundreds of small, hedged, mean-reversion bets simultaneously, each one saying "this stock has drifted from its own gravitational centre, and it will come back." It is pairs trading, except the "pair" is a stock versus a tailored basket of factors, and you are running it across the entire market at once.

They tested it on the broad US equity universe. The ETF-based version delivered a Sharpe ratio of roughly 1.1 across the decade from 1997 to 2007, and the PCA-based version was weaker over the shorter period they measured. Adding trading volume information to decide when to trade lifted performance materially in the mid-2000s sample, an early nod to the idea that flow, not just price, carries signal.

Two other findings from the paper deserve attention because they are the honest parts.

The strategy decayed. Performance was notably better before roughly 2002 and weaker afterwards. The authors are blunt that the edge was eroding as the industry crowded in.

It broke in 2007. The paper explicitly examines the behaviour of these strategies during the liquidity crisis, when statistical arbitrage funds suffered severe, simultaneous losses. A model of mean reversion tells you a spread will come back. It does not tell you that you will still be solvent when it does.

Why it mattered

  • It is the recipe most people actually learn from. Unlike most academic papers, this one gives you the signal construction, the hedging, the entry and exit thresholds and the practical adjustments. It is closer to an engineering document than a theory paper, and that is why it is on every quant reading list.
  • It generalised mean reversion from pairs to portfolios. Once you think in terms of "residual after removing common factors," the two-stock pair looks like a crude special case. Nearly all modern equity stat-arb is built on some version of this decomposition.
  • It legitimised PCA as a trading tool. Using the data itself to discover the market's hidden factors, rather than imposing a sector taxonomy from outside, is now routine. This paper made the case cleanly.
  • It documented the decay in public. Papers that show their own strategy losing power over time are rare and valuable. It is a standing reminder that stat-arb edges are consumed by competition.

The honest limitations

  • The mean-reversion assumption is a bet, not a law. A stock's residual might be drifting because something genuinely changed at the company. The model cannot tell the difference between a temporary dislocation and permanent bad news, and it will happily keep buying a stock that is on its way to zero.
  • The factors are not stable. PCA components estimated on last year's data may not describe next year's market. Correlations shift, sectors reorganise, and a hedge built on stale factors is not a hedge.
  • It is dangerously crowded. The strategy is simple enough that many funds run near-identical versions. When they all hold the same residual bets and one is forced to liquidate, the spreads widen instead of converging, which forces the next fund to liquidate. That feedback loop is precisely what the August 2007 quant meltdown was.
  • It is a high-turnover business. These are short-horizon bets. Transaction costs, borrow costs and market impact are not a footnote, they are the difference between the paper Sharpe ratio and the live one, and the paper's own numbers are before some of the frictions a real book would face.
  • Volume signals are fragile. The finding that adding volume information boosts returns is intriguing, but micro-structure signals are exactly the kind that get arbitraged away fastest and depend heavily on the market plumbing of the era they were measured in.

The one-line takeaway

Avellaneda and Lee turned pairs trading into a market-wide machine by stripping every stock of its common factor exposure, either with PCA or with sector ETFs, and trading whatever idiosyncratic residual was left on the assumption that it mean-reverts, while honestly documenting that the edge shrank as the crowd arrived and shattered in the 2007 liquidity crisis.