LN LinearTSModels 2
LN LinearTSModels 2
Series Analysis
Semester 1, 2015-16
LINEAR TIME SERIES MODELS
1 Stationarity Through Differencing
Consider the monthly price of a barrel of crude oil from
January 1986 through January 2006.
60
50
Price per Barrel
40
30
20
10
Time
Yt = Mt + et
(2)
= "t + et et 1
Yt = Mt + et
Mt = Mt 1 + Wt (4)
W t = W t 1 + "t
Here, the stochastic trend term Mt is such that its "rate
of change", changes slowly over time. Then
Yt = Mt + et
(5)
= W t + et
and
4
2
Yt = Wt + 2et
= "t + (et et 1) (et 1 et 2 ) (6)
= "t + et 2et 1 + et 2
Wt = 1 Wt 1 + + p W t p + et 1 et 1 q et q
(7)
In terms of the observed series,
5
Yt Yt 1 = 1 (Yt 1 Yt 2 ) + + p (Yt p Yt p 1)
+ et 1 et 1 q et q
(8)
which we may write as
2 p p+1
1 (1 + 1)L ( 2 1 )L ( p p 1 )L + pL
2 p
= (1 1L 2L p L )(1 L)
(10)
which can be easily checked. This factorization clearly
shows that root L = 1 which implies nonstationarity.
The remaining roots, however, are the roots of the
characteristic polynomial of the stationary process Yt:
If the process contains no autoregressive terms, we call
it an integrated moving average and abbreviate the name
to IM A(d; q): If no moving average terms are present,
we denote the model as ARI(p; d):
6
1.2 The IMA(1,1) Model
In difference equation form, the model is
Y t = Y t 1 + et et 1 (11)
To write Yt explicitly as a function of present and past
noise values, repeatedly substitute for the Yt j ; j = 1; 2; :::;
on the right hand side of the equation:
2
V ar(Yt) = [1 + + (1 )2(t + m)] 2
e (13)
r
t+m k
Corr(Yt; Yt k ) (14)
t+1
1
2
Yt = et 1 et 1 2 et 2 (15)
or
Yt = 2Yt 1 Yt 2 + et 1 et 1 2 et 2 (16)
Substituting for the Y 0s on the r.h.s. we can express Yt
in terms of et;et 1; : : :
P
t+m
Yt = et + j et j [(t + m + 1) 1 + (t + m) 2]e m 1
j=1
(t + m + 1) 2e m 2
(17)
20
5 10
0
0 10 20 30 40 50 60
Time
9
4
First Diff erence
2
0
-2
-4
0 10 20 30 40 50 60
Time
10 20 30 40 50 60
Tim e
Yt Yt 1 = (Yt 1 Y t 2 ) + et (18)
or
10
Yt = (1 + )Yt 1 Yt 2 + et (19)
where j j < 1:
To find the weights, we can use a technique that will
generalize to arbitrary ARIM A models. It can be shown
that the weights can be obtained by equating like
powers of L in the identity:
p
(1 1L p L )(1 L)d(1 + + 2L2 + )
1L
2 q
= (1 1L 2L qL )
(20)
For the ARI(1,1) case, this relationship reduces to
2
(1 L)(1 L)(1 + 1L + 2L + )=1 (21)
or
[1 (1 + )L + L2](1 + 1L + 2L
2
+ ) = 1 (22)
(1 + ) + 1 =0 (23)
11
(1 + ) 1 + 2 =0 (24)
and, in general,
k = (1 + ) k 1 k 2 for k 2 (25)
with 0 = 1 and 1 = 1 + :
This recursion with starting values allows us to compute
as many weights as necessary.
It can be shown that in this case an explicit solution to
the recursion is given as
k+1
1
k = for k 1 (26)
1
Wt = + 1 Wt 1 +
0 + p Wt p
(27)
+et e
1 t 1 e
q t q
Alternatively, taking expectation on both sides, we find
= 0 +( 1 + + p) (28)
so that
0 = (1 1 p) (29)
Substituting for 0 in equation (27) and gathering terms,
we have
Wt = 1 (Wt 1 )+ + p (Wt p )
(30)
+et 1 et 1 q et q
Wt = 0 + et et 1 (31)
or
Yt = Yt 1 + 0 + et et 1 (32)
By iterating into the past, we can establish that
Yt = et + (1 )et 1 + + (1 )e m e m 1
+(t + m + 1) 0
(33)
Comparing this with equation (12), we see that there is
an added linear deterministic time trend (t + m + 1) 0 with
slope 0:
An equivalent representation of the process would then
be
Yt = Yt0 + 0 + 1t (34)
where Yt0 is an IM A(1; 1) series with E( Yt0) = 0
and E( Yt) = 1:
14
d
For a general ARIM A(p; d; q) model where E( Yt) 6=
0, it can be argued that
Yt = Yt0 + t (35)
where t is a deterministic polynomial of degree d and
Yt0 is ARIM A(p; d; q) with E( dYt0) = 0: With
d = 2 and 0 6= 0; a quadratic trend would be implied.
(Yt t)
log(Yt) log( t) + (36)
t
15
Then,
and
2
V ar[log(Yt)] (38)
In other words, if the standard deviation of the series is
proportional to the level of the series, then transforming
to logarithms will produce a series with approximately
constant variance over time.
Also, if the level of the series is changing roughly expo-
nentially, the log-transformed series will exhibit a linear
time trend. Thus, we might then want to take first differ-
ences.
[log(Yt)] Xt (41)
will be relatively stable and perhaps well-modeled by
a stationary process.
Note that we take logs first then compute first differ-
ences. In finance literature, the differences of the (nat-
ural) logarithms are usually called returns.
As an example, the figure below shows a time series
plot of total monthly electricity generated in millions of
kilowatt-hours.
Note that the higher values display considerably more
variation than the lower values.
17
electricity
300000
150000
12.4
12.0
18
Diff of Log(electr icity)
0.0
-0.2
19