Unit12 Handout
Unit12 Handout
Spring 2016
1 / 38
Best Linear Predictor ARMA Forecasting
2 / 38
Best Linear Predictor ARMA Forecasting
Last Unit
3 / 38
Best Linear Predictor ARMA Forecasting
This Unit
4 / 38
Best Linear Predictor ARMA Forecasting
Motivation
5 / 38
Best Linear Predictor ARMA Forecasting
2 ARMA Forecasting
6 / 38
Best Linear Predictor ARMA Forecasting
Forecasting
7 / 38
Best Linear Predictor ARMA Forecasting
Forecasting
n
xn+m = E(xn+m |x) (1)
as the conditional expectation minimizes the mean square error
E [xn+m − g (x)]2 , where g (x) is a function of the observations.
8 / 38
Best Linear Predictor ARMA Forecasting
Forecasting
9 / 38
Best Linear Predictor ARMA Forecasting
Projection Theorem
Theorem
Let M be a closed subspace of the Hilbert space H and let y be
an element in H. Then, y can be uniquely represented as
y = ŷ + z where ŷ ∈ M and z is orthogonal to M. Therefore, for
any w ∈ M,
• ky − w k ≥ ky − ŷ k and
• < z, w >= 0.
10 / 38
Best Linear Predictor ARMA Forecasting
Projection Theorem
11 / 38
Best Linear Predictor ARMA Forecasting
Note that:
M = {U = α0 + nj=1 αj xj : αj ∈ R} = sp{1,
P
¯ x1 , · · · , xn } and
y = xn+m .
12 / 38
Best Linear Predictor ARMA Forecasting
n
kxn+m − xn+m k2 ≤ kU − xn+m k2
for all U ∈ M. The projection theorem implies
13 / 38
Best Linear Predictor ARMA Forecasting
14 / 38
Best Linear Predictor ARMA Forecasting
Given x1 , · · · ,P
xn , the best linear predictor for stationary processes,
n
xn+m = α0 + nj=1 αj xj , of xn+m , for m ≥ 1, is found by solving
n
E (xn+m − xn+m )xk = 0 for k = 0, 1, · · · , n, (3)
where x0 = 1, for α0 , α1 , · · · , αn . The equations (3) are called the
prediction equations.
15 / 38
Best Linear Predictor ARMA Forecasting
n
xn+1 = φn1 xn + φn2 xn−1 + · · · + φnn x1 . (4)
Therefore, the prediction equations (3) become
16 / 38
Best Linear Predictor ARMA Forecasting
17 / 38
Best Linear Predictor ARMA Forecasting
n n
Pn+1 = E(xn+1 − xn+1 )2
=
=
=
=
= (5)
18 / 38
Best Linear Predictor ARMA Forecasting
Prediction Intervals
19 / 38
Best Linear Predictor ARMA Forecasting
2 ARMA Forecasting
20 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
φ(B)Xt = θ(B)wt ,
where
21 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
θ(z) P∞ j,
where ψ(z) = φ(z) = j=0 ψj z and
∞
X
wn+m = πj xn+m−j , π0 = 1, (7)
j=0
φ(z) P∞ j.
where π(z) = θ(z) = j=0 πj z
22 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
23 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
24 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
So
0, t > n,
E (wt |xn , xn−1 , ...) = (8)
wt , t ≤ n.
25 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
26 / 38
Best Linear Predictor ARMA Forecasting
ARMA Forecasting
This leads to
m−1
X ∞
X
xen+m = − πj xen+m−j − πj xn+m−j . (9)
j=1 j=m
So, start by finding xen+1 and then recursively use (9) to find the
later xen+m . This is called the .
27 / 38
Best Linear Predictor ARMA Forecasting
Worked Example
28 / 38
Best Linear Predictor ARMA Forecasting
Worked Example
29 / 38
Best Linear Predictor ARMA Forecasting
Framework in Forecasting
30 / 38
Best Linear Predictor ARMA Forecasting
Prediction Error
31 / 38
Best Linear Predictor ARMA Forecasting
Prediction Error
32 / 38
Best Linear Predictor ARMA Forecasting
Prediction Error
Question: Write out the standard error of the forecast error for
m = 1 and m = 2.
33 / 38
Best Linear Predictor ARMA Forecasting
Prediction Error
34 / 38
Best Linear Predictor ARMA Forecasting
Prediction Error
Also, for fixed sample size n, the prediction errors are correlated.
For h ≥ 1,
m−1
X
2
E {(xn+m − xen+m )(xn+m+h − xen+m+h )} = σ ψj ψj+k .
j=0
35 / 38
Best Linear Predictor ARMA Forecasting
Prediction Interval
For Gaussian processes, the 95% prediction interval for xn+m , the
future value of the series at time n + m is
v
u m−1
xn+m ± 1.96tσˆw2
n
u X
ψj2 . (12)
j=0
36 / 38
Best Linear Predictor ARMA Forecasting
Worked Example
37 / 38
Best Linear Predictor ARMA Forecasting
Worked Example
38 / 38