Time Series: Chapter 3 - ARMA Model
Time Series: Chapter 3 - ARMA Model
1 Introduction
6 Seasonal Model
7 Summary
φ(B) = 1 − φ1 B − φ2 B 2 − · · · − φp B p
θ(B) = 1 − θ1 B − θ2 B 2 − · · · − θq B q
ARIMA model: the most common for non-stationary time series
φ(B) (1 − B)d Yt = φ(B)∆d Yt = θ(B)Zt
| {z }
Integrated
If Yt follows an ARIMA model with integrated parameter d,
then 4d Yt = (1 − B)d Yt follows an ARMA model.
ARMA Model (Time Series) Chapter 3 3 / 39
...
Common Roots Can Be Canceled Out!
Consider the common root case (1 − aB)Yt = (1 − aB)Zt , i.e.,
Yt − aYt−1 = Zt − aZt−1 , Zt ∼ W N (0, σ 2 ) . (1)
y = β0 + β1 x1 + β2 x2 + z
1 Introduction
6 Seasonal Model
7 Summary
P∞
Zt = (1 − θB)−1 Yt = Yt + θYt−1 + θ2 Yt−2 + · · · = k=0 θk Yt−k should be
understood as notation rather than numerical computation, since B is not a
real number.
ARMA Model (Time Series) Chapter 3 9 / 39
...
Causality and Invertibility
Definition 3 (Causality; MA/Causal Representation)
{Yt } is Causal if it can be expressed as a linear combination of the past white
noise Zt , Zt−1 ,...,i.e.,
X∞
Yt = ψk Zt−k ,
k=0
P∞
where k=0 |ψk | < ∞ (so that the summation is well defined).
Proof.
Factorization: φ(B)Yt = (1 − ξ1 B)(1 − ξ2 B) · · · (1 − ξp B)Yt = θ(B)Zt
The roots of φ(x), x = ξ11 , . . . , ξ1p , are outside unit circle
⇔ ξ1k > 1, all k = 1, . . . , p
Proof.
Factorization: φ(B)Yt = θ(B)Zt = (1 − ξ1 B)(1 − ξ2 B) · · · (1 − ξp B)Zt
The roots of θ(x), x = ξ11 , . . . , ξ1p , are outside unit circle
⇔ ξ1k > 1, all k = 1, . . . , p
1 As |0.5| and |0.3| are less than 1, the model is causal and invertible.
2 MA representation:
(1 − 0.5B)Yt = (1 − 0.3B)Zt
⇒ Yt = (1 − 0.5B)−1 (1 − 0.3B)Zt
= (1 + 0.5B + 0.52 B 2 + · · · )(1 − 0.3B)Zt
= (1 + 0.5B + 0.52 B 2 + 0.53 B 2 + · · · )Zt
−(0.3B + 0.5(0.3)B 2 + 0.52 (0.3)B 3 + · · · )Zt
= (1 + 0.2B + 0.2(0.5)B 2 + 0.2(0.5)2 B 3 + · · · )Zt
∴ ψ0 = 1 , ψj = 0.2(0.5)j−1 , j = 1, 2, . . .
ARMA Model (Time Series) Chapter 3 16 / 39
...
Agenda
1 Introduction
6 Seasonal Model
7 Summary
Try: par(mfrow=c(2,3))
sim(100,ar=-0.6); sim(100,ar=0.9); sim(100,ar=1.1)
sim(100,ma=10); sim(100,ar=0.9,ma=10); sim(100,ar=1.1,ma=0.2)
Build-in function in R:
arima.sim(model, n, ...)
Proof.
Using the properties of WN, i.e., E(Zt ) = 0, Cov(Zt , Zk ) = σ 2 1{t=k} , we have
P∞
1 E(Yt ) = i=−∞
ψi E(Zt−i ) = 0
P∞ P∞
2 γ(k) = Cov(Yt , Yt+k ) = E(Yt , Yt+k ) = i=−∞ j=−∞
ψi ψj E(Zt−i Zt+k−j )
P∞ 2
= ψ ψ E(Zt−i
i=−∞ i i+k
) (nonzero only when j = i + k)
2
P ∞
=σ i=−∞
ψi ψi+k , independent of t
Example 9
Find the ACF of the MA(2) model: Yt = Zt + 0.6Zt−1 − 0.16Zt−2 ,
Zt ∼ W.N.(0, 2).
∞ ∞ ∞ ∞ ∞
X X X X X
Yt = (1 − φB)−1 θk Zt−k = φj B j θk Zt−k = θk φj Zt−k−j
k=0 j=0 k=0 j=0 k=0
∞ X
∞ ∞ i
!
i=k+j
X X X
= θk φi−k Zt−i 1{i≥k} = θk φi−k Zt−i .
i=0 k=0 i=0 k=0
For general causal process, φ(B)Yt = (1 − ξ1 B) · · · (1 − ξp B)Yt = θ(B)Zt , all |ξi | < 1,
Yt = (1 − ξ1 B)−1 · · · (1 − ξp B)−1 θ(B)Zt is stationary by repeating the argument p times.
ARMA Model (Time Series) Chapter 3 22 / 39
...
ARMA process can be Stationary even if Not Causal
Proposition 11 (Stationarity of AR(1) process)
The process Yt = φYt−1 + Zt , Zt ∼ W N (0, σ 2 ) is stationary if |φ| =
6 1.
Proof (Optional):
A) For |φ| < 1, inverting the AR polynomial gives P∞
(1 − φB)Yt = Zt =⇒ Yt = (1 − φB)−1 Zt = k=0 φk Zt−k .
B) For |φ| > 1, inverting a “modified” AR polynomial gives ∞
−1
1 1 1
X
−φB 1 − Yt = Zt =⇒ (−φB)Yt = 1− Zt = Zt+k
φB φB φk
k=0
∞
X 1
=⇒ Yt = − Zt+1+k
φk+1
k=0
P∞ P∞
(A) and (B) are stationary by Lemma: Yt =
i=−∞
ψi Zt−i with
−∞
|ψi | < ∞
1 Introduction
6 Seasonal Model
7 Summary
ACVF:
∞
X
γ(k) = σ 2 ψj ψj+k ,
j=0
Yule-Walker Equations:
Find covariance of both sides of (2) with Yt
⇒ γ(0) = φ1 γ(1) + · · · + φp γ(p) + σ 2
Find covariance of both sides of (2) with Yt−1
⇒ γ(1) = φ1 γ(0) + φ2 γ(1) + · · · + φp γ(p − 1)
......
Find covariance of both sides of (2) with Yt−k
⇒ γ(k) = φ1 γ(k − 1) + · · · + φp γ(k − p)
......
Find covariance of both sides of (2) with Yt−p
⇒ γ(p) = φ1 γ(p − 1) + φ2 γ(p − 2) + · · · + φp γ(0)
We can solve for γ(0), γ(1), . . . , γ(p) after finding Cov(Yt−j , θ(B)Zt )s.
For {γ(k)}k>p , compute recursively
γ(k) = φ1 γ(k − 1) + · · · + φp γ(k − p) + Cov(Yt−k , θ(B)Zt )
ARMA Model (Time Series) Chapter 3 29 / 39
...
i.i.d.
ARMA(1,1): Yt − 0.5Yt−1 = Zt − 0.3Zt−1 , Zt ∼ N (0, 1)
Q: What is the ACVF γ(k) of the process?
P
A: Method 1: Using MA representation Yt = j≥0 ψj Zt−j ,
ψ0 = 1, ψj = 0.2(0.5)j−1 .
X X X∞
γ(k) = Cov ψj Zt−j , ψj Zt+k−j = ψj ψj+k
j=0
j≥0 j≥0
P∞
ψ0 ψk + j=1 ψj ψj+k , k 6= 0
= ∞
ψ02 + j=1 ψj2 ,
P
k=0
k−1 2
P∞ 2j+k−2
0.2(0.5) + 0.2 j=1 0.5 , k 6= 0
= ∞
1 + 0.22 j=1 0.52j−2 ,
P
k=0
(
0.5k
0.2(0.5)k−1 + 0.22 1−0.5 2 , k 6= 0
= 0.2 2
1 + 1−0.52 , k=0
17 k−1
75 (0.5) , k 6= 0
= 79
75 , k=0
1 Introduction
6 Seasonal Model
7 Summary
Examples:
1 Linear Drift: Yt = α + βt + Zt
{Yt } ∼ ARIMA(0,1,1)
(1 − B)Yt = Zt
{Yt } ∼ ARIMA(0,1,0)
Empirical evidences:
Zt = (1 − B)Yt ∼ ARMA(p, q) model
log Pt = Yt follows ARIMA(p, 1, q) model
ARMA Model (Time Series) Chapter 3 34 / 39
...
Agenda
1 Introduction
6 Seasonal Model
7 Summary
where
φ(B) = 1 − φ1 B − · · · − φp B p
θ(B) = 1 − θ 1 B − · · · − θq B q
ΦP (B s ) = 1 − Φ1 B s − · · · − ΦP B sP
ΘQ (B s ) = 1 − Θ1 B s − · · · − ΘQ B sQ
Example:
Yt = φ1 Yt−4 + φ2 Yt−8 + Zt for modeling quarterly data
Remarks:
SARIMA can be expressed as high order ARIMA model
But we love the physical interpretation about seasonal effect
ARMA Model (Time Series) Chapter 3 36 / 39
...
Exercises
Identify the order of the following Seasonal-ARIMA models
a) Yt − 0.2Yt−1 − 0.3Yt−4 + 0.06Yt−5 = Zt + 0.6Zt−4 − 0.16Zt−8
b) Yt + 0.2Yt−1 − Yt−6 − 0.2Yt−7 = Zt + 0.2Zt−6
c) Yt − Yt−1 + 0.2Yt−6 − 0.2Yt−7 = Zt + 0.2Zt−6
1 Introduction
6 Seasonal Model
7 Summary
P
Find AR representation Zt = j≥0 ψj Yt−j