Documente Academic
Documente Profesional
Documente Cultură
1 Ch9
In other words both the autocorrelations rt ,s and
2 Ch9
Random walk with zero mean
15
10
Zt
5
-5
Time
50 100 150
3 Ch9
f (t + D ) - f (t ) f (t + D ) - f (t )
f ' (t ) = lim = lim
D �0 t + D -t D �0 D
15
10
y
1 12 24 36 48 60 72 84 96 108 120
Index
4 Ch9
Time Series Plot of first differencing
3
0
C2
-1
-2
-3
-4
1 12 24 36 48 60 72 84 96 108 120
Index
Example:
Consider the following NCR (New Company
Registrations) rates data given below:
5 Ch9
Time Series Plot of NCR
700
600
500
NCR
400
300
200
100
4 8 12 16 20 24 28 32 36
Index
6 Ch9
Time Series Plot of lnNCR
6.50
6.25
6.00
5.75
lnNCR
5.50
5.25
5.00
4 8 12 16 20 24 28 32 36
Index
0.3
0.2
0.1
d1lnNCR
0.0
-0.1
-0.2
-0.3
4 8 12 16 20 24 28 32 36
Index
7 Ch9
It now appears that the resulting series is stationary.
Working Series
The textbook uses zb , zb +1 ,..., zn as the ‘working
series’ obtained from the original series by
transformation or differencing.
b = 2 if zt = yt - yt -1
where
n
z = �zt /(n - b + 1)
t =b
8 Ch9
� 1
�(n - b + 1)1/ 2 , if k = 1
�
�
srk = � k -1
� 1 + 2 �j r 2
j =1
� 1/ 2
, if k = 2,3,...
�(n - b + 1)
1.0
0.8
0.6
0.4
Autocorrelation
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1.0
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
Lag
9 Ch9
Spikes
We say that a spike at lag k exists if rk is
10 Ch9
(ii) If the time series dies down extremely
slowly, then the series is considered
nonstationary
Note that the SAC of the towel sales series refuse
to die down quickly so there is a clear sign the
series is nonstationary
11 Ch9
Consider now the differenced series of the towel
sales
Autocorrelation Function for z (differenced series)
(with 5% significance limits for the autocorrelations)
1.0
0.8
0.6
0.4
Autocorrelation
0.2
0.0
-0.2
-0.4
-0.6
-0.8
-1.0
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
Lag
12 Ch9
the forecast (if the residuals e t are not independent,
then we can’t treat e t as at )
Note: Most textbooks call { at } the white noise.
Properties of {at }
(i) a1 , a2 , a3, ... are independent
(ii) ai : N (0, s a )
2
13 Ch9
zt = at - q1at -1 ... - qqat -q
and refer to it as a moving average process of order
q, denoted by MA(q). (Note that structurally
speaking, MA(q) is expressed as averaging of at
terms except the negative signs)
zt = at - q1at -1
E ( zt ) = 0
var( zt ) = s 2a (1 + q12 )
cov( zt , zt +1 ) = -q1s 2a
cov( zt , zt + k ) = 0 for k �2
q1
Thus r1 = 2 and all other r k are zero.
1 + q1
(Make sure you know how to derive the above).
MA(2)
14 Ch9
zt = at - q1at -1 - q2 at -2
E ( zt ) = 0 E(Zt) = 0
var( zt ) = s a2 (1 + q12 + q22 )
cov( zt , zt +1 ) = ( -q1 + q1q2 )s a2
cov( zt , zt + 2 ) = -q2 s2a
cov( zt , zt + k ) = 0 for k �3
�
-q1 + q1q2
r1 = ,
1 + q12 + q22
-q2
r2 =
1 + q12 + q22
and all other rk are zero.
Thus the TAC of an MA(2) “cuts off” after lag 2.
15 Ch9
Autoregressive Models
zt = f1 zt -1 + f2 zt -2 + ...f p zt - p + at
E ( zt ) = 0
s 2a
var( zt ) = g 0 = 2 ,
1 - f1
so |f1| < 1 to ensure stationarity
gk = f1 gk-1
rk = f1
k
16 Ch9
Note that AR and MA series are not entirely
unrelated. It can be shown that an AR(1) can be
expressed as an “infinite” MA series, much like the
general linear process. The MA(1) can similarly be
expressed as an “infinite” AR series.
etc.
Thus again the TAC dies down rather than cuts off,
though it is difficult at times to tell the difference in
TAC’s between AR(1) and AR(2).
17 Ch9
TPAC has nonzero partial autocorrelations at lags 1
and 2 and zero at all lags after lag 2, i.e., cuts off
after lag 2.
ARMA(p, q)
Mixed autoregressive-moving average models
ARMA(1, 1)
18 Ch9
zt = f1 zt -1 + at - q1at -1
(1 - q1f1 )(f1 - q1 ) k -1
rk = f1 , k �1
1 - 2q1f1 + q1 2
Summary
19 Ch9
This looks relatively obvious, but isn’t as easy in
practice as it appears. Note that no process has
ACF and PACF that both cut off.
E ( zt ) = m = d
AR(p):
zt = d+f1 zt -1 + f2 zt -2 + ...f p zt - p + at
d = m(1 - f1 - f2 - ... - f p ) �
m = d /(1 - f1 - f2 ...fk )
ARMA(p,q)
zt = d + f1 zt -1 + f2 zt -2 + ... + ft - p + at - q1at -1 - q2 at -2 - ... - qq at - q
d = m(1 - f1 - f2 - ... - f p )
20 Ch9
Time Series Operations and Representation of
ARMA (p,q) Models.
Backshift Operator
Byt = yt -1
(Push back the time series to the previous position)
Difference operator
�2 yt = ��
( yt ) = �( yt - yt -1 ) = ( yt - yt -1 ) - ( yt -1 - yt -2 )
= yt - 2 yt -1 + yt -2
Also �d = (1 - B) d
zt = d + f1 zt -1 + ... + f p zt - p + at �
zt - f1 zt -1 - ... - f p zt - p = d + at
21 Ch9
(1 - f1 B - f2 B 2 - ... - f p B p ) zt = d + at
Define f p ( B ) = (1 - f1 B - f2 B - ... - f p B )
2 p
so
f p ( B) zt = d + at
zt = d + at - q1at -1 - q 2 at -2 - ... - q q at -q
which can also be written as
zt = d + (1 - q1 B - q 2 B 2 - ... - q q B q )at
Define
q q ( B) = (1 - q1 B - q 2 B 2 - ... - q q B q ) ,
then
zt = d + q q ( B )at
22 Ch9
zt = d + f1 zt -1 + f2 zt - 2 + ... + f p zt - p
+at - q1at -1 - q 2 at - 2 - ... - q q at - q
or
zt - f1 zt -1 - f2 zt - 2 �
��-f p zt - p = d + at - q1at -1 - q 2 at -2 �
��-q q at - q
where q q ( B ) = (1 - q1 B - q 2 B - .. - q q B )
2 q
23 Ch9
Point Estimate of the model parameters
Having identified a tentative ARMA model, we
must now fit it to the dataset concerned, in so doing
obtain estimates of the parameters defined by the
models. For the ARMA(p, q) model, the
parameters are qi , fi and d (if the constant term is
required).
that SSE = � t - 2
( y ˆ
y t ) is minimum.
24 Ch9
Forecasts
What is the meaning of forecasting?
yˆt +t (t ) is a point forecast of the series at time t + t
given the series has been observed from 1 to t
Statistically speaking,
yˆt +t (t ) = E ( yt +t | y1 , y2 ,.., yt )
(assuming d = 0 ).
Since zt = yt - yt -1 so
25 Ch9
yt - yt -1 = at - q1at -1 �
yt = yt -1 + at - q1at -1
so E (at +1 | y1 , y2 ,.., yt ) = E ( at +1 ) = 0 .
26 Ch9
Final Estimates of Parameters
Lag 12 24 36 48
Chi-Square 10.3 18.6 27.5 41.2
DF 11 23 35 47
P-Value 0.500 0.725 0.815 0.710
Thus
yˆ121 (120) = 15.6453 + 0.3544 �0.6903
= 15.8899
Using Minitab to forecast, we get
Forecasts from period 120
95 Percent
Limits
Period Forecast Lower Upper Actual
121 15.8899 13.8532 17.9267
which is identical.
27 Ch9
Two-step forecast:
yt + 2 = yt +1 + at + 2 - q1at +1 �
95 Percent
Limits
Period Forecast Lower Upper Actual
121 15.8899 13.8532 17.9267
122 15.8899 12.4609 19.3189
ARIMA(0,1,1).
28 Ch9