- Introduced by
- Gatev, Goetzmann & Rouwenhorst (empirical rule); Vidyamurthy (quantitative framing)
- Year
- 2006
- Type
- Cointegration-based mean-reversion trading strategy
What does it do?
Pairs trading is a strategy that takes offsetting long and short positions in two related assets and bets that the gap between their prices will return to its usual level.
Gatev, Goetzmann and Rouwenhorst (2006) tested a Wall Street version of the rule, based on distances between normalised prices, on US stock data. A cointegration and mean-reversion formulation of the strategy is also used, and this page describes the strategy in those terms. Because profit is likely but not guaranteed, it is a form of statistical arbitrage rather than pure arbitrage.
The intuition behind the method
Two related assets, such as two stocks in the same sector, often have prices that move together. When the gap between them temporarily widens, the strategy buys the relatively cheap asset and sells short the relatively expensive one, then closes both positions once the gap returns to its usual level. The profit depends on the relationship between the two prices rather than on the direction of the market as a whole, but only for as long as that relationship holds.
History
Gatev, Goetzmann and Rouwenhorst (2006) tested a Wall Street pairs trading rule on daily US stock data from 1962 to 2002. Their pairs were matched by minimum distance between normalised historical prices, and the rule produced average annualised excess returns of up to 11% for self-financing portfolios of pairs. Their rule is an empirical, distance-based procedure. The cointegration and Ornstein-Uhlenbeck framing used on this page follows the quantitative treatment of pairs trading in Vidyamurthy (2004).
When to use it
Use pairs trading on two continuous price series that have an economic reason to be related and that show a cointegrated relationship over a sample long enough to estimate the hedge ratio and reversion parameters with some reliability. It is appropriate when the spread passes a stationarity test and its estimated half-life is short enough to act on relative to trading costs. It is not suitable when the link between the assets has no economic basis, when the cointegration relationship is unstable, or when transaction costs and slippage are large relative to the spread's typical move.
Limitations and considerations
- Profitability depends on the pair continuing to behave as a cointegrated relationship; pairs that look related in-sample may not hold out of sample.
- Statistical arbitrage carries model risk: the cointegration or error-correction model may be incorrect, and even a correct model must be estimated from past data, so its parameters may not hold in the future.
- Gatev et al. (2006) link the profitability of their rule to a common factor in returns that is different from conventional risk measures, so the excess returns cannot be treated as risk-free.
- Gatev et al. (2006) report that profits typically exceed conservative transaction-cost estimates for their 1962–2002 US sample. This does not guarantee the same margin in other markets or periods, and per-trade edges can be small relative to costs and slippage.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Approximately market-neutral: the long and short legs offset overall market moves only to the extent that the hedge ratio and the cointegration relationship hold, so profit depends mainly on the relative move of the pair.
- The relationship can be tested before trading through a cointegration test and a stationarity test on the spread.
- The Ornstein-Uhlenbeck formulation gives each pair an estimated half-life, which indicates how long a trade may take to resolve.
Applications
- Equity statistical arbitrage on pairs of stocks within the same sector or index.
- Relative-value trading across related instruments such as ETFs, futures, or commodity pairs.
- Constructing market-neutral overlays intended to have limited exposure to broad market moves.
How it works
How it works
A regression of one price on the other gives the hedge ratio β, and the spread zₜ = Pᴬₜ − β·Pᴮₜ is the residual of this cointegrating regression. The approach requires the spread to be stationary. This is checked with a cointegration test (Engle-Granger or Johansen). If a unit-root test such as ADF is applied to a spread built from an estimated β, use Engle-Granger/MacKinnon cointegration critical values rather than standard ADF tables, because standard tables overstate the evidence for stationarity on estimated residuals. The null hypothesis of the ADF test is a unit root, so rejection supports stationarity. Use a significance level chosen in advance.
Formula
z_t = P^{A}_t - \beta\, P^{B}_tThe spread is modelled as an Ornstein-Uhlenbeck process, in which θ sets the speed at which the spread reverts toward its mean μ. The half-life ln 2 / θ gives the typical time for a deviation from the mean to halve, so a half-life that is long relative to the intended holding period suggests the spread may not revert in a useful horizon. A common way to turn this into a rule is to standardise the spread as (zₜ − μ̂)/σ̂, using estimates of its mean and standard deviation. A position is opened when the absolute standardised spread exceeds an entry threshold (short the spread when it is high, long when it is low) and closed when it returns toward zero. Entry and exit thresholds are chosen in advance and should be validated out of sample, not tuned on the evaluation data. A stop-loss, or a re-test of cointegration on a rolling window, should define when to abandon a trade because the relationship has broken down.
Formula
dz_t = \theta(\mu - z_t)\,dt + \sigma\,dW_t,\quad t_{1/2} = \tfrac{\ln 2}{\theta}Common pitfalls
- Treating a high price correlation as proof of cointegration; the pair should be tested with a cointegration method and the spread checked for stationarity using appropriate critical values.
- Ignoring the half-life: a spread whose estimated half-life is long relative to the holding period may not revert in time to be traded.
- Estimating the hedge ratio and spread on the same data used to evaluate the strategy, which overstates out-of-sample performance.
- Selecting pairs from a large universe by in-sample distance or test statistics, which can introduce data-snooping bias; the pair selection step should be part of the out-of-sample evaluation.
- Backtesting without realistic transaction costs and slippage, which can make a small per-trade edge look larger than it is.
- Trusting estimated parameters as if they were known: the model and its parameters come from past data and may be wrong or unstable.
- Failing to monitor for cointegration breakdown, leaving a position open after the relationship has structurally changed.
Frequently asked questions
How do I find a tradeable pair?
Look for two economically related assets and test them for cointegration with the Engle-Granger or Johansen test. If the pair is cointegrated, form the spread using the hedge ratio and check that it is stationary. When the hedge ratio is estimated, use Engle-Granger/MacKinnon critical values rather than standard ADF tables, with a significance level chosen in advance.
What is the half-life and why does it matter?
The half-life ln 2 / θ comes from the Ornstein-Uhlenbeck model and measures how long the spread takes to close half of a deviation from its mean. A short half-life means trades can resolve within a practical horizon; a long one means the spread may not revert in time to be traded.
Is pairs trading really market-neutral?
Because you are long one asset and short the other, the strategy's profit depends mainly on the relative move of the pair rather than the market's overall direction. It is only approximately market-neutral, and only as long as the hedge ratio and the cointegration relationship hold.
What is the biggest risk?
A regime change that breaks the cointegration relationship: the spread stops reverting and keeps widening, producing large losses. Model risk is related, since the estimated model and parameters come from past data. This is why the relationship must be monitored continuously, with a stop-loss or re-test rule, alongside transaction costs and slippage.
Related methods
Sources
Gatev, E., Goetzmann, W. N. & Rouwenhorst, K. G. (2006). Pairs Trading: Performance of a Relative-Value Arbitrage Rule. Review of Financial Studies, 19(3), 797–827.
Open DOI referenceVidyamurthy, G. (2004). Pairs Trading: Quantitative Methods and Analysis. Wiley.
ISBN: 978-0471460671Statistics and Data Analysis for Financial Engineering (2015), Sect. 15.3 Trading Strategies