Linear
Linear
✫ ✪
P∞
the input at to output zt . The filter is stable with j=1 |ψj | < ∞.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 2
2 −j j+k 2 −1
P P
= σ a j ψj B k ψ j+k B = σ a ψ(B )ψ(B),
✫ ✪
practical sensibility.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 4
Stationarity condition
For AR(1), one needs |φ1 | < 1.
For AR(2), one needs |gj | < 1 in the expression
φ(B) = (1 − g1 B)(1 − g2 B) = 1 − (g1 + g2 )B − (−g1 g2 )B 2 .
With gj real, (φ1 , φ2 ) = (g1 + g2 , −g1 g2 ) over g1 , g2 ∈ (−1, 1). With
gj a conjugate pair Ae±i2πω , one has (φ1 , φ2 ) = (2A cos 2πω, −A2 )
over ω ∈ (−1/2, 1/2), A ∈ (0, 1).
Autocorrelation
For AR(1), ρk = φk1 , k ≥ 0.
For AR(2), ρk = φ1 ρk−1 + φ2 ρk−2 , k > 0; ρ0 = 1, ρ1 = φ1 /(1 − φ2 ).
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 6
Variance
For AR(1), γ0 = φ1 γ1 + σa2 , so γ0 = σa2 /(1 − φ1 ρ1 ) = σa2 /(1 − φ21 ).
For AR(2), γ0 = φ1 γ1 + φ2 γ2 + σa2 , so
σa2 1 − φ2 σa2
γ0 = = 2 2 .
1 − φ 1 ρ1 − φ 2 ρ2 1 + φ2 {(1 − φ2 ) − φ1 }
Power spectrum
For AR(1), p(ω) = σa2 /|1 − φ1 e−i2πω |2 = σa2 /(1 + φ21 − 2φ1 cos 2πω).
For AR(2),
σa2
p(ω) =
|1 − φ1 e−i2πω − φ2 e−i4πω |2
σa2
= .
1 + φ21 + φ22 − 2φ1 (1 − φ2 ) cos 2πω − 2φ2 cos 4πω
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 7
or Pp φ = ρp , and φ = P−1
p ρp expresses φj ’s in terms of ACF’s.
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 8
For AR(p) processes at lag k > p, one has φkk = 0, and it can be
shown that, asymptotically, φ̂kk ∼ N (0, N1 ). Sample PACF’s are
available in R via acf with type="partial", or via pacf.
For non-Gaussian processes, one may still calculate φkk via ACFs
as diagnostics for AR(p) models, though they may no longer be
✫ ✪
perceived as conditional correlations.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 9
✫ ✪
h ρ̃h )/(1 − ρh Ph ρh ) = φkk .
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 10
✫ ✪
Durbin-Levinson algorithm for fitting AR models.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 11
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 12
Similar to the stationarity condition for AR(p), one needs the roots
of θ(B) to lie outside of the unit circle for zt = θ(B)at to be
invertible. Let G−1
j be the roots of θ(B) and consider the spectrum
Qq
p(ω) = σa2 j=1 |1 − Gj e−i2πω |2 . For Gj real,
|1 − Gj e−i2πω |2 ∝ (Gj + G−1
j − 2 cos 2πω),
so G±1
j are exchangeable. Similar arguments can be made for
conjugate pairs of complex roots. Hence, MA(q) models come in
“2q -plet”, of which only one is invertible, barring |Gj | = 1.
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 13
Invertibility condition
The invertibility of MA(1) and MA(2) is dual to the stationarity of
AR(1) and AR(2).
✫ ✪
gets the power spectrums of MA(1) and MA(2).
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 14
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 15
ARMA(p, q) Process
For k > q, since φ(B)zt = θ(B)at is uncorrelated with zt−k , one has
cov[φ(B)zt , zt−k ] = φ(B)ρk = 0, or more explicitly,
ρk = φ1 ρk−1 + · · · + φp ρk−p , k > q.
Example: ARMA(1,1)
Power spectrum
|1 − θ1 e−i2πω |2 2
2 1 + θ1 − 2θ1 cos 2πω
p(ω) = σa2 = σa .
✫ ✪
|1 − φ1 e −i2πω | 2 2
1 + φ1 − 2φ1 cos 2πω
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 17
✫ ✪
entry γk+j−i . Use c′k = φ̂ Γ̂k φ̂ in the MA iteration above to get θj .
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 18
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 19
Estimation of Mean
For pairs of conjugate complex roots |Gj |−1 e±iγj , one has terms
|Gj |k (Aj eiγj k + Āj e−iγj k ) = 2|Gj |k |Aj | cos(kγj + αj ).
Pp
Assuming distinct roots, one has ρk = j=1 Aj Gkj , where Aj ’s are
determined by the initial values ρq , . . . , ρq−p+1 .
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 21
ρk = A(0.8eiπ/3 )k + Ā(0.8e−iπ/3 )k
= |A|(0.8)k ei(α+kπ/3) + |A|(0.8)k e−i(α+kπ/3)
= (0.8)k 2|A| cos(kπ/3 + α)
= (0.8)k {B cos(kπ/3) + C sin(kπ/3)}, k > 1,
✫ ✪
ρ1 = φ1 + φ2 ρ1 − θκ, where φ1 = 0.8, φ2 = −0.64, and θ = 0.5.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 22
✫ ✪
an invertible reverse time MA(1) model, where ãt = −θat−1 .
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 23
To each observed series, one usually can fit several different models
with similar goodness-of-fit. For example, suppose the ARMA(1,1)
model (1 + .2B)zt = (1 − .8B)at is a good fit to the data. Since
(1 + .2B)−1 (1 − .8B) = 1 − B + .2B 2 − .04B 3 + · · · ≈ 1 − B + .2B 2 ,
✫ ✪
Models with smaller AIC or BIC are considered better ones.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 25
ARIMA(p,d,q) Processes
(1 − ϕ1 B − ϕ2 B 2 − · · · )(ψ0 + ψ1 B + ψ2 B 2 + · · · ) = (1 − θ1 B − θ2 B 2 − · · · ).
Matching coefficients, one has
ψ1 − ϕ1 ψ0 = −θ1 ,
ψ2 − ϕ1 ψ1 − ϕ2 ψ0 = −θ2 ,
ψ3 − ϕ1 ψ2 − ϕ2 ψ1 − ϕ3 ψ0 = −θ3 ,
......
π1 − θ 1 π 0 = ϕ 1 ,
π2 − θ 1 π1 − θ 2 π 0 = ϕ 2 ,
π 3 − θ 1 π2 − θ 2 π1 − θ 3 π 0 = ϕ 3 ,
......
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 28
......
at−1 : ψ1 − ϕ1 ψ0 = −θ1
at−2 : ψ2 − ϕ1 ψ1 − ϕ2 ψ0 = −θ2
......
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 29
Example: ARIMA(1,1,1)
Example: IMA(0,2,2)
✫ ✪
π2 = π1 θ1 − (1 + θ2 ) = θ1 (2 − θ1 ) − (1 + θ2 ), and θ(B)πj = 0, j > 2.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 31
If φ(B) and φ1 (B) share some common roots, the orders will be
lower. In general, an ARIMA model of form ϕ(B)zt = θ(B)at is
over-parameterized if ϕ(B) and θ(B) have common roots.
✫ ✪
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 32
✫ ✪
walk buried in a white noise.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 33
✫ ✪
Fuller, who derived its asymptotic null distribution under φ = 1.
C. Gu Spring 2024
✬ ✩
STAT 520 Linear Stationary and Nonstationary Models 34
where ût are the residuals from the LS fit, wsl = 1 − s/(l + 1), and
l → ∞, l4 /n → 0 as n → ∞. The test is implemented in PP.test.
Pp
For φ(B)∇zt = θ(B)at , zt = zt−1 + j=1 φj wt−j +θ(B)at = zt−1 +ut ,
where wt = ∇zt . The process {ut } is stationary when {wt } is.
✫ ✪
C. Gu Spring 2024