+ All Categories
Home > Documents > Series Models Lecture 8

Series Models Lecture 8

Date post: 21-Dec-2021
Category:
Upload: others
View: 1 times
Download: 0 times
Share this document with a friend
23
Seasonal Time Series Models 8.1 Lecture 8 Seasonal Time Series Models Readings: Cryer & Chan Ch 10; Brockwell & Davis Ch 6.5; Shumway & Stoffer Ch 3.9 MATH 8090 Time Series Analysis October 5 & October 7, 2021 Whitney Huang Clemson University
Transcript
Page 1: Series Models Lecture 8

Seasonal TimeSeries Models

8.1

Lecture 8Seasonal Time Series ModelsReadings: Cryer & Chan Ch 10; Brockwell & Davis Ch 6.5;Shumway & Stoffer Ch 3.9

MATH 8090 Time Series AnalysisOctober 5 & October 7, 2021

Whitney HuangClemson University

Page 2: Series Models Lecture 8

Seasonal TimeSeries Models

8.2

Modeling Trend, Seasonality, and Noise

Recall the trend, seasonality, noise decomposition mentionedin Week 2:

Yt = µt + st + ηt,where

µt: (deterministic) trend component;

st: (deterministic) seasonal component with mean 0;

ηt: random noise with E(ηt) = 0

We have already described ways to estimate each componentboth separately and jointly (via likelihood-based method). Butwhat about if {st} is a “random” function of t?

⇒ The seasonal ARIMA model allows us to model the casewhen st itself varies randomly from one cycle to the next

Page 3: Series Models Lecture 8

Seasonal TimeSeries Models

8.3

The Seasonal ARIMA (SARIMA) Model

Let d and D be non-negative integers. Then {Xt} is a seasonalARIMA(p, d, q) ×(P,D,Q) process with period s if

Yt = ∇d∇Ds Xt = (1 −B)d(1 −Bs)DXt,

is a casual ARMA process define by

φ(B)Φ(Bs)Yt = θ(B)Θ(Bs)Zt,

where {Zt} ∼ WN(0, σ2).

{Yt} is causal if φ(z) ≠ 0 and Φ(z) ≠ 0, for ∣z∣ ≤ 1, where

φ(z) = 1 − φ1z −⋯ − φpzp;Φ(z) = 1 −Φ1z −⋯ −ΦP z

P .

Page 4: Series Models Lecture 8

Seasonal TimeSeries Models

8.4

An Illustration of Seasonal Model

Consider a monthly time series {Xt} with both a trend, and aseasonal component of period s = 12.

Suppose we know the values of d and D such thatYt = (1 −B)d(1 −B12)DXt is stationary

We can arrange the data this way:

Month 1 Month 2 ⋯ Month 12Year 1 Y1 Y2 ⋯ Y12Year 2 Y13 Y14 ⋯ Y24

⋮ ⋮ ⋮ ⋯ ⋮Year r Y1+12(r−1) Y2+12(r−1) ⋯ Y12+12(r−1)

Page 5: Series Models Lecture 8

Seasonal TimeSeries Models

8.5

The Inter-annual Model

Here we view each column (month) of the data table from theprevious slide as a separate time series

For each month m, we assume the same ARMA(P,Q)model. We have

Ym+12s −P

∑i=1

ΦiYm+12(s−i)

= Um+12s +Q

∑j=1

ΦjUm+12(s−j),

for each s = 0,⋯, r − 1, where{Um+12s∶s=0,⋯,r−1} ∼ WN(0, σ2

U) for each mWe can write this as

Φ(B12)Yt = Θ(B12)Ut,

and this defines the inter-annual model

Page 6: Series Models Lecture 8

Seasonal TimeSeries Models

8.6

The Intra-Annual Model

We induce correlation between the months by letting theprocess {Ut} follow an ARMA(p, q) model,

φ(B)Ut = θ(B)Zt,

where Zt ∼ WN(0, σ2)

This is the intra-annual model

The combination of the inter-annual and intra-annualmodels for the differenced stationary series,

Yt = (1 −B)d(1 −B12)DXt,

yields a SARIMA model for {Xt}

Page 7: Series Models Lecture 8

Seasonal TimeSeries Models

8.7

Steps for Modeling SARIMA Processes

1. Transform data is necessary

2. Find d and D so that

Yt = (1 −B)d(1 −Bs)DXt

is stationary

3. Examine the sample ACF/PACF of {Yt} at lags that aremultiples of s for plausible values for P and Q

4. Examine the sample ACF/PACF at lags {1,2,⋯, s − 1},to identify possible values for p and q

Page 8: Series Models Lecture 8

Seasonal TimeSeries Models

8.8

