Quant research and backtesting
Cointegration
Also called cointegrated series, Engle-Granger
Two or more non-stationary series are cointegrated if some linear combination of them is stationary, so they drift together and their spread mean-reverts.
How it works
Engle and Granger (1987) defined it and gave a two-step method: regress one price on the other to estimate the hedge ratio, then test the residual for a unit root. Cointegration is about levels sharing a long-run path; correlation is about co-movement of returns, and two series can be highly correlated in returns yet drift apart in levels, or cointegrated with modest return correlation. The Engle-Granger test depends on which series is the dependent one, and Johansen's method handles more than two series. The relationship can break when the economic link changes, for example after a merger or a change of business.
Worked example
Regress stock Y on stock X: Y = 1.5 X + e. If the residual e passes a unit root test, the spread Y - 1.5 X is stationary: buy 1 share of Y and sell 1.5 shares of X when the spread is far below its mean.
Related terms
Put it to work in a timed game.
Practise with Find the BugSources
Last checked November 2026.