Pairs Trading
- Category
- Advanced Research
- Level
- Expert
Simple definition
Buying one instrument and selling a related one, betting that the gap between them returns to its usual size rather than that either goes up.
Professional definition
A strategy that takes offsetting long and short positions in two linked instruments sized by a hedge ratio, entering when the spread is far from its estimated mean and exiting as it reverts. The directional exposure is intended to cancel, leaving the spread as the traded object.
Technical definition
The trading application of a cointegrating relation. The spread is formed with the estimated cointegrating coefficient, standardised against its sample mean and standard deviation, and traded against threshold levels of that standardised deviation. Every component is an estimate: the hedge ratio, the mean, the dispersion and the decay rate. All four can shift, and when the underlying link fails the position becomes an unhedged directional bet with no stop implied by the model.
Academic definition
A relative-value strategy exploiting mean reversion in a stationary linear combination of two non-stationary price series, conditional on the cointegrating relation persisting out of sample.
Mechanism
The hedge ratio is chosen so the shared trend cancels and only the stationary residual is exposed. Profit comes from the residual reverting, so the strategy is short the spread's dispersion and long its stability. That makes the risk structural rather than directional: losses do not come from being wrong about direction but from the relation itself ceasing to hold, which has no natural stop level.
In practice
- Who uses it
- Relative-value desks, basis and calendar-spread traders, and systematic researchers testing mean reversion between linked instruments.
- Why it matters
- Hedging out the common trend removes most market risk from the position, so a much smaller and more measurable effect becomes tradable.
- Limitations
- The method is only as durable as the link it rests on. Most published pairs relationships decay, cointegration is a sample property rather than a law, and a broken pair carries unhedged directional risk.
Common mistakes
- Selecting pairs by searching many combinations and keeping the best in-sample ones.
- Holding through a widening spread because the model says it must revert.
- Ignoring borrow cost, funding and the short leg's availability.
Examples
A spread with a sample mean of 1.0 and a standard deviation of 0.5 currently reads 2.4, a z-score of 2.8. A rule entering beyond 2.0 would be short the spread here, with its only exit logic being reversion it cannot verify.
- spread s_t = 2.4
- sample mean mu = 1.0
- sample standard deviation sigma = 0.5
- entry threshold = 2.0 standard deviations
- z = (2.4 - 1.0) / 0.5
- z = 1.4 / 0.5 = 2.8
- 2.8 > 2.0, so the rule triggers
The mean and standard deviation are themselves sample estimates. If the relation has shifted, this is not a two-point-eight sigma deviation but a new normal, and the z-score will keep rising.
A pair cointegrated for years separates after one of the two changes economically. The spread keeps widening, each new level looks like a stronger signal by z-score, and position sizing rules that add on deviation make the loss grow fastest exactly when the model is most wrong.
Mathematical foundation
Variables
| s_t | The traded spread, formed with the estimated hedge ratio | price units |
| \beta | Estimated hedge ratio, from a cointegrating regression | ratio |
| \hat{\mu}_s | Estimated mean of the spread over the sample | price units |
| \hat{\sigma}_s | Estimated standard deviation of the spread over the sample | price units |
| z_t | Standardised deviation of the spread, the usual entry and exit variable | standard deviations |
Procedure
Test the two series for cointegration first and estimate the hedge ratio. Build the spread, estimate its mean and dispersion on data the entry rule will not reuse, and standardise. Trade against thresholds in those units, re-estimating on a rolling basis, and test out of sample before any capital is committed.
Worked example
- s_t = 2.4
- mu = 1.0
- sigma = 0.5
- s_t - mu = 1.4
- z = 1.4 / 0.5
Interpretation
The z-score measures how unusual the spread is relative to the sample that produced the estimates. It is a statement about that sample, not about the future, and it stays large while a relation is breaking as readily as while it is reverting.
Assumptions
- The spread is stationary with a stable mean and dispersion over the holding period; both are estimates and both can shift.
- The hedge ratio remains valid out of sample. If beta drifts, the position is no longer hedged even though the arithmetic still produces a z-score.
- Entry and exit thresholds are conventions, not optima. Different choices give different results on the same data, and selecting the best-performing pair makes the reported figures unreliable.
- No stop loss is implied by the model: the worse the loss, the stronger the signal appears, so risk limits must come from outside the model.
- Execution costs apply to both legs and to every rebalance, and the short leg carries borrow or funding cost; these frequently exceed the measured spread reversion.
- Cointegration is not a law. An in-sample relationship can break without warning and most published pairs relationships decay, so live performance commonly falls short of the backtest.
Related terminology
- parent
- Cointegration
- related
- Cointegration Mean Reversion Stationarity Strategy Decay Hedge Ratio Arbitrage Data Snooping In-Sample versus Out-of-Sample Correlation Backtesting Walk-Forward Testing
Arbitrage
Arbitrage locks a profit from a price inconsistency with offsetting trades that settle against each other. Pairs trading takes a statistical bet that a historical relationship continues; there is no mechanism forcing convergence, so it can lose without limit.
Sources
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
