Professional Documents
Culture Documents
Univariate Time Series Modelling and Forecasting: Introductory Econometrics For Finance' by Dr. Le Trung Thanh 2020 1/73
Univariate Time Series Modelling and Forecasting: Introductory Econometrics For Finance' by Dr. Le Trung Thanh 2020 1/73
(1) E (yt ) = µ t = 1, 2, . . . , ∞
(2) E (yt − µ)(yt − µ) = σ 2 < ∞
(3) E (yt1 − µ)(yt2 − µ) = γt2 −t1 ∀ t1 , t2
E (yt ) = µ
var(yt ) = σ 2
2
σ if t = r
γt−r =
0 otherwise
1
±1.96 × √
T
E(yt ) = µ
var(yt ) = γ0 = 1 + θ12 + θ22 + · · · + θq2 σ 2
Covariances
(
(θs + θs+1 θ1 + θs+2 θ2 + · · · + θq θq−s ) σ 2 for s = 1, . . . , q
γs =
0 for s > q
yt = ut + θ1 ut−1 + θ2 ut−2
But E(yt ) = 0, so
= σ 2 + θ12 σ 2 + θ22 σ 2
= 1 + θ12 + θ22 σ 2
γ1 = E[yt ][yt−1 ]
γ 1 = θ1 σ 2 + θ1 θ2 σ 2
γ1 = (θ1 + θ1 θ2 )σ 2
γ3 = E[yt ][yt−3 ]
γ3 = 0
So γs = 0 for s > 2.
γ0
τ0 = =1
γ0
γ1 (θ1 + θ1 θ2 )σ 2 (θ1 + θ1 θ2 )
τ1 = = =
1 + θ12 + θ22 σ 2 1 + θ12 + θ22
γ0
γ2 (θ2 )σ 2 θ2
τ2 = = 2 2
=
1 + θ12 + θ22
γ0 1 + θ1 + θ2 σ 2
γ3
τ3 = =0
γ0
γs
τs = =0 ∀ s>2
γ0
0.8
0.6
0.4
acf
0.2
0
0 1 2 3 4 5
–0.2
–0.4
–0.6
lag, s
p
X
yt = µ + φi yt−i + ut
i=1
• or
p
X
yt = µ + φi Li yt + ut
i=1
• or
φ(L)yt = µ+ut where φ(L) = (1−φ1 L−φ2 L2 −· · ·−φp Lp ).
‘Introductory Econometrics for Finance’ by Dr. Le Trung Thanh 2020 19/73
The Stationary Condition for an AR Model
• The condition for stationarity of a general AR( p) model is
that the roots of 1 − φ1 z − φ2 z 2 − · · · − φp z p = 0 all lie
outside the unit circle.
• A stationary AR(p) model is required for it to have an
MA(∞) representation.
• Example 1: Is yt = yt−1 + ut stationary?
The characteristic root is 1, so it is a unit root process (so
non-stationary) Root =+-1 -> Unit root
• Example 2: Is yt = 3yt−1 − 2.75yt−2 + 0.75yt−3 + ut
stationary? Quadratic equation: -0.75x^3+ 2.75x^2- 3x+1=0 => solve for roots
The characteristic roots are 1, 2/3, and 2. Since only one of
these lies outside the unit circle, the process is non-stationary.
yt = ψ(L)ut
where,
yt = µ + φ1 yt−1 + ut
But also
So
E(yt ) = µ + φ1 (µ + φ1 E(yt−2 ))
= µ + φ1 µ + φ21 E(yt−2 )
= µ + φ1 µ + φ21 (µ + φ1 E(yt−3 ))
E(yt ) = µ + φ1 µ + φ21 µ + φ31 E(yt−3 )
E(yt ) = µ 1 + φ1 + φ21 + · · · ) + φ∞
1 y0
yt (1 − φ1 L) = ut
yt = (1 − φ1 L)−1 ut
1 + φ1 L + φ21 L2 + · · · ut
yt =
+φ21 ut−2 + · · ·
σu2
=
(1 − σu2 )
‘Introductory Econometrics for Finance’ by Dr. Le Trung Thanh 2020 27/73
Solution (Cont’d)
γ1 = E[yt yt−1 ]
+ φ21 ut−3 + · · ·
2
+ φ31 ut−2
2
γ1 = E φ1 ut−1 + · · · + cross − products
γ1 = φ1 σ 2 + φ31 σ 2 + φ51 σ 2 + · · ·
φ1 σ 2
γ1 =
1 − φ21
Using the same rules as applied above for the lag 1 covariance
γ2 = E[yt yt−2 ]
γ2 = E ut + φ1 ut−1 + φ21 ut−2 + · · · ut−2 + φ1 ut−3
+ φ21 ut−4 + · · ·
γ2 = E φ21 ut−2
2
+ φ41 ut−3
2
+ · · · +cross-products
γ2 = φ21 σ 2 + φ41 σ 2 + · · ·
γ2 = φ21 σ 2 1 + φ21 + φ41 + · · ·
φ21 σ 2
γ2 =
1 − φ21
φ31 σ 2
γ3 =
1 − φ21
φs1 σ 2
γs =
1 − φ21
1 − φ21
τ3 = φ31
τ = φs
‘Introductory Econometrics for Finance’sby Dr. Le
1 Trung Thanh 2020 32/73
The Partial Autocorrelation Function (denoted τkk )
• At lag 2,
θ(L) = 1 + θ1 L + θ2 L2 + · · · + θq Lq
or
yt = µ + φ1 yt−1 + φ2 yt−2 + · · · + φp yt−p + θ1 ut−1
+ θ2 ut−2 + · · · + θq ut−q + ut
with
E(ut ) = 0; E ut2 = σ 2 ; E (ut us ) = 0, t 6= s
0
1 2 3 4 5 6 7 8 9 10
–0.05
–0.1
–0.15
acf and pacf
–0.2
–0.25
–0.3
acf
–0.35 pacf
–0.4
–0.45
lag, s
‘Introductory Econometrics for Finance’ by Dr. Le Trung Thanh 2020 38/73
ACF and PACF for an MA(2) Model:
yt = 0.5ut−1 − 0.25ut−2 + ut
0.4
0.3 acf
pacf
0.2
0.1
acf and pacf
0
1 2 3 4 5 6 7 8 9 10
–0.1
–0.2
–0.3
–0.4
lag, s
0.9
acf
0.8
pacf
0.7
0.6
acf and pacf
0.5
0.4
0.3
0.2
0.1
0
1 2 3 4 5 6 7 8 9 10
–0.1
lag, s
0.6
0.5
acf
0.4 pacf
acf and pacf
0.3
0.2
0.1
0
1 2 3 4 5 6 7 8 9 10
–0.1
lag, s
0.3
0.2
0.1
0
1 2 3 4 5 6 7 8 9 10
acf and pacf
–0.1
–0.2
–0.3
–0.4 acf
pacf
–0.5
–0.6
lag, s
0.9
0.8
0.7
0.6
acf and pacf
0.5
0.4
0.3
acf
0.2 pacf
0.1
0
1 2 3 4 5 6 7 8 9 10
lag, s
0.6
acf
pacf
0.4
acf and pacf
0.2
0
1 2 3 4 5 6 7 8 9 10
–0.2
–0.4
lag, s
Step 1:
– Involves determining the order of the model.
– Use of graphical procedures
– A better procedure is now available
Step 2:
– deliberate overfitting
– residual diagnostics
2k
AIC = ln(σ̂ 2 ) +
T
k
SBIC = ln(σ̂ 2 ) + ln T
T
2k
HQIC = ln(σ̂ 2 ) + ln(ln(T ))
T
Where
α is the smoothing constant, with 0 ≤ α ≤ 1,
yt is the current realised value,
St is the current smoothed value.
i=0
ft,s = St
• Say we have some data - e.g. monthly FTSE returns for 120
months: 1990M1 – 1999M12. We could use all of it to build
the model, or keep some observations back:
Out-of-sample forecast
In-sample estimation period evaluation period
E (yt+1 | Ωt )
e.g. y = Xβ + u
y = β1 + β2 x2t + β3 x3t + · · · + βk xkt + ut
where
ft,s = yt+s , s ≤ 0
ut+s = 0, s > 0
= ut+s , s ≤ 0
yt = µ + φ1 yt−1 + φ2 yt−2 + ut
yt+1 = µ + φ1 yt + φ2 yt−1 + ut+1
yt+2 = µ + φ1 yt+1 + φ2 yt + ut+2
yt+3 = µ + φ1 yt+2 + φ2 yt+1 + ut+3
N
1 X
MAE = |yt+s − ft,s |
N
t=1
N
100 X yt+s − ft,s
MAPE =
N yt+s
t=1
N
1 X
% correct sign predictions = zt+s
N
t=1