In statistics, a unit root test tests whether a time series variable is non-stationary and possesses a unit root. The null hypothesis is generally defined as the presence of a unit root and the alternative hypothesis is either stationarity, trend stationarity or explosive root depending on the test used.
In general, the approach to unit root testing implicitly assumes that the time series to be tested can be written as,
where,
The task of the test is to determine whether the stochastic component contains a unit root or is stationary.
A commonly used test that is valid in large samples is the augmented Dickey–Fuller test. The optimal finite sample tests for a unit root in autoregressive models were developed by Denis Sargan and Alok Bhargava by extending the work by John von Neumann, and James Durbin and Geoffrey Watson. In the observed time series cases, for example, Sargan-Bhargava statistics test the unit root null hypothesis in first order autoregressive models against one-sided alternatives, i.e., if the process is stationary or explosive under the alternative hypothesis.