Econometrics 2
Non-Stationary Time Series and Unit Root Tests
Heino Bohn Nielsen
1 of 28
Non-Stationary Time Series and Unit Root Tests Heino Bohn Nielsen - - PowerPoint PPT Presentation
Econometrics 2 Non-Stationary Time Series and Unit Root Tests Heino Bohn Nielsen 1 of 28 Outline (1) Deviations from stationarity: Trends. Level shifts. Variance changes. Unit roots. (2) More on autoregressive unit root
Econometrics 2
Heino Bohn Nielsen
1 of 28
(1) Deviations from stationarity:
(2) More on autoregressive unit root processes. (3) Dickey-Fuller unit root test.
(4) Further issues.
2 of 28
Recall the definition: A time series is called weakly stationary if
for k = 1, 2, ...
Examples of non-stationarity: (A) Deterministic trends (trend stationarity). (B) Level shifts. (C) Variance changes. (D) Unit roots (stochastic trends).
3 of 28
50 100 150 200 5 10 (A) Stationary and trend-stationary process
~ xt xt
50 100 150 200 5 (B) Process with a level shift 50 100 150 200
5 (C) Process with a change in the variance 50 100 150 200 5 10 (D) Unit root process
4 of 28
We need a model for a trending variable, yt.
(1) yt has a trending mean, E[yt] = µ0 + µ1t, and is non-stationary. (2) The de-trended variable, b
We say that yt is trend-stationary.
(3) The stochastic part is stationary and standard asymptotics apply to b
(4) Solution: Extend the regression with a deterministic trend, e.g.
5 of 28
for t = 1, 2, ..., T0
for t = T0 + 1, T0 + 2, ..., T.
(1) Include a dummy variable
in the regression model,
If yt − β3 · Dt is stationary, standard asymptotics apply.
(2) Analyze the two sub-samples separately.
This is particularly relevant if we think that more parameters have changed.
6 of 28
An example is
where
The interpretation is that the time series covers different regimes.
We return to so-called ARCH models for changing variance later.
7 of 28
Consider the DGP
for t = 1, 2, ..., 500, and y0 = 0. Consider the distribution of b
0.35 0.40 0.45 0.50 0.55 0.60 0.65 0.0 2.5 5.0 7.5 10.0
(C) Distribution of ^ θ for θ=0.5
Distribution of ^ θ N(s=0.0389)
0.97 0.98 0.99 1.00 1.01 50 100
(D) Distribution of ^ θ for θ=1
Distribution of ^ θ N(s=0.00588)
8 of 28
The characteristic polynomial is θ(z) = 1 − θz, with characteristic root z1 = θ−1 and inverse root φ1 = z−1
1
where θs → 0. Shocks have only transitory effects; yt has an attractor.
9 of 28
20 40 60 80 100 5 10 (A) Shock to a stationary process, θ= 0.8 20 40 60 80 100 10 (B) Shock to a unit root process, θ= 1 5 10 15 20 25 0.5 1.0 (C) ACF for stationary process, θ=0.8 5 10 15 20 25 0.5 1.0 (D) ACF for unit root process, θ=1
10 of 28
The characteristic polynomial is θ(z) = 1 − z. There is a unit root, θ(1) = 0.
t
i=1
(1) The effect of the initial value, y0, stays in the process. And E[yt | y0] = y0. (2) Shocks, t, have permanent effects.
Accumulated to a random walk component, P i, called a stochastic trend.
11 of 28
(3) The variance increases,
i=1 i
The process is clearly non-stationary.
(4) The covariance, Cov(yt, yt−s), is given by
The autocorrelation is
which dies out very slowly with s.
(5) The first difference, ∆yt = t, is stationary.
12 of 28
With a unit root, the terms accumulate!
t
i=0
where the mean converges to (1 + θ + θ2 + ...)δ → δ/(1 − θ).
t
i=1
t
i=1
The constant term produces a deterministic linear trend: Random walk with drift. Note the parallel between a deterministic and a stochastic trend.
13 of 28
i.e. whether z = 1 is a root in the autoregressive polynomial.
We compare two relevant models: H0 and HA. The complication is that the asymptotic distributions are not standard.
(1) Remember to specify the statistical model carefully! (2) What kinds of deterministic components are relevant: constant or trend? (3) What are the properties of the model under the null and under the alternative.
Are both H0 and HA relevant?
(4) What is the relevant distribution of the test statistic?
14 of 28
The unit root hypothesis is θ(1) = 1−θ = 0. The one-sided test against stationarity:
against
where π = θ − 1 = −θ(1). The hypothesis θ(1) = 0 translates into
against
se(b
se(b
The asymptotic distribution is Dickey-Fuller, DF, and not N(0, 1).
15 of 28
Quantile Distribution
DF
DFc
DFl
16 of 28
For the AR(p) process we derive the Augmented Dickey-Fuller (ADF) test.
A unit root in θ(z) = 1 − θ1z − θ2z2 − θ3z3 corresponds to θ(1) = 0. To avoid testing a restriction on 1 − θ1 − θ2 − θ3, the model is rewritten as
where
17 of 28
against
The t−test statistic τ π=0 again follows the DF-distribution.
(1) It is only the test for π = 0 that follows the DF distribution.
Tests on c1 and c2 are N(0, 1).
(2) We use the normal tools to determine the appropriate lag-length:
general-to-specific testing or information criteria.
(3) Verbeek suggests to calculate the DF test for all values of p.
... but why should we look at inferior or misspecified models? Find the best model and test in that.
18 of 28
The DF regression with a constant term (and p = 3 lags again) is
(∗) The hypothesis is unchanged H0 : π = 0, and as a test statistic we can use
se(b
(1) The constant term in the regression changes the asymptotic distribution.
The relevant distribution, DFc, is shifted to the left of DF.
(2) Under the null hypothesis, π = 0, the constant gives a trend in yt. We have
for
for
That is not a natural comparison. We assume that δ = 0 if θ = 1.
19 of 28
0 : π = δ = 0, i.e. compare (∗) with
(∗∗)
where log L0 and log LA denote the log-likelihood values from (∗) and (∗∗)
c, under the null.
Instead of tabulating critical values for DF2
c, we can use the signed LR test,
This statistic follows the same DFc distribution as τ c.
20 of 28
1970 1975 1980 1985 1990 1995 2000 2005
0.000 0.025 0.050 0.075 0.100 0.125 0.150 0.175 0.200 Bond rate, rt First difference, ∆rt
21 of 28
(−0.58) rt−1 + 0.3955 (4.50) ∆rt−1 −0.0169 (−0.18) ∆rt−2 −0.0744 (−0.84) ∆rt−3 + 0.0005 (0.29) .
Removing insignificant terms produces a model
(−0.81) rt−1 + 0.3847 (4.72) ∆rt−1 + 0.0008 (0.52) ,
with log LA = 479.80. The DF t−test is b
0 : π = δ = 0, we run the regression under the null,
(4.72) ∆rt−1,
with log L0 = 479.28. The LR test is given by
and the signed LR test is
This is again clearly larger than the 5% critical value of −2.89 in DFc.
22 of 28
(#) The hypothesis is still H0 : π = 0, and the DF t−test is
se(b
The presence of a trend shifts the asymptotic distribution, DFl, further to the left.
hypothesis, H∗
0 : π = γ = 0, i.e. to compare (#) with
(##) The LR test is LR(π = γ = 0) = −2 · (log L0 − log LA), which follows a DF2
l .
Again we can use the signed square root,
which follows the same DFl distribution as the t−test.
23 of 28
1970 1980 1990 2000 0.25 0.50 0.75 1.00
(A) Log of Danish productivity
1970 1980 1990 2000 6.0 6.2 6.4
(B) Log of Danish private consumption
1970 1980 1990 2000
0.00 0.05
(C) Productivity, deviation from trend
1970 1980 1990 2000
0.00 0.05
(D) Consumption, deviation from trend
24 of 28
(−6.22) LPRODt−1 + 0.091 (6.58) + 0.0024 (6.15) t + t,
with log LA = 366.09. The DF t−test is given by b
Here we reject a unit root and conclude that productivity is trend-stationary.
0 : π = γ = 0, we run the regression under the null
(3.48) + t,
with log L0 = 348.63. The LR test is
and the signed LR test is
This is smaller than the critical value in DFl, and we reject the unit root hypothesis.
25 of 28
(−2.56) LCONSt−1 −0.209 (−2.43) ∆LCONSt−1 + 0.764 (2.57) + 0.0004 (2.58) t + t,
with log LA = 359.23. The Dickey-Fuller t−test is given by b
not significantly in the DFl distribution. We conclude that private consumption seems to have a unit-root.
0 : π = γ = 0, we use the regression under the null,
(−3.29) ∆LCONSt−1 + 0.0046 (2.97) + t,
with log L0 = 355.87. The LR test for a unit root is given by
and the signed LR test is
Again we conclude in favour of a unit root in consumption.
26 of 28
Always be careful in conclusions.
Hard to tell apart in practice. We need many observations to be sure.
20 40 60 80 100 10 20 30 (A) Trend-stationary and unit root process
∆Yt = −0.2⋅Yt−1 + 0.05⋅t + εt ∆Yt = 0.25 + εt
100 200 300 400 500 50 100 (B) Trend-stationary and unit root process
∆Yt = −0.2⋅Yt−1 + 0.05⋅t + εt ∆Yt = 0.25 + εt
27 of 28
The conclusions are sensitive to a few large shocks.
This is one large shock with a permanent effect. Even if the series is stationary, such that normal shocks have transitory effects, the presence of a break will make it look like the shocks have permanent effects. That may bias the conclusion towards a unit root.
The series may look more mean reverting than it actually is. That may bias the results towards stationarity.
28 of 28