Английская Википедия:Dickey–Fuller test
Шаблон:Short description In statistics, the Dickey–Fuller test tests the null hypothesis that a unit root is present in an autoregressive (AR) time series model. The alternative hypothesis is different depending on which version of the test is used, but is usually stationarity or trend-stationarity. The test is named after the statisticians David Dickey and Wayne Fuller, who developed it in 1979.[1]
Explanation
A simple AR model is
- <math>y_{t}=\rho y_{t-1}+u_{t}\,</math>
where <math>y_{t}</math> is the variable of interest, <math>t</math> is the time index, <math>\rho</math> is a coefficient, and <math>u_{t}</math> is the error term (assumed to be white noise). A unit root is present if <math>\rho = 1</math>. The model would be non-stationary in this case.
The regression model can be written as
- <math> \Delta y_{t}=(\rho-1)y_{t-1}+u_{t}=\delta y_{t-1}+ u_{t}\,</math>
where <math>\Delta</math> is the first difference operator and <math>\delta \equiv \rho - 1</math>. This model can be estimated, and testing for a unit root is equivalent to testing <math>\delta = 0</math>. 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 <math>t</math> 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:
- <math>\Delta y_t =\delta y_{t-1}+u_t \,</math>
2. Test for a unit root with constant:
- <math>\Delta y_t =a_0+\delta y_{t-1}+u_t \,</math>
3. Test for a unit root with constant and deterministic time trend:
- <math>\Delta y_t = a_0+a_1t+\delta y_{t-1}+u_t \,</math>
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, <math>\delta = 0</math>. The tests have low statistical power in that they often cannot distinguish between true unit-root processes (<math>\delta = 0</math>) and near unit-root processes (<math>\delta</math> is close to zero). This is called the "near observation equivalence" problem.
The intuition behind the test is as follows. If the series <math>y</math> is stationary (or trend-stationary), then it has a tendency to return to a constant (or deterministically trending) mean. Therefore, large values will tend to be followed by smaller values (negative changes), and small values by larger values (positive changes). 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
- <math>\Delta y_t =a_0 + u_t \,</math>
may be rewritten as
- <math>y_t = y_0 + \sum_{i=1}^t u_i + a_0t </math>
with a deterministic trend coming from <math>a_0t</math> and a stochastic intercept term coming from <math>y_0 + \sum_{i=1}^t u_i</math>, resulting in what is referred to as a stochastic trend.[2]
There is also an extension of the Dickey–Fuller (DF) test called the augmented Dickey–Fuller test (ADF), which removes all the structural effects (autocorrelation) 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 (the probability of rejecting the null hypothesis of a unit root when there is one) and the power of the unit root test (the probability of rejecting the null hypothesis of a unit root when there is not one). 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 <math>a_0 </math> 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.[3] 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 (series of ordered tests) have been suggested, e.g. by Dolado, Jenkinson, and Sosvilla-Rivero (1990)[4] and by Enders (2004), often with the ADF extension to remove autocorrelation. Elder and Kennedy (2001) present a simple testing strategy that avoids double and triple testing for the unit root that can occur with other testing strategies, and discuss how to use prior knowledge about the existence or not of long-run growth (or shrinkage) in y.[5] Hacker and Hatemi-J (2010) provide simulation results on these matters,[6] including simulations covering the Enders (2004) and Elder and Kennedy (2001) unit-root testing strategies. Simulation results are presented in Hacker (2010) 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.[7]
See also
References
Further reading
External links
- Statistical tables for unit-root tests – Dickey–Fuller table
- How to do a Dickey-Fuller Test Using Excel