Pair Trading¶
OVERVIEW¶
Pair trading is a market-neutral strategy where a trader goes long one security and simultaneously short a correlated security, betting on convergence of the price spread rather than the absolute direction of either name.
Note
The position carries roughly zero net market exposure (beta ≈ 0), so it profits regardless of whether the broader market rises or falls — provided the historical relationship between the two assets reverts.
The strategy was popularized in the 1980s by Morgan Stanley's quant group under Nunzio Tartaglia.
HOW PAIR TRADES ARE IDENTIFIED¶
A robust pair trade requires more than visual correlation:
Step 1 — Identify Candidates¶
Select securities from the same industry, same business model, and similar market cap.
| Classic Pair | Sector |
|---|---|
| KO vs PEP | Consumer Staples |
| GM vs F | Automotive |
| MA vs V | Payments |
| XOM vs CVX | Energy |
Step 2 — Test for Cointegration¶
Apply the Engle-Granger or Johansen test. Cointegration is stronger than correlation — it requires a linear combination of the two prices to be stationary (mean-reverting).
Note
Two assets can be 95% correlated yet drift apart forever. Only cointegrated pairs reliably converge. Visual co-movement is not sufficient evidence.
Step 3 — Compute the Spread¶
β is the hedge ratio derived from an OLS regression and determines dollar-neutral position sizing.
Step 4 — Z-Score the Spread¶
Entry rule: open the trade when |z| > 2.0. If z is positive, A is rich vs B — short A, long β × shares of B. If z is negative, reverse. Exit when z reverts to roughly 0. Hard stop when |z| > 3.5, which suggests a structural break.
FEATURES¶
Worked Example — KO vs PEP¶
Trailing 252-day window. OLS regression yields β = 0.36.
| Parameter | Value |
|---|---|
| Trailing spread mean | $1.40 |
| Trailing spread std dev | $0.85 |
| KO price | $68.00 |
| PEP price | $182.00 |
| Current spread | $2.48 |
| Z-score | +1.27 |
Z-score of +1.27 is below the +2.0 entry threshold — no trade yet.
One week later the spread reaches $3.10 (z ≈ +2.0):
- Short 100 shares of KO ($6,800 notional)
- Long 36 shares of PEP ($6,552 notional)
Tip
The trade is approximately dollar-neutral. Profit is realized when the spread reverts toward $1.40 — typically within 5 to 20 trading days for liquid, mean-reverting pairs.
When Traders Use Pair Trading¶
Pair trading is deployed in:
- Choppy, range-bound markets where directional strategies underperform
- Earnings season for relative-value plays between sector peers
- Merger arbitrage as a structured form (long target, short acquirer at the deal ratio)
- Statistical arbitrage at scale — hundreds of pairs run in portfolio form to diversify idiosyncratic risk
Hedge funds like Renaissance Technologies, Two Sigma, and DE Shaw built early track records on portfolios of thousands of overlapping pair trades, smoothing single-pair noise into consistent returns.
LIMITATIONS¶
Note
Pair trades are not riskless. Understanding failure modes is essential before sizing any position.
Pair trades are not riskless. The dominant failure mode is a structural break: one of the two names gets acquired, restates earnings, cuts a dividend, or pivots its business model. The spread then widens indefinitely and never reverts. The 2015 Volkswagen emissions scandal blew up countless VW-vs-BMW pair books.
Pairs are also vulnerable to crowded-trade unwinds. When many quants hold the same trade and risk is reduced simultaneously, the spread moves against the position even with no fundamental news — the August 2007 quant crisis was exactly this dynamic.
Finally, correlation is not cointegration. Two assets can show 0.95 return correlation yet have prices that drift apart at unbounded rates. Test for cointegration before sizing the trade — visual co-movement is not sufficient evidence.