Slide 1 B
Slide 1 B
Markets
1b. Linear Time Series Analysis
Simon Kwok
University of Sydney
Semester 1, 2022
1 / 18
Outline
1. MA Model
2. ARMA Model
3. Stationarity and Invertibility
4. Model Checking and Portmanteau Tests
2 / 18
Moving-Average (MA) Model
MA(q ) :
yt = µ + εt + θ 1 εt 1 + + θ q εt q,
ut = εt + θ 1 εt 1 + + θ q εt q
= [1 + θ (L)] εt ,
where θ (x ) = ∑qi=1 θ i x i .
Ex: Show that for an MA(q ) model, the ACF is given by, for j > 0,
Given the time series data fyt gTt=1 , we can estimate an MA(q )
model by either conditional or exact maximum likelihood
estimation (MLE).
I Conditional MLE: Set the initial errors (εt for
t = 0, 1, . . . , q + 1) to zero. Then assume a distribution
on fεt gTt=1 (usually iid normal). The joint likelihood function
is obtained in terms of the MA parameters µ, θ 1 , . . . , θ q .
Maximize the log-likelihood w.r.t. µ, θ 1 , . . . , θ q .
I Exact MLE: Treat the initial errors (εt for
t = 0, 1, . . . , q + 1) as extra parameters. Maximize the
log-likelihood w.r.t. µ, θ 1 , . . . , θ q , ε0 , ε 1 , . . . , ε q +1 .
4 / 18
MA Model Selection
5 / 18
Forecasting with MA model
6 / 18
Forecasting with MA model
For ` = 2,
7 / 18
Forecasting with MA model
Q: What is the `-step ahead forecast of an MA(q ) model? What
are the forecast error and its variance? What happens to the
forecast and its variance when ` increases beyond q?
A: The `-step ahead forecast is
µ + θ ` εt + + θ q εt q +` if ` q,
ŷt (`) = (1)
µ if ` > q.
εt +` + θ 1 εt +` 1 + + θ ` 1 ε t +1 if ` q,
et (`) = (2)
εt +` + θ 1 εt +` 1 + + θ q εt +` q if ` > q.
(1 + θ 21 + θ 22 + + θ 2` 1 )σ2ε if ` q,
Var [et (`)] = (3)
(1 + θ 21 + θ 22 + + θ 2q )σ2ε if ` > q,
fyt g ARMA(p, q ) if
yt = φ 0 + φ 1 yt 1 + + φ p yt p + εt + θ 1 εt 1 + + θ q εt q
[1 φ(L)] yt = φ0 + [1 + θ (L)] εt ,
ut = φ1 ut 1 + + φp ut p + εt + θ 1 εt 1 + + θ q εt q
[1 φ(L)] ut = [1 + θ (L)] εt . (4)
9 / 18
Stationarity Condition
10 / 18
Stationarity Condition
11 / 18
Stationarity Condition of AR(2)
12 / 18
Invertibility Condition
13 / 18
AR Representation
yt = µ + ut ,
[1 φ(L)] ut = [1 + θ (L)] εt .
1
Suppose the invertibility condition holds, so that 1 + θ (L )
is a
1 φ (L )
well-de…ned in…nite-order polynomial. De…ne 1 + π (L) = 1 + θ (L )
.
Then we can rewrite the model as AR (∞):
1 φ (L)
εt = ut
1 + θ (L)
= [1 + π (L)]ut
= ut + π 1 ut 1 + π 2 ut 2 + .
14 / 18
MA Representation
Given an ARMA(p, q ) model:
yt = µ + ut ,
[1 φ(L)] ut = [1 + θ (L)] εt .
1
Suppose the stationarity condition holds, so that 1 φ (L )
is a
1 + θ (L )
well-de…ned in…nite-order polynomial. De…ne 1 + ψ(L) = 1 φ (L )
.
Then we can rewrite the model as MA(∞):
1 + θ (L)
ut = εt
1 φ (L)
= [1 + ψ(L)]εt
= εt + ψ1 εt 1 + ψ2 εt 2 + . (5)
yt (`) = µ + ψ` εt + ψ`+1 εt 1 +
! µ as ` ! ∞.
This is the mean-reverting property. The forecast variance is, by (3) with q = ∞,
16 / 18
Model Checking
If a model is correctly speci…ed, the residual process fε̂t g should
look like a white noise.
To test H0 : ρ` = 0 vs Ha : ρ` 6= 0, we get the sample ACF ρ̂` of
fε̂t g.
I Suppose ρ = 0 for all j > ` under H0 . Then,
j
!
p ` 1
T ρ̂` ! N 0, 1 + 2 ∑ ρj
d 2
as T ! ∞.
j =1
18 / 18