A series is stationary if its mean, variance and autocorrelations do not change over time. Prices usually are not (they have a unit root, like a random walk); returns approximately are.
Two non-stationary prices are cointegrated if a combination s = A − βB is stationary. Engle-Granger method: regress A on B to get β, then test the residual. Example: A = 100, B = 50, β = 1.8 → spread = 100 − 1.8 × 50 = 10.
ADF test (augmented Dickey-Fuller): the null hypothesis is a unit root. A statistic of −3.9 against a critical value of about −3.34 (5%, Engle-Granger residuals of two series) → reject: the spread is stationary. On estimated residuals, thresholds are stricter than for a plain ADF (≈ −2.86).
To test a pair, you always follow the same order: estimate β by regression, compute the residual, then apply the test to that residual. Correlation ≠ cointegration: two series correlated at 0.9 can diverge forever. And past cointegration can break (merger, regulatory change, new business model).
Examples
COINT-AB (fictional market) : Two fictional stocks, COINT-A and COINT-B (fictional market). Regression: β = 0.75. Spread s = A − 0.75 B. ADF statistic of the spread: −4.2, p ≈ 0.003 → stationary, with a mean of 2.0 and a standard deviation of 1.5. The prices alone have ADF values of −1.1 and −0.9: non-stationary. The chart shows the spread oscillating around its mean.
Royal Dutch and Shell: imperfect twins : Royal Dutch and Shell Transport shared the cash flows of the same group in a fixed 60/40 ratio: their prices should have stayed at parity. Yet Froot and Dabora (1999) documented lasting gaps, sometimes above 10%, for years. In 1998, LTCM held a large position betting on this gap converging, and it widened at the worst moment. The two companies unified their structure in 2005. Lesson: even a “guaranteed” relationship can diverge for longer than you can hold on.
Key terms
Stationarity
Statistical properties (mean, variance) stable over time
Unit root
Feature of a series that does not revert to a mean, like a random walk
Cointegration
Long-run relationship: a combination of non-stationary series is stationary
Hedge ratio (β)
Amount of B to sell per unit of A to form the spread
ADF test
Augmented Dickey-Fuller test: its starting hypothesis is that the series has a unit root
P-value
Probability of a result at least this clear if the starting hypothesis were true