Modeling SARIMA Processes (Cont’d)

5. Use maximum likelihood method to fit the models

6. Use model summaries, diagnostics, AIC (AICC) todetermine the best SARIMA model

7. Conduct forecast

Page 9: Series Models Lecture 8

Seasonal TimeSeries Models

8.9

Airline Passengers ExampleWe consider the data set airpassengers, which are themonthly totals of international airline passengers from 1949 to1960, taken from Box and Jenkins [1970]

1950 1952 1954 1956 1958 1960

100

200

300

400

500

600

Year

Mon

thly

tota

l (10

00s)

1950 1952 1954 1956 1958 1960

2.0

2.2

2.4

2.6

2.8

Year

log1

0(m

onth

ly to

tal)

Here we stabilize the variance with a log10 transformation

Page 10: Series Models Lecture 8

Seasonal TimeSeries Models

8.10

Sample ACF/PACF Plots

−0.5

0.0

0.5

1.0

Lag

sam

ple

AC

F

0 12 24 36 48

−0.5

0.0

0.5

1.0

Lag

sam

ple

PAC

F

0 12 24 36 48

The sample ACF decays slowly with a wave structure⇒seasonality

The lag one PACF is close to one, indicating thatdifferencing the data would be reasonable

Page 11: Series Models Lecture 8

Seasonal TimeSeries Models

8.11

Trying Different Orders of Differencing

1950 1952 1954 1956 1958 1960

−0.10

−0.05

0.00

0.05

0.10

d=1,

D=

0

−0.5

0.0

0.5

1.0

0 12 24 36 48

Sample ACF

−0.5

0.0

0.5

1.0

0 12 24 36 48

Sample PACF

1950 1952 1954 1956 1958 1960

−0.10

−0.05

0.00

0.05

0.10

d=0,

D=

1

−0.5

0.0

0.5

1.0

0 12 24 36 48lag

−0.5

0.0

0.5

1.0

0 12 24 36 48

1950 1952 1954 1956 1958 1960

−0.10

−0.05

0.00

0.05

0.10

d=1,

D=

1

Year

−0.5

0.0

0.5

1.0

0 12 24 36 48lag

−0.5

0.0

0.5

1.0

0 12 24 36 48lag

Page 12: Series Models Lecture 8

Seasonal TimeSeries Models

8.12

Choosing Candidate SARIMA Models

We choose a SARIMA(p,1, q) × (P,0,Q) model. Next weexamine the sample ACF/PACF of the process Yt = (1 −B)Xt

−0.5

0.0

0.5

1.0

0 12 24 36 48

Sample ACF

−0.5

0.0

0.5

1.0

0 12 24 36 48

Sample PACF

Now we need to choose P , Q, p, and q

Page 13: Series Models Lecture 8

Seasonal TimeSeries Models

8.13

Fitting a SARIMA(1,1,0) × (1,0,0) model

1950 1952 1954 1956 1958 1960

−0.04

−0.02

0.00

0.02

0.04

0.06

Year

SA

RIM

A r

esid

uals

−2 −1 0 1 2

−0.04

−0.02

0.00

0.02

0.04

0.06

Theoretical Quantiles

Sam

ple

Qua

ntile

s

−0.20.00.20.40.60.81.0

Lag

sam

ple

AC

F

0 12 24 36 48

−0.20.00.20.40.60.81.0

Lag

sam

ple

PAC

F

0 12 24 36 48

Page 14: Series Models Lecture 8

Seasonal TimeSeries Models

8.14

A Discussion of the Model Fit

The spread of the residuals is larger in 1949-1955compared to the later years and the residual distributionhas heavy tails

The Ljung-Box test result indicates the fitted SARIMA(1,1,0) × (1,0,0) has sufficiently account for the temporaldependence

95% CI for φ1 and Φ1 do not contain zero⇒ no need to gowith simpler model

Our estimated model is

(1 + 0.2667B)(1 − 0.9291B12)(Xt − 0.0039) = Zt,

where {Zt} i.i.d.∼ N(0, σ2) with σ2 = 0.00033

Page 15: Series Models Lecture 8

Seasonal TimeSeries Models

8.15

Comparing with a SARIMA(0,1,0) × (1,0,0) Model

1950 1952 1954 1956 1958 1960

−0.04

−0.02

0.00

0.02

0.04

0.06

Year

SA

RIM

A r

esid

uals

−2 −1 0 1 2

−0.04

−0.02

0.00

0.02

0.04

0.06

Theoretical Quantiles

Sam

ple

Qua

ntile

s

−0.20.00.20.40.60.81.0

Lag

sam

ple

AC

F

0 12 24 36 48

−0.20.00.20.40.60.81.0

