Unit roots, spurious regression and the basis of pairs trading
TS · Chapter 313 min readAsked at Two Sigma, Citadel, DE Shaw, AQR
After this lesson you should be able to
- Say why regressing one random walk on another produces nonsense.
- Define cointegration and distinguish it from correlation.
- Describe how a pairs trade is estimated and what kills it.
Prices wander; returns do not. Almost every mistake in applied time series comes from running a regression on the first kind of series while reasoning as though it were the second. Cointegration is the precise condition under which a regression on levels *is* legitimate, and it is the statistical content of a pairs trade.
Definition 3.1
Stationarity
Weak stationarity, — The mean is constant and the covariance depends only on the lag, not on where you are in the sample. A random walk fails this: its variance grows without bound, so it has no mean to revert to and no fixed scale.
Equation 3.3
The unit root
Stationary when ; a random walk when . That single boundary separates a series that mean-reverts from one that does not.
- The unit root. Shocks are permanent and the variance grows linearly in time.
- Shocks decay with half-life .
Why spurious regression happens. Take two independent random walks and regress one on the other. You will routinely find a t-statistic above 2 and an of 0.3 or more, on data with no relationship whatever. The reason is that the residual is itself a random walk, so it is massively autocorrelated, and the usual standard-error formula assumes it is not — it therefore understates the true uncertainty by an enormous factor. The regression is not detecting a relationship; it is detecting that both series have long, slow swings.
| Aspect | Augmented Dickey–Fuller | KPSS |
|---|---|---|
| Null hypothesis | There is a unit root | The series is stationary |
| Rejecting means | The series is stationary | There is a unit root |
| Known weakness | Low power near | Sensitive to the lag choice |
| Good practice | Run both — agreement is more informative than either alone | — |
The rest of this lesson is in Premium
You have read the opening. 12 more sections follow, including 4 worked examples and 3 quick checks.
Nothing is charged for 7 days, and you can cancel before then. Or read The law of large numbers and the central limit theorem in full, free.