Whether a series reverts to a level or wanders from it decides which models apply. A stationary series has a fixed mean and a finite variance, and a regression on it behaves while its past informs its future. With a unit root, an integrated series has a variance growing without bound and a drifting level. Regressions on it are spurious, and its sample moments do not converge. This is the boundary the autoregression left off, where the dominant root lies on the unit circle. Separating the two regimes is the first task, and it is done by a pair of complementary tests built on the limit theory of integrated processes, one taking the unit root as its null and one taking stationarity [1], [2].
#The scaling limit of a random walk
Both tests rest on what a normalised random walk converges to. Write for weak convergence of the sample path on , for convergence in probability, and for standard Brownian motion.
Let be iid with mean zero and variance , and let be the partial-sum process. Then on .
The normalised partial sum of the shocks converges to a Brownian path, so a random walk scaled by is asymptotically . The unit-root laws below all come from two functionals of that path.
Let with iid mean zero variance . Then
For the first, , so by Lemma 1. The sum is a Riemann average of its square, , which converges under the continuous map to .
For the second, telescoping gives . Dividing by , the first term is and the second is by the law of large numbers. The difference converges to , which is the Ito integral .
#The Dickey-Fuller test
The first test reads the unit root off the estimated autoregressive coefficient.
For with ordinary least squares estimator , the Dickey-Fuller coefficient and -statistics are and .
Under with iid mean zero variance ,
Least squares gives , so
and Equation (1) supplies numerator and denominator with the cancelling, and the first limit follows. For , the standard error obeys with , so
one factor of cancelling against and one against the square root of the denominator.
Augmenting the regression with whitens serial correlation. The limits then hold with the variance of the white-noise shock, and this is the augmented Dickey-Fuller test [3]. A fitted constant or trend replaces by the demeaned or a detrended analogue, shifting the quantiles without changing the form. The Phillips-Perron variant corrects the statistic nonparametrically for serial correlation rather than by augmentation [4].
In practice the test fits the augmented regression with a lag length chosen by an information criterion, then compares the ratio to the tabulated Dickey-Fuller critical values rather than the normal ones.
Augmented Dickey-Fuller test
input series y, maximum augmenting lags, deterministic case
1 choose lags p by minimising an information criterion
2 regress dy_t on y_{t-1}, the lags dy_{t-1}..dy_{t-p},
and the deterministic terms
3 tau <- t-statistic of the coefficient on y_{t-1}
4 reject the unit root when tau is below the Dickey-Fuller
critical value for the chosen deterministic case
The tabulated values lie well to the left of the normal ones, the practical mark of the skewed limit in Equation (2). The 5% quantile near is left of the normal , so reading a unit-root statistic off normal tables would reject far too often [5].
#The confirmatory test
Failing to reject a unit root is not evidence for one, so the coefficient test is not conclusive alone. The confirmatory test runs the hypotheses the other way, taking stationarity as its null.
With residuals from regressing on a constant, or on a constant and trend, partial sums , and a heteroskedasticity- and autocorrelation-consistent estimator of the long-run variance, the statistic is .
Under stationarity , where is a standard Brownian bridge in the level case and a second-level bridge in the trend case.
Demeaning maps the functional limit to the bridge , since the residuals sum to zero, so with the long-run variance. The continuous map together with gives [6].
Run on an integrated series, the two verdicts agree. The level fails to reject a unit root under Dickey-Fuller yet rejects stationarity under KPSS. The series is then integrated of order one and is differenced before any stationary model is fitted. That order of integration is exactly the input the next step needs. When several series each carry a unit root, a linear combination of them can still be stationary, which is the cointegration that underlies statistical arbitrage and the error-correction structure of the cointegration post.