STA03B3 Lecture 19
STA03B3 Lecture 19
STOCHASTIC PROCESSES
Lecture 19
Dr V. van Appel
Department of Statistics
Faculty of Science, University of Johannesburg
1 / 23
Outline
2 / 23
Seasonal ARIMA Models
Examples:
▶ In this section, we introduce several modifications made to the
ARIMA model to account for seasonal and nonstationary
behaviour.
▶ Often, the dependence on the past tends to occur most
strongly at multiples of some underlying seasonal lag S.
▶ For example, with monthly economic data, there is a strong
yearly component occurring at lags that are multiples of
S = 12, because of the strong connections of all activity to
the calendar year.
▶ Data taken quarterly will exhibit the yearly repetitive period at
S = 4 quarters. Natural phenomena such as temperature also
have strong components corresponding to seasons.
▶ Hence, the natural variability of many physical, biological, and
economic processes tends to match with seasonal fluctuations.
3 / 23
Pure Seasonal Models
ΦP (B S ) = 1 − Φ1 B S − Φ2 B 2S − · · · − ΦP B P S (2)
and
ΘQ (B S ) = 1 + Θ1 B S + Θ2 B 2S + · · · + ΘQ B QS (3)
are the seasonal autoregressive operator and the seasonal moving
average operator of orders P and Q, respectively, with seasonal
period S.
4 / 23
Analogous to the properties of nonseasonal ARMA models,
the pure seasonal ARMA(P, Q)S is causal only when the roots
of ΦP (z S ) lie outside the unit circle, and it is invertible only
when the roots of ΘQ (z S ) lie outside the unit circle.
5 / 23
Example 3.46 (A Seasonal AR Series)
A first-order seasonal autoregressive series that might run over
months could be written as
1 − ΦB 12 xt = wt
or
xt = Φxt−12 + wt
6 / 23
We simulated 3 years of data from the model with Φ = 0.9,
and exhibit the theoretical ACF and PACF of the model. See
the following Figure.
xt = 0.9xt−12 + wt
7 / 23
> # Plot the ACF and PACF
> set.seed(666)
> phi=c(rep(0,11),0.9)
> sAR=arima.sim(list(order=c(12,0,0),ar=phi),n=37)
> sAR=ts(sAR,freq=12)
> layout(matrix(c(1,1,2,1,1,3), nc=2))
> par(mar=c(3,3,2,1), mgp=c(1.6,.6,0))
> plot(sAR, axes=FALSE, main=’seasonal AR(1)’,xlab="year",
+ type=’c’)
> Months=c("J","F","M","A","M","J","J","A","S","O","N","D")
> points(sAR, pch=Months, cex=1.25, font=4, col=1:4)
> axis(1,1:4); abline(v=1:4, lty=2, col=gray(.7))
> axis(2); box()
> ACF = ARMAacf(ar=phi, ma=0, 100)
> PACF = ARMAacf(ar=phi, ma=0, 100, pacf=TRUE)
> plot(ACF,type="h", xlab="LAG", ylim=c(-.1,1)); abline(h=0)
> plot(PACF, type="h", xlab="LAG", ylim=c(-.1,1)); abline(h=0)
8 / 23
seasonal AR(1)
J J
J
J J
J
D D
2
D
A
A AS A
0 S A
A
sAR
N
F O F S
F O
M N M M N
−2
M M
M J O
J
−4
J
J
1 2 3 4
year
0.8
0.8
PACF
ACF
0.4
0.4
0.0
0.0
0 20 40 60 80 100 0 20 40 60 80 100
LAG LAG
9 / 23
For the first-order seasonal (S = 12) MA model,
xt = wt + Θwt−12 ,
γ(0) = E x2t
= (1 + Θ2 )σw
2
10 / 23
2
▶ Show that γ(±12) = Θσw
11 / 23
▶ Show that ρ(±12) = Θ/(1 + Θ2 ).
γ(±12)
ρ(±12) =
γ(0)
Θσw2
=
(1 + Θ2 )σw
2
= Θ/(1 + Θ2 ).
12 / 23
Table: Behavior of the ACF and PACF for Pure SARMA Models
AR(P )S MA(Q)S ARMA(P, Q)S
ACF* Tails off at lags Cuts off after Tails off at
ks, k = 1, 2, . . . lag Qs lags ks
PACF* Cuts off after Tails off at lags Tails off
lag P s ks, k = 1, 2, . . . at lags ks
13 / 23
A multiplicative seasonal autoregressive moving
average model
14 / 23
Example 3.47 (A Mixed Seasonal Model)
Consider an ARMA(0, 1) × (1, 0)12 model
xt = Φxt−12 + wt + θwt−1 ,
where |Φ| < 1, and the invertible condition requires |θ| < 1.
Then, because xt−12 , wt and wt−1 are uncorrelated, and xt is
stationary,
γ(0) = var(xt )
= var (Φxt−12 + wt + θwt−1 )
= Φ2 var(xt−12 ) + var(wt ) + θ2 var(wt−1 )
= Φ2 γ(0) + σw
2
+ θ2 σw
2
1 + θ2 2
=⇒ γ(0) = σ
1 − Φ2 w
15 / 23
Example 3.47 (A Mixed Seasonal Model) Cont ...
In addition, multiplying the model by xt−h , h > 0, and taking
expectations, we have
For h = 1, we have
For h ≥ 2, we have
16 / 23
Example 3.47 (A Mixed Seasonal Model) Cont ...
The ACF for this model is
γ(12h)
ρ(12h) = = Φh h = 1, 2, · · ·
γ(0)
γ(12h − 1) θ
ρ(12h + 1) = ρ(12h − 1) = = Φh h = 0, 1, 2, · · ·
γ(0) 1 + θ2
ρ(h) = 0, otherwise.
▶ The ACF and PACF for this model, with Φ = 0.8 and
θ = −0.5, are shown in the following Figure.
▶ These type of correlation relationships, although idealized
here, are typically seen with seasonal data. Use the following
commands to produce the plots in R.
17 / 23
ACF and PACF of ARIMA(0, 0, 1) × (1, 0, 0)S=12
The ACF and PACF for this mixed model:
xt = 0.8xt−12 + wt − 0.5wt−1
18 / 23
> ##### Plot the ACF and PACF
> phi = c(rep(0,11),.8)
> ACF = ARMAacf(ar=phi, ma=-.5, 50)[-1] #[-1] removes 0 lag
> PACF = ARMAacf(ar=phi, ma=-.5, 50, pacf=TRUE)
> par(mfrow=c(1,2))
> plot(ACF, type="h", xlab="LAG", ylim=c(-.4,.8));
+ abline(h=0)
> plot(PACF, type="h", xlab="LAG", ylim=c(-.4,.8));
+ abline(h=0)
19 / 23
ACF
LAG
10 20 30 40 50
PACF
LAG
10 20 30 40 50
20 / 23
Homework Problems
Additional Problems
For the following seasonal models, derive the autocorrelation
functions:
1.
ARIMA(0, 0, 1) × (0, 0, 2)12 .
2.
ARIMA(0, 0, 1) × (0, 0, 1)4 .
21 / 23
References I
22 / 23
Questions?
23 / 23