What is pairs trading? A plain-English guide to statistical arbitrage
Pairs trading is one of the oldest ideas in quantitative finance. You take two assets whose prices have historically moved together, such as two soft-drink makers or two gold ETFs. When the gap between them becomes unusually wide, a pairs trader bets that it will narrow again: long the asset that has fallen behind, short the one that has run ahead.
Why traders like it
Because one leg is long and the other is short, a broad market move tends to hit both sides. If the whole market falls 5%, both stocks probably fall too, and the losses on one leg are partly offset by gains on the other. That is why pairs trading is often called market neutral. The bet is on the relationship between two prices, not on the direction of the market.
The statistical idea behind it
Two prices that wander randomly can drift apart forever. What a pairs trader needs is a combination of the two prices, the spread, that keeps returning to a stable average. Statisticians call such a series stationary, and two prices whose spread is stationary are cointegrated. Correlation alone is not enough; we explain why in cointegration vs correlation.
In practice the spread is usually built from log prices:
spread = ln(A) − β · ln(B) − α
where β (the hedge ratio) and α come from a regression of A on B over a look-back window. The spread's distance from its mean is then measured in standard deviations, the z-score.
A typical rule set
- Study only pairs whose spread passes a cointegration test and reverts reasonably fast (see half-life).
- Pick an entry level, for example |z| ≥ 2, an exit level such as |z| ≤ 0.5, and a stop level such as |z| ≥ 3.5.
- Size the two legs so that they offset each other, typically in the ratio 1 : β in dollars.
These numbers are conventions, not laws. Different traders use different levels, and the right ones depend on the pair, costs and risk tolerance. Arbitrading lets you set your own and backtest them.
What can go wrong
- The relationship breaks. A takeover, a lawsuit or a change in business model can permanently separate two companies. A spread that looked stationary for years can trend away and never come back.
- Costs eat the edge. Commissions, bid-ask spreads and the cost of borrowing shares to short can turn a profitable backtest into a losing strategy.
- Crowding. Popular pairs are watched by many traders, so gaps close faster and smaller.
- Two losing legs. In stressed markets both legs can move against you at once.
How to start studying pairs
Browse the pair statistics to see which pairs currently pass a cointegration test, how fast they revert, and where their spread sits today. Treat every number as a description of the past, not a promise about the future.