Learn / Track II / lesson 2 of 4
Stationarity and autocorrelation
Why you model returns rather than prices, how to test whether a series wanders or reverts, and what autocorrelation means for your P&L.
Statistics learned on the past only tell you about the future if the process generating the data has not changed. A series whose statistical properties stay constant over time is called stationary.
Weak stationarity
A time series is (weakly) stationary if
- its mean does not depend on ,
- its variance is finite and constant, and
- its autocovariance depends only on the lag , not on .
Prices fail this: they drift and their variance grows with time. Returns are much closer to stationary, which is why almost all modelling is done on returns.
The random walk and the unit root
The simplest non-stationary model is a random walk, . More generally, consider
This is an AR(1) process. If the series is stationary and mean-reverting, with a long-run variance of . If it has a unit root: shocks never decay, and the series wanders like a price.
The Augmented Dickey–Fuller (ADF) test checks the null hypothesis . Rejecting it (a sufficiently negative test statistic) is evidence the series is mean-reverting. The test is the standard first step in pairs trading, applied to the spread between two assets.
Half-life of mean reversion
For a stationary AR(1), a deviation decays by a factor each period. The time for half of it to disappear is
A spread with per day has a half-life of about 13.5 days. That number tells you how long trades will last, how often you’ll trade, and therefore whether costs will eat the edge.
Autocorrelation
The autocorrelation at lag is
For returns, a positive means moves tend to continue (momentum); negative means they tend to reverse (mean reversion). Under the null of no autocorrelation, sample estimates have a standard error of roughly , so with 1,000 observations anything inside is indistinguishable from noise at the usual 95% level.
Raw returns of liquid assets show tiny autocorrelation, but their squared or absolute returns show strong, slowly decaying autocorrelation. Direction is hard to predict; volatility is not. That is the empirical fact behind volatility targeting and GARCH models.
Why it matters for your P&L
If your strategy’s daily returns are autocorrelated, the usual annualisation is off. A useful correction for the variance of a -period sum is
Positive autocorrelation inflates long-horizon risk; negative autocorrelation (common in mean-reversion strategies) reduces it, which flatters the annualised Sharpe ratio.
Running a regression of one price on another and reading off a high . Two independent random walks regularly produce “significant” regressions — the classic spurious regression. Regress returns, or test the residual for stationarity first.