Augmented Dickey–Fuller test explained
In statistics, an augmented Dickey–Fuller test (ADF) tests the null hypothesis that a unit root is present in a time series sample. The alternative hypothesis depends on which version of the test is used, but is usually stationarity or trend-stationarity. It is an augmented version of the Dickey–Fuller test for a larger and more complicated set of time series models.
The augmented Dickey–Fuller (ADF) statistic, used in the test, is a negative number. The more negative it is, the stronger the rejection of the hypothesis that there is a unit root at some level of confidence.[1]
Testing procedure
The procedure for the ADF test is the same as for the Dickey–Fuller test but it is applied to the model
\Deltayt=\alpha+\betat+\gammayt-1+\delta1\Deltayt-1+ … +\deltap-1\Deltayt-p+1+\varepsilont,
where
is a constant,
the coefficient on a time trend and
the lag order of the autoregressive process. Imposing the constraints
and
corresponds to modelling a
random walk and using the constraint
corresponds to modeling a random walk with a drift. Consequently, there are three main versions of the test, analogous those of the
Dickey–Fuller test. (See that article for a discussion on dealing with uncertainty about including the intercept and deterministic time trend terms in the test equation.)
By including lags of the order p, the ADF formulation allows for higher-order autoregressive processes. This means that the lag length p must be determined in order to use the test. One approach to doing this is to test down from high orders and examine the t-values on coefficients. An alternative approach is to examine information criteria such as the Akaike information criterion, Bayesian information criterion or the Hannan–Quinn information criterion.
The unit root test is then carried out under the null hypothesis
against the alternative hypothesis of
Once a value for the test statistic
}
is computed, it can be compared to the relevant critical value for the Dickey–Fuller test. As this test is asymmetric, we are only concerned with negative values of our test statistic
. If the calculated test statistic is less (more negative) than the critical value, then the null hypothesis of
is rejected and no unit root is present.
Intuition
The intuition behind the test is that if the series is characterised by a unit root process, then the lagged level of the series (
) will provide no relevant information in predicting the change in
besides the one obtained in the lagged changes (
). In this case, the
and null hypothesis is not rejected. In contrast, when the process has no unit root, it is stationary and hence exhibits reversion to the mean - so the lagged level will provide relevant information in predicting the change of the series and the null hypothesis of a unit root will be rejected.
Examples
A model that includes a constant and a time trend is estimated using sample of 50 observations and yields the
statistic of −4.57. This is more negative than the tabulated critical value of −3.50, so at the 95% level, the null hypothesis of a unit root will be rejected.
Critical values for Dickey–Fuller t-distribution. |
---|
| Without trend | With trend |
Sample size | 1% | 5% | 1% | 5% |
T = 25 | −3.75 | −3.00 | −4.38 | −3.60 |
T = 50 | −3.58 | −2.93 | −4.15 | −3.50 |
T = 100 | −3.51 | −2.89 | −4.04 | −3.45 |
T = 250 | −3.46 | −2.88 | −3.99 | −3.43 |
T = 500 | −3.44 | −2.87 | −3.98 | −3.42 |
T = ∞ | −3.43 | −2.86 | −3.96 | −3.41 |
Source[2] | |
Alternatives
There are alternative unit root tests such as the Phillips–Perron test (PP) or the ADF-GLS test procedure (ERS) developed by Elliott, Rothenberg and Stock (1996).[3]
Software implementations
- R:
- package
forecast
function ndiffs
[4] handles multiple popular unit root tests
- package
tseries
function adf.test
[5]
- package
fUnitRoots
function adfTest
[6]
- package
urca
[7]
- Gretl[8]
- Matlab
- the Econometrics Toolbox[9] function
adfTest
[10]
- the Spatial Econometrics toolbox[11] (free)
- SAS
PROC ARIMA
[12]
- Stata command
dfuller
[13]
- EViews the
Unit Root Test
[14] [15] [16] [17]
- Python
- package
statsmodels
[18] function adfuller
- package
ARCH
[19]
- Java project
SuanShu
[20] package com.numericalmethod.suanshu.stats.test.timeseries.adf
class AugmentedDickeyFuller
- Julia package
HypothesisTests
[21] function ADFTest
See also
Further reading
- Book: Greene, W. H. . William Greene (economist)
. William Greene (economist) . 2002 . Econometric Analysis . Fifth . Prentice Hall . New Jersey . 0-13-066189-9 .
- 10.1093/biomet/71.3.599. Testing for Unit Roots in Autoregressive-Moving Average Models of Unknown Order. Biometrika. 71. 3. 599–607. 1984. Said . S. E. . Dickey . D. A. . David Dickey.
Notes and References
- Web site: Glossary of economics research . April 2, 2008 . dead . https://web.archive.org/web/20090302082540/http://econterms.com/glossary.cgi?action=++Search++&query=augmented+dickey-fuller . March 2, 2009 .
- Book: Fuller, W. A. . 1976 . Introduction to Statistical Time Series . John Wiley and Sons . New York . 0-471-28715-6 .
- Elliott . G. . Rothenberg . T. J. . J. H. . Stock . 1996 . Efficient Tests for an Autoregressive Unit Root . . 64 . 4 . 813–836 . 10.2307/2171846 . 2171846 . 122699512 .
- Web site: ndiffs inside-R A Community Site for R . https://web.archive.org/web/20160717021256/http://www.inside-r.org/packages/cran/forecast/docs/ndiffs . 2016-07-17 . 2020-02-23 . Inside-r.org.
- Web site: R: Augmented Dickey-Fuller Test . Finzi.psych.upenn.edu . 2016-06-26.
- Web site: Comparing ADF Test Functions in R · Fabian Kostadinov. fabian-kostadinov.github.io. 2016-06-05.
- Web site: Package 'urca' .
- Web site: Introduction to gretl and the gretl instructional lab . Spot.colorado.edu . 2016-06-26.
- Web site: Econometrics Toolbox - MATLAB . 2016-06-26 . Mathworks.com.
- Web site: Augmented Dickey-Fuller test - MATLAB adftest . Mathworks.com . 2016-06-26.
- Web site: Econometrics Toolbox for MATLAB . Spatial-econometrics.com . 2016-06-26.
- Web site: Stationarity Issues in Time Series Models . David A. Dickey . 2.sas.com . 2016-06-26.
- Web site: Augmented Dickey–Fuller unit-root test . Stata.com . 2016-06-26.
- Web site: Memento on EViews Output . 17 June 2019.
- Web site: EViews.com • View topic - Dickey Fuller for Multiple Regression Models . Forums.eviews.com . 2016-06-26.
- Web site: Augmented Dickey-Fuller Unit Root Tests . Faculty.smu.edu . 2016-06-26.
- Web site: DickeyFuller Unit Root Test . Hkbu.edu.hk . 2016-06-26.
- Web site: statsmodels.tsa.stattools.adfuller — statsmodels 0.7.0 documentation . 2016-06-26 . Statsmodels.sourceforge.net.
- Web site: Unit Root Testing — arch 4.19+14.g318309ac documentation. 2021-10-18. arch.readthedocs.io.
- Web site: SuanShu | Numerical Method Inc . dead . https://web.archive.org/web/20150815184906/http://www.numericalmethod.com/trac/numericalmethod/wiki/SuanShu . 2015-08-15 . 2016-06-26 . Numericalmethod.com.
- Web site: Time series tests . 2020-02-04 . juliastats.org.