6 PDF
6 PDF
Peter Bartlett
www.stat.berkeley.edu/∼bartlett/courses/153-fall2010
Last lecture:
1. Causality
2. Invertibility
3. AR(p) models
4. ARMA(p,q) models
1
Introduction to Time Series Analysis. Lecture 6.
Peter Bartlett
www.stat.berkeley.edu/∼bartlett/courses/153-fall2010
1. ARMA(p,q) models
2
Review: Causality
ψ(B) = ψ0 + ψ1 B + ψ2 B 2 + · · ·
∞
X
with |ψj | < ∞
j=0
and Xt = ψ(B)Wt .
3
Review: Invertibility
π(B) = π0 + π1 B + π2 B 2 + · · ·
∞
X
with |πj | < ∞
j=0
and Wt = π(B)Xt .
4
Review: AR(p), Autoregressive models of order p
Xt − φ1 Xt−1 − · · · − φp Xt−p = Wt ,
Equivalently, φ(B)Xt = Wt ,
where φ(B) = 1 − φ1 B − · · · − φp B p .
5
Review: AR(p), Autoregressive models of order p
|z| = 1 ⇒ φ(z) = 1 − φ1 z − · · · − φp z p 6= 0.
This AR(p) process is causal iff the roots of φ(z) are outside
the unit circle:
|z| ≤ 1 ⇒ φ(z) = 1 − φ1 z − · · · − φp z p 6= 0.
6
Reminder: Polynomials of a complex variable
a(z) = a0 + a1 z + · · · + ap z p = ap (z − z1 )(z − z2 ) · · · (z − zp ),
7
Review: Calculating ψ for an AR(p): general case
φ(B)Xt = Wt , ⇔ Xt = ψ(B)Wt
so 1 = ψ(B)φ(B)
⇔ 1 = (ψ0 + ψ1 B + · · · )(1 − φ1 B − · · · − φp B p )
⇔ 1 = ψ0 , 0 = ψj (j < 0),
0 = φ(B)ψj (j > 0).
8
Introduction to Time Series Analysis. Lecture 6.
1. Review: Causality, invertibility, AR(p) models
2. ARMA(p,q) models
3. Stationarity, causality and invertibility
9
ARMA(p,q): Autoregressive moving average models
10
ARMA(p,q): Autoregressive moving average models
φ(z) = 1 − φ1 z − · · · − φp z p , θ(z) = 1 + θ1 z + · · · + θq z q
have no common factors. This implies it is not a lower order ARMA model.
11
ARMA(p,q): An example of parameter redundancy
Xt = Wt
⇒ Xt − Xt−1 + 0.25Xt−2 = Wt − Wt−1 + 0.25Wt−2
(1 − B + 0.25B 2 )Xt = (1 − B + 0.25B 2 )Wt
12
ARMA(p,q): An example of parameter redundancy
Xt = ψ(B)Wt
θ(B)
⇔ ψ(B) = = 1.
φ(B)
i.e., Xt = Wt .
13
Introduction to Time Series Analysis. Lecture 6.
1. Review: Causality, invertibility, AR(p) models
2. ARMA(p,q) models
3. Stationarity, causality and invertibility
14
Recall: Causality and Invertibility
ψ(B) = ψ0 + ψ1 B + ψ2 B 2 + · · ·
∞
X
with |ψj | < ∞ and Xt = ψ(B)Wt .
j=0
It is invertible if there is a
π(B) = π0 + π1 B + π2 B 2 + · · ·
∞
X
with |πj | < ∞ and Wt = π(B)Xt .
j=0
15
ARMA(p,q): Stationarity, causality, and invertibility
|z| = 1 ⇒ φ(z) = 1 − φ1 z − · · · − φp z p 6= 0.
This ARMA(p,q) process is causal iff the roots of φ(z) are out-
side the unit circle:
|z| ≤ 1 ⇒ φ(z) = 1 − φ1 z − · · · − φp z p 6= 0.
It is invertible iff the roots of θ(z) are outside the unit circle:
|z| ≤ 1 ⇒ θ(z) = 1 + θ1 z + · · · + θq z q 6= 0.
16
ARMA(p,q): Stationarity, causality, and invertibility
17
ARMA(p,q): Stationarity, causality, and invertibility
2 1 2 1
φ(z) = 1 + 0.25z = z + 4 = (z + 2i)(z − 2i),
4 4
1
θ(z) = 1 + 2z = 2 z + .
2
1. φ and θ have no common factors, and φ’s roots are at ±2i, which is not
on the unit circle, so {Xt } is an ARMA(2,1) process.
2. φ’s roots (at ±2i) are outside the unit circle, so {Xt } is causal.
3. θ’s root (at −1/2) is inside the unit circle, so {Xt } is not invertible.
18
Causality and Invertibility
19
Introduction to Time Series Analysis. Lecture 6.
1. Review: Causality, invertibility, AR(p) models
2. ARMA(p,q) models
3. Stationarity, causality and invertibility
20
Calculating ψ for an ARMA(p,q): matching coefficients
21
Calculating ψ for an ARMA(p,q): example
⇔ 1 = ψ0 , 0.2 = ψ1 ,
0 = ψj + 0.25ψj−2 (j ≥ 2).
22
Calculating ψ for an ARMA(p,q): general case
23
Introduction to Time Series Analysis. Lecture 6.
1. Review: Causality, invertibility, AR(p) models
2. ARMA(p,q) models
3. Stationarity, causality and invertibility
24
Autocovariance functions of linear processes
25
Autocovariance functions of MA processes
26
Autocovariance functions of ARMA processes
27
Autocovariance functions of ARMA processes
An alternative approach:
Xt − φ1 Xt−1 − · · · − φp Xt−p
= Wt + θ1 Wt−1 + · · · + θq Wt−q ,
so E ((Xt − φ1 Xt−1 − · · · − φp Xt−p ) Xt−h )
= E ((Wt + θ1 Wt−1 + · · · + θq Wt−q ) Xt−h ) ,
that is, γ(h) − φ1 γ(h − 1) − · · · − φp γ(h − p)
= E (θh Wt−h Xt−h + · · · + θq Wt−q Xt−h )
q−h
X
2
= σw θh+j ψj . (Write θ0 = 1).
j=0
28
Autocovariance functions of ARMA processes: Example
29
Autocovariance functions of ARMA processes: Example
γ(h) + 0.25γ(h − 2) = 0
30
Introduction to Time Series Analysis. Lecture 6.
Peter Bartlett
www.stat.berkeley.edu/∼bartlett/courses/153-fall2010
1. ARMA(p,q) models
31
Difference equations
Examples:
32
Homogeneous linear diff eqns with constant coefficients
a0 xt + a1 xt−1 + · · · + ak xt−k = 0
k
⇔ a0 + a1 B + · · · + ak B xt = 0
⇔ a(B)xt = 0
auxiliary equation: a0 + a1 z + · · · + ak z k = 0
⇔ (z − z1 )(z − z2 ) · · · (z − zk ) = 0
33
Homogeneous linear diff eqns with constant coefficients
34
Homogeneous linear diff eqns with constant coefficients
a(B)xt = 0
⇔ (B − z1 )(B − z2 ) · · · (B − zk )xt = 0
⇔ xt is a linear combination of solutions to
(B − z1 )xt = 0, (B − z2 )xt = 0, . . . , (B − zk )xt = 0
⇔ xt = c1 z1−t + c2 z2−t + · · · + ck zk−t ,
35
Homogeneous linear diff eqns with constant coefficients
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
0 2 4 6 8 10 12 14 16 18 20
36
Reminder: Complex exponentials
37
Homogeneous linear diff eqns with constant coefficients
As before, a(B)xt = 0
⇔ xt = c1 z1−t + c2 z2−t + · · · + ck zk−t .
xt = c z1−t + c̄ z¯1 −t
= r eiθ |z1 |−t e−iωt + r e−iθ |z1 |−t eiωt
= r|z1 |−t ei(θ−ωt) + e−i(θ−ωt)
= 2r|z1 |−t cos(ωt − θ)
38
Homogeneous linear diff eqns with constant coefficients
0.6
0.4
0.2
−0.2
−0.4
−0.6
−0.8
−1
0 2 4 6 8 10 12 14 16 18 20
39
Homogeneous linear diff eqns with constant coefficients
0.5
−0.5
−1
−1.5
−2
0 10 20 30 40 50 60 70
40