arbitrading

Learn

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

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

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.

Try Pro free for 14 days

More guides