FRENESDE

Stationarity and cointegration

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

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
Spread
Here, the gap between two prices: s = A − βB
Take the mission on Doji Academy

← Back to the index