Pairs Trading and Cointegration
A market-neutral quantitative strategy that exploits temporary divergences between cointegrated assets using Z-Score mean reversion.

Definition and Mechanics of Pairs Trading and Cointegration
Pairs trading is a market-neutral statistical arbitrage strategy that simultaneously takes a long position in one asset and a short position in a related asset, aiming to profit from the convergence of their temporary price divergence regardless of overall market direction.
The statistical foundation of this approach is cointegration. While simple correlation measures whether two assets move in the same direction over short periods, cointegration tests whether a linear combination of two non-stationary price series forms a stationary series that fluctuates around a stable long-term equilibrium. In other words, it mathematically verifies that the spread between two assets exhibits mean reversion even after temporary dislocations.
Chart Application and Z-Score Execution Rules
In practice, traders select two assets with strong economic or structural links—such as sector peers in equities or closely tied crypto assets—and estimate a hedge ratio (β) via linear regression to construct the spread (Asset A − β × Asset B). The spread is then standardized using its rolling mean and standard deviation into a Z-Score.
Z-Score Entry and Exit Framework
- Entry Signals: When the Z-Score rises above +2.0, the trader shorts the relatively overvalued Asset A and buys the undervalued Asset B. Conversely, when the Z-Score drops below −2.0, the trader buys Asset A and shorts Asset B.
- Exit Signals: Both legs are closed simultaneously once the spread reverts toward its mean and the Z-Score returns near 0.
- Practical Scenario: Suppose the log-price spread Z-Score between BTC and ETH spikes to +2.3 due to short-term order flow imbalance. A trader enters a short BTC and long ETH position weighted by the hedge ratio. Even if the broader market subsequently declines, as long as ETH outperforms BTC on a relative basis and the spread converges back to zero, the combined position generates a profit.
Key Risks and Limitations
- Structural Break (Regime Shift): Earnings shocks, protocol exploits, or regulatory events can permanently break the historical relationship between two assets. If the spread continues to widen without reverting, losses can compound rapidly; therefore, a hard stop-loss (such as Z-Score ±3.5 or ±4.0) is essential.
- Confusing Correlation with Cointegration: High short-term correlation does not guarantee a stable spread. Traders should validate stationarity using statistical tests such as the Engle-Granger two-step method or the Augmented Dickey-Fuller (ADF) test.
- Execution and Carry Costs: Because the strategy requires maintaining two simultaneous legs, double trading fees, slippage, borrow fees, or perpetual funding rates can significantly erode net expectancy.