142 ANALY SIS OF TIME SERIES WITH A STATE-SPACE MODEL
As indic ated previously, the p redictive distribution of y
n+ j
based on
the observation Y
n
of the time series becomes a nor mal distribution with
mean y
n+ j|n
and variance-covariance matrix d
n+ j|n
. These are easily ob-
tained by (9.17) and (9 .18). That is, the mean of the predictor of y
n+ j
is
given by y
n+ j|n
and the standard error is given by (d
n+ j|n
)
1/2
. It should
be noted that the one-step-ahead predictor y
n|n−1
and d
n|n−1
of the time
series y
n
have already b e en ob ta ined and were applied in the algorithm
for the Kalman filter (9.13).
Example (Increasing horizon prediction of BLSALLFOOD data)
Figure 9.2 sh ows the results of the increasing horizon prediction of the
BLSALLFOOD data, N = 156. In this p rediction, the AR model was
fitted to the initial 120 observations and the estimated AR mo del was
used f or increasing horizon prediction of the succeeding 36 observations,
y
121
,···, y
156
. In the estimation of the AR model, we firstly obtain a time
series with mean zero, y
∗
n
by de leting the sample mean, ¯y of the time
series,
y
∗
n
= y
n
− ¯y,
and then the parameters of the A R model a re obtained by applying the
Yule-Walker method to the time series y
∗
1
,···, y
∗
N
.
The increasin g horizon prediction of the time series y
∗
n+ j|n
is obtained
by applying the Kalman filter to the state-space representation of th e AR
model; the increa sing horizon prediction value of the time series y
n+ j
is
then obtain ed by
y
n+ j|n
= y
∗
n+ j|n
+ ¯y.
Figure 9.2 shows th e mean y
120+ j|120
, j = 1,···,36, and its ±1 stan-
dard error interval y
120+ j|120
±
p
d
120+ j|120
of the p redictive distribution
obtained by this method. The actual time series is indicated by a solid
curve for n ≤ 12 0 and by the symbol ◦ for n > 120 .
Plots (a), (b), (c) and (d) show the results o f the increasing ho rizon
prediction obtained by AR mo dels of orders m = 1, 5, 10 and 15, re-
spectively. In the case of the first order AR model shown in plot (a),
the increasing horizon p rediction value rapidly attenuates exponentially,
which indicates that the information on the periodic behavior of this data
is not effectively used for the prediction. In the case of m = 5 shown in
plot (b), the pr edictor reasonably reproduced the cyclic behavior for the
first year, but after one year passed, the predicted value rapidly decayed.
The predictors for the AR model with m = 10 repr oduce the actual be-
havior of the time series relatively well. Finally, the predic tors for the AR
model with m = 15 accurately reproduce the details of the wave form of