Lag

sam

ple

PAC

F

0 12 24 36 48

Page 16: Series Models Lecture 8

Seasonal TimeSeries Models

8.16

A Discussion of Model Fit2

Here we drop the AR(1) term

The residual plots looks quite similar to before: Thespread of the residuals is larger in 1949-1955 compared tothe later years and the residual distribution has heavy tails

Both σ2 and AIC increase (compared with model fit1)

The lag 1 of ACF and PACF now lies outside the IID noisebounds. The Ljung-Box P-value of 0.0022, leads us toreject the IID residual assumption

In conclusion, the SARIMA(1,1,0) × (1,0,0) model fits betterthan SARIMA(0,1,0) × (1,0,0)

Page 17: Series Models Lecture 8

Seasonal TimeSeries Models

8.17

Forecasting the 1960 Data

1950 1952 1954 1956 1958 1960

2.0

2.2

2.4

2.6

2.8

Year

log1

0(pa

ssen

ger

num

bers

)

SARIMA(1,1,0) x (1,0,0)

1950 1952 1954 1956 1958 1960

2.0

2.2

2.4

2.6

2.8

Year

log1

0(pa

ssen

ger

num

bers

)

SARIMA(0,1,0) x (1,0,0)

1950 1952 1954 1956 1958 1960

100

200

300

400

500

600

700

800

Year

1000

s of

airl

ine

pass

enge

rs

1950 1952 1954 1956 1958 1960

100

200

300

400

500

600

700

800

Year

1000

s of

airl

ine

pass

enge

rs

Page 18: Series Models Lecture 8

Seasonal TimeSeries Models

8.18

Evaluating Forecast Performance

Metrics Model Fit1 Model Fit2Root Mean Square Error 30.36 31.32

Mean Relative Error 0.057 0.060Empirical Coverage 0.917 1.000

Page 19: Series Models Lecture 8

Seasonal TimeSeries Models

8.19

The SARIMA(1,1,0) × (1,0,0) Model is Equivalent To?

Out model for the log passenger series {Xt} is

φ(B)Φ(B12)(1 −B)Xt = Zt,where φ(B) = 1 − φ1B and Φ(B) = 1 −Φ1(B)

Note that

φ(B)Φ(B12) = (1 − φB)(1 −Φ1B12)

= 1 − φ1B −Φ1B12 + φ1Φ1B

13

Question: What is this SARIMA model equivalent to?

Page 20: Series Models Lecture 8

Seasonal TimeSeries Models

8.20

Unit Root Tests

Suppose we have X1,⋯,Xn that follow the model

(1 − φB)(Xt − µ) = (Xt − µ) − φ(Xt−1 − µ) = Zt,

where {Zt} is a WN(0, σ2) process

A unit root test considers the following hypotheses:

H0 ∶ φ = 1 versus Ha ∶ ∣φ∣ < 1

Note that where ∣φ∣ < 1 the process is stationary (andcausal) while φ = 1 leads to a nonstationary process

Exercise: Letting Yt = ∇Xt, show that

Yt = (1 − φ)µ + (φ − 1)Xt−1 +Zt= φ∗0 + φ∗1Xt−1 +Zt,

where φ∗0 = (1 − φ)µ and φ∗1 = (φ − 1)

Page 21: Series Models Lecture 8

Seasonal TimeSeries Models

8.21

Unit Root Tests (Cont’d)

We can estimate φ∗0 and φ∗1 using ordinary least squares

Using the estimate of φ∗1, φ∗1, and its standard error,SE(φ∗1), the Dickey-Fuller statistics is

T = φ∗1

SE(φ∗1)

Under H0 this statistic follows a Dickey-Fuller distribution.For a level α test we reject if the observed test statistic issmaller than a critical value Cα

α 0.01 0.05 0.10Cα -3.43 -2.86 -2.57

We can extend to other processes (AR(p), ARMA(p, q),and MA(q))–see Brockwell and Davis [2002, Section 6.3]for further details

Page 22: Series Models Lecture 8

Seasonal TimeSeries Models

8.22

Unit Root Test: Simulated Examples

Recall∇ = φ∗0 + φ∗1Xt−1 +Zt,

where φ∗0 = (1 − φ)µ and φ∗1 = (φ − 1)Let’s demonstrate the test with a simulated random walk (rw,φ = 1) and a simulated white noise (wn, φ = 0)

Time

rw

0 100 200 300 400 500

−5

0

5

10

15

20

Time

wn

0 100 200 300 400 500

−3

−2

−1

0

1

2

Page 23: Series Models Lecture 8

Seasonal TimeSeries Models

8.23

Unit Root Test: Simulated Examples Cont’d


Recommended