Lots of things are non-stationary and these are much harder to deal with, but can typically be made stationary by differencing
Definition: A time series is integrated of order d, denoted , if is the smallest number such that is weakly stationary
Now the problem of spurious regression is as follows,
- Let and be independent, for example two independent random walks
- What happens if we perform the regression ? We expect to get and , but instead they converge to random variables and our test statistic diverges
This is a big problem! We want to be able to judge if one variable explains another
How do we judge the order of integration of a time series?
For an process, we focus on testing versus , which are the most practically relevant cases in economics
Definition: The Dickey-Fuller unit root test (DF test) makes use of the -ratio , where is the least squares estimate of in the model
This does not follow a regular distribution
When is stationary, is consistent, i.e. is asymptotically normal
When is non-stationary, is still consistent, but also converges to ! So we must multiply by a larger number, and we get the Dickey-Fuller distribution
Example:
Suppose you get and
So is rejected at and significant levels, which lets us conclude that the process is stationary
How do we test general models? We use the Augmented Dickey-Fuller test
Regress on and test if
To start, let’s consider how his works on an model (which of course it covers)
, where corresponds to a unit root
So our test statistic is
Now, note that adding an intercept or any other trend requires a different simulated distribution to test against
Extending to amounts to rewriting the process as a regression with and testing ,
, where
We can keep differencing and testing until the test succeeds to figure out the order of the time series
Given sample data, how do we choose a value of for the ADF test?
We estimate the ADF regression for with/without intercept/trend, storing the BIC values
Then we find the best model whose residuals tests negative for autocorrelation