Professional Documents
Culture Documents
1
(a) (b) (c)
10.0
10.0
●
●●●●●●●● ●●
●●●●●
●●● ●● ●●●●●●
0.8
● ●● ●● ●●● ●●●●●
9.5
9.5
●●● ● ● ●
●●●● ● ●● ●● ●●● ●●●●● ●●●●
● ●●● ●●●● ● ● ●●●●●●● ●●●●●
log(starts)
log(starts)
●●● ● ● ●●●●● ●●●●●●
●
●●●● ●
ACF
● ● ●● ● ●●
9.0
9.0
0.4
●● ● ● ● ● ● ● ●●
● ● ●●
● ● ●● ●● ●●
●● ●
●
●
8.5
8.5
●
●● ●
●●
0.0
8.0
8.0
● ●
2
The series ∆sYt = (1 − B s)Yt = Yt −
Yt−s is called the seasonally differenced
series.
3
(a) nonseasonal differencing (b) nonseasonal differencing
●
● ●
0.8
● ●● ● ● ● ●
● ● ● ● ● ●● ●●● ● ●
●● ●● ●
0.5
● ●● ● ● ● ● ● ● ●●
diff(x)
● ●
● ● ●
ACF
● ● ●
●● ● ● ●
● ● ●●● ●●
0.2
●●●● ●● ● ●●
●● ● ●●● ●●●● ● ●●
●● ● ●●● ● ●
●● ●● ●●● ●●●
● ● ●●
●●● ●
●
● ● ●
● ●●● ●
●
● ● ●●●●●● ● ● ● ● ● ●
● ● ●
−0.5
● ●
●● ● ●
● ● ● ● ● ● ●●● ● ● ●
●●●● ● ● ● ●● ● ● ●
−0.4
●
● ● ●
year lag
● ●
●
0.5
0.8
●●● ●● ● ●
● ●
● ●● ● ● ●● ● ●
● ● ●
diff(x, 4)
●
●● ● ●● ● ●●● ● ●●●●●
● ●●
●
● ●
● ● ●● ●● ● ●● ● ●●● ● ●
● ●●
●●●●●
ACF
● ●
● ●●● ● ● ●
●
●● ●● ● ● ● ●●●●
● ●● ● ● ● ● ● ● ●●
●
●
●
● ●
●●●
●● ●
●● ●●●
●●● ●●●
0.2
●● ● ●● ● ●
●● ●
● ●●●●●● ●● ●
●●
●
●● ● ● ●●
−0.5
● ● ●●
●
● ● ●
●
●
●
−0.4
year lag
(e) seasonal & nonseasonal differencing (f) seasonal & nonseasonal differencing
● ●
diff(diff(x, 1), 4)
●
0.5
● ● ●
●●
●● ● ●
● ●
0.5
● ●
● ●● ● ●● ●
● ●●● ● ●
ACF
● ●●
● ●
●●● ●●● ●
●
●●● ● ● ●● ●
●● ●●
●● ● ●●
● ●●
●
●●●● ● ●●●
●●●
●
●● ●
●●●●● ●●● ●
●●
●● ● ● ●●● ●●●●●
● ●●●
● ● ● ●●●
● ●
● ● ● ●●●● ● ● ● ●● ●● ● ●●
● ●● ●● ● ●
● ● ● ●
● ● ● ● ●
●●
● ● ●●●● ● ●
−0.5
● ● ●● ●
−0.5
●
●
year lag
4
Nonseasonal ARIMA(1,1,0) model:
(1 − φB)(∆Yt − µ) = t
(1 − φ∗B s)(∆sYt − µ) = t
5
ARIMA{(p, d, q) × (ps, ds, qs)s} model:
6
o data
* predictions
10.0
lower CL
upper CL
●
● * * *
9.5
● *
log(starts)
● ● *
● ● ●● ●● * * *
●
●
●
● ● ● ● ● * * * *
●
● ● ●
● ● ●
● ●
9.0
● *
● ● * * *
●
● ● ● ●
●
●
8.5
year
7
13.2 Box-Cox transformation for time
series
Box-Cox transformation:
(α)
(∆dYt − µ)
(α) (α)
= φ1(∆dYt−1 − µ) + · · · + φp(∆dYt−p − µ)
+t + θ1t−1 + · · · + θq t−q ,
where 1, · · · , is Gaussian white noise,
and
Y α−1
(α)
Yt = t .
α
8
Fig 13.5. Profile likelihood for α (called
λ in the legend) in the housing start
example. Values of λ with R(λ) (the
profile likelihood) above the horizontal
line are in the 95% confidence limit.
^
λ = 0.337
0.6
R(λ)
0.4
0.2
0.0
9
13.3 Multivariate time series
Yt = (Y1,t, · · · , Yd,t)
10
Suppose that Yj and Yj 0 are the two
component series of a stationary multi-
variate time series. The cross-correlation
function (CCF) between Yj and Yj 0 is
defined as
11
A multivariate time series Y1, · · · is said
to be weakly stationary if the mean and
covariance matrix of Yt do not depend
on t and if the right-hand side of the
above equation is independent of t for
all j, j 0, k.
12
A d-dimensional multivariate time se-
ries 1,· · · is a weak WN(µ, Σ) process
if
13
A d-dimensional multivariate time se-
ries Y1, · · · is a multivariate ARMA(p,q)
process with mean µ if for p × p matri-
ces Φ1, · · · ,Φp and Θ1, · · · ,Θq ,
Yt − µ
= Φ1(Yt−1 − µ) + · · · + Φp(Y t−p − µ)
+Θ1t−1 + · · · + Θq t−q + t,
14
An AR(1) process is stationary iff all of
the eigenvalues of Φ are less than 1 in
absolute value. The eigen function in
R can be used to find the eigenvalues.
15
13.4 Long-Memory processes
16
For d > −1 define
∞ d
∆dYt = (−1)k Yt−k
X
k=0 k
17
Fig 13.10. Samples are simulated from
FARIMA(0,d,0).
d = −0.35 d = −0.35
1.0
2
ACF
0.4
−2 0
x
−0.2
Time Lag
d = 0.35 d = 0.35
0 2 4
0.8
ACF
x
0.4
−4
0.0
Time Lag
d = 0.7 d = 0.7
0.8
−5 0
ACF
x
0.4
0.0
−15
Index Lag
18
Fig 13.11. ACF for simulated
F ARIM A(0, 0.7, 0)
∆ Y
0.7 ∆Y
1.0
0.8
ACF
ACF
0.4
0.4
−0.2
0.0
0 5 15 25 0 5 15 25
Lag Lag
19
Some R functions: simARMA0 in the
longmemo package; cumsum; fracdiff
in the fracdiff package; diffseries
Homework: Exercises 1, 4, 5.
20