A simple AR model is where is the variable of interest, is the time index, is a coefficient, and is the error term. A unit root is present if. The model would be non-stationary in this case. The regression model can be written as where is the first difference operator. This model can be estimated and testing for a unit root is equivalent to testing . Since the test is done over the residual term rather than raw data, it is not possible to use standard t-distribution to provide critical values. Therefore, this statistic has a specific distribution simply known as the Dickey–Fuller table. There are three main versions of the test: 1. Test for a unit root: 2. Test for a unit root with drift: 3. Test for a unit root with drift and deterministic time trend: Each version of the test has its own critical value which depends on the size of the sample. In each case, the null hypothesis is that there is a unit root,. The tests have low statistical power in that they often cannot distinguish between true unit-root processes and near unit-root processes. This is called the "near observation equivalence" problem. The intuition behind the test is as follows. If the series is stationary, then it has a tendency to return to a constant mean. Therefore, large values will tend to be followed by smaller values, and small values by larger values. Accordingly, the level of the series will be a significant predictor of next period's change, and will have a negative coefficient. If, on the other hand, the series is integrated, then positive changes and negative changes will occur with probabilities that do not depend on the current level of the series; in a random walk, where you are now does not affect which way you will go next. It is notable that may be rewritten as with a deterministic trend coming from and a stochastic intercept term coming from, resulting in what is referred to as a stochastic trend. There is also an extension of the Dickey–Fuller test called the augmented Dickey–Fuller test, which removes all the structural effects in the time series and then tests using the same procedure.
Dealing with uncertainty about including the intercept and deterministic time trend terms
Which of the three main versions of the test should be used is not a minor issue. The decision is important for the size of the unit root test and the power of the unitroot test. Inappropriate exclusion of the intercept or deterministic time trend term leads to bias in the coefficient estimate for δ, leading to the actual size for the unit root test not matching the reported one. If the time trend term is inappropriately excluded with the term estimated, then the power of the unit root test can be substantially reduced as a trend may be captured through the random-walk with drift model. On the other hand, inappropriate inclusion of the intercept or time trend term reduces the power of the unit root test, and sometimes that reduced power can be substantial. Use of prior knowledge about whether the intercept and deterministic time trend should be included is of course ideal but not always possible. When such prior knowledge is unavailable, various testing strategies have been suggested, e.g. by Dolado, Jenkinson, and Sosvilla-Rivero and by Enders, often with the ADF extension to remove autocorrelation. Elder and Kennedy present a simple testing strategy that avoids double and triple testing for the unit root that can occur with other testing strategies, and discusses how to use prior knowledge about the existence or not of long-run growth in y. Hacker and Hatemi-J provide simulation results on these matters, including simulations covering the Enders and Elder and Kennedy unit-root testing strategies. Simulation results are presented in Hacker which indicate that using an information criterion such as the Schwarz information criterion may be useful in determining unit root and trend status within a Dickey–Fuller framework.