Tutorial Work Time Series Analysis Assignment 3 Solutions
Tutorial Work Time Series Analysis Assignment 3 Solutions
BSc Econometrics
FEB23001(X)-13 Time Series Analysis
Assignment 3 - Solutions
ASSIGNMENT 3.1
3.1.a) [1 point] The time series of quarterly growth rates (in percent) of consumption
is shown below (for the complete sample period), as well as the histogram (plus a
normal density with the same mean and variance) for the sample period 1970Q1-
1999Q4. Skewness of the growth rates over this period is equal to −1.04, while
kurtosis is equal to 5.74. Both are very different from the normal values of 0 and
3, such that the null hypothesis of normality is convincingly rejected when applying
the Jarque-Bera test: The test statistic takes a value of 59.0, with p-value 0.000.
3
-1
-2
-3
1970 1975 1980 1985 1990 1995 2000 2005 2010
.8 Histogram
Normal
.7
.6
Density
.5
.4
.3
.2
.1
.0
-3 -2 -1 0 1 2 3 4 5
The first 12 (partial) autocorrelations are shown below, with an asterisk indicating
statistical significance at the 5% level. We find significant autocorrelations at lages 1,
2, 3, and 8, and significant partial autocorrelations at lags 1 and 3 (but not at lag 2).
The residuals from the AR(4) model have skewness equal to −0.89 and kurtosis
equal to 5.50. Normality is clearly rejected as the Jarque-Bera statistics is equal
to 47.0, with a p-value of 0.000. The (partial) autocorrelations of the residuals are
shown below; for both, we find a significant value at k = 8. No significant (partial)
autocorrelations appear for the squared residuals, such that heteroskedasticity does
not seem to be an issue.
The residuals are shown below. For both 1974Q4 and 1980Q2 we observe a large
negative residual, followed by a number of large positive residuals in subsequent
quarters. This pattern is typical for the occurrence of an additive outlier in an
AR-model with positive autoregressive coefficients (which is the case here).
3
-1
2
-2
1
-3
0
-1
-2 Residual
Actual
-3 Fitted
3.1.c) [1 point] Setting the observations for 1974Q4 and 1980Q2 equal to 0, we find
that skewness becomes equal to −0.27, while kurtosis is equal to 3.04. These values
are such that the Jarque-Bera test statistic takes the value 1.44, with a p-value
equal to 0.49 such that normality cannot be rejected. This is also confirmed by
the histogram shown below, which is much more similar to the normal density than
before. Apparently, the two observations in 1974Q4 and 1980Q2 are responsible for
the strong signs of non-normality in the original time series.
.9
.8 Histogram
Normal
.7
.6
Density
.5
.4
.3
.2
.1
.0
-1 0 1 2 3
3.1.d) [2.5 points] Based on the AR(4) model estimated in 3.1.b., we compute the t-
statistics λ̂i (τ ) for testing whether an additive outlier (AO) or innovation outlier (IO)
occurred at time τ , for τ = 1, . . . , T . These sequences of test statistics are shown
in Figure 5. The largest absolute value of the test statistic for additive outliers is
obtained for 1980Q2, with λ̂AO (τ ) = −5.45. The largest absolute value of the test
statistic for innovation outliers is also obtained for 1980Q2, with λ̂IO (τ ) = −4.83.
For both statistics, the second largest (absolute) value is found for 1974Q4, with
λ̂AO (τ ) = −3.54 and λ̂IO (τ ) = −2.96s.
3 3
2 2
1 1
0 0
-1 -1
-2 -2
-3 -3
-4 -4
-5 -5
-6 -6
1970 1975 1980 1985 1990 1995 1970 1975 1980 1985 1990 1995
Frequency
Extreme-Max Extreme-Max
0.6 0.6
q(0.90) = 3.42 q(0.90) = 3.44
q(0.95) = 3.64 q(0.95) = 3.66
0.4 q(0.99) = 4.04 0.4 q(0.99) = 4.08
0.2 0.2
0.0 0.0
1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0
Figure 6: Simulated distribution under the null hypothesis of λ̂i (τ ) statistics for testing
for the presence of an AO or IO are shown on the left and right, respectively.
3.1.e) [2.5 points] First, we estimate an AR(4) model in which the observations in
1974Q4 and 1980Q2 are treated as AO’s, that is
where φ4 (L) = 1−φ1 L−· · ·−φ4 L4 , and where d1974Q4,t and d1980Q2,t are dummy vari-
ables for 1974Q4 and 1980Q2, respectively. Using the observations for t =1970Q1-
1999Q4, we find the following least squares estimates, with standard errors in paren-
theses: µ̂ = 0.903(0.088), φ̂1 = 0.201(0.092), φ̂2 = 0.292(0.089), φ̂3 = 0.223(0.092),
φ̂4 = −0.300(0.090), δ̂1 = −2.336(0.508), and δ̂2 = −3.400(0.510). Note that all
four AR-coefficients are significantly different from zero at the 5% level in this case.
We find negative values for δ̂1 and δ̂2 as expected, given that consumption growth
experienced large drops in both quarters. The estimates of δ1 and δ2 are significant
even at the 1% level, while they also are large in magnitude (compared to µ̂).
3
-1
2
-2
1
-3
0
-1
-2 Residual
Actual
-3 Fitted
Second, we estimate an AR(4) model in which these observations are treated as IO’s,
that is
φ4 (L)(yt − µ) = δ1∗ D1974Q4,t + δ2∗ D1980Q2,t + εt .
Using the observations for t =1970Q1-1999Q4, we find the following least squares
estimates, with standard errors in parentheses: µ̂ = 0.920(0.083), φ̂1 = 0.157(0.082),
φ̂2 = 0.129(0.081), φ̂3 = 0.186(0.083), φ̂4 = −0.137(0.082), δ̂1 = −2.077(0.616), and
δ̂2 = −3.089(0.607). Note that the estimated coefficients for the second and fourth
lag are not significantly different from zero at the 10% level. The estimates of δ1
and δ2 are negative and significant even at the 1% level, while they also are large in
magnitude (compared to µ̂.
-1
2
-2
1
-3
0
-1
-2 Residual
Actual
-3 Fitted
Finally, comparing Figure 7, which shows the fitted values and residuals from the
model with outliers, with Figure 3 shows that the largest residuals in 1974Q4 and
1980Q2 obviously have disappeared, but some others remain; for example in 1973Q2.
In fact, all residuals for the four quarters from 1973Q2-1974Q1 are relatively large
and negative. Also around other recession periods (1981, 1990-1), we observe rel-
atively large negative residuals. It may be worthwhile to examine whether some
of these observations also should be considered as outliers, or whether a nonlinear
model (e.g. a threshold model) may be necessary to capture these.
3.1.f) [1 point] We use the three estimated AR(4) models to obtain one-step ahead
forecasts for the quarterly growth rates of consumption for the sample period 2000Q1-
2013Q4.
The three series of forecasts are shown below, together with the actual values of
consumption growth. We observe that the three forecasts are almost identical. The
MSPE’s are equal to 0.180 (AR(4)), 0.196 (AR(4)-AO) and 0.225 (AR(4)-IO). Hence,
incorporating outliers in the model actually leads to less accurate forecasts. All three
models produce biased forecasts, in the sense that the mean forecast errors of −0.171,
−0.207 and −0.249 (for the AR(4), AR(4)-AO and AR(4)-IO models, respectively)
are significantly different from 0 at the 5% significance level. From Figure 9, it
appears that the mean reason for the negative bias are due to 2007-9, for which
all three models give forecasts that are much higher than the actual consumption
growth rate.
2.0
1.5
1.0
0.5
0.0
-0.5
AR(4) forecasts
AR(4)-AO forecasts
-1.0 AR(4)-IO forecasts
Actual growth rate
-1.5
2000 2002 2004 2006 2008 2010 2012