Chapter 15 - Time Series Regression and Forecasting
Chapter 15 - Time Series Regression and Forecasting
c
examples
>urble
correlated wit
self-
>
Introduction time
to series Data 2 Serial Correlation:
(1)
(2)
(3)
notation:
c
((Yt) m(Y=-Y-)
note:
bc I
InCYt-Yer) E
=
, we multiply by 4 Annualize
to
c
Autocorrelation Serial Correlation):
W
correlation mrible
used
1
Ing before.
Sample Auto correlations:
months
L 14 ago
1 month
Ago
As
you
see that
Asj" CPUC As
j" his
cy,
less
predictive power
c
forecasting, stationality, and the mean squared Error:
forecast
* c important
stationality:
I have
adort this
about
a re
> This is
what we
Care About
,
we return to this later
in the chapter.
think
c So
of stationality as
follows:
-
you
have series
a
of data:( 1 ) Y,, Y, Yy,..., Y time series
out-of-sample
to data.
· note:
they may
have differentmiles ofcoefficients, data, etc;but
they are the same in
probability distribution
sprobalistic sense)
Variance
(Gly,) =...
E(y)
=
a
nrcy,) ...
varcy,
a
dAtAup period I
to
Actual Realization ( W
it called
is
M5ft
We Care About
C
this alotistime
Series
Regression
C
Autoregressions:
b Autocorrelation
> ARSI) C
ofSerial
) ARCP)
The
firstorder Autoregressive model ARCI):
Random error
noise
Example:ARCI) model for the
growth rate
of614:
> So Ho:B, O
H,: , 0 c
only malid if
stationary scries
>Estimated model
>
GPPGR2017:
Q3
CYT
w
Y +
15
he ARCP) Model: multiple lags
using for forecasting:
So jointhypothesis that:Ho:, 0, p0
=
>
=
...,
(1) CAses
ofB:
c (I) B 0 <
history does not matter
be: P+ random
c
4 U,intercept noise
+
model
(2) O<, 1c
stationary (Series
stationary
is
(3)
i B,
1 C
Y Po +
Y. Y=C
+
history permanent is
show the
· We will that
if P, =1> series
nonstationary
is
note:Inter discuss
~ . on we will cases (1) 9(2) in the
monstrationality section
ofthis chapter
(4) there a
is case where B, 1 a Another where
0, however in economics are do not
study those cases.
> .
they are me in Economics a we will focus more or (2) 2(3).
Implications of 0
B, 1 and that
P 0:
that
Yo0c initial condition
- .
suppose
thatEIU)
. so we are
justassuming 0 C
they cansel out
on
Average
that:B0 So the
· now
suppose &
B0.3, Series
stationary
is
0 0.310) 0.30.3
C...
,
+
+
0.510.03) 0.05
y2 0 +
0.2
c then
Y, obtained
is As
half of the firstshock(0.5(0.3) A
+
second shock (U.=-0.2)
obtained
>
Y is As half
of
the
hay shock
ofthe first a
halfof the second shock 0.510.051) +
Athird shock
(m, 0.1)
=
3
Yy
obtained
is As half
of
the
hay ofthe hay shock
ofthe first
and half
of
the
hoty ofthe second shock and ye the
of
third
C.: As
you
see that the firstshock's impact less
is a less as t"(first shockmatters less a less)
Implications of
0
B, 1 and that
no introduction
of
An
intercept:
I now;we will
study the same
implications above;buti sintro of intercept
&.
SAy B, I
Y3 1 0.5(1.45)
+
0. I 1.625
1 + 0.5(1.625 +0.2-2.0125
Yu
the
3 So As
you
see that
implications are the same As in
p0 =
trend.
A
Handline
See >
C note:
stationary models Are Actually P, I
C-1, 1 c however;i n this course are rule out
the
negative
Implications y B, 1
P 0.
+
=
Y0 +
(1)(0.1) 0. I O
c
but
as
you
see that
by
is
perfect history ofAll
A
previous
shocks
(they are
declining)
not
, . us My
-
W
All
ofhistory, sumo previous shocks
initial
condition
> So
"today"is the
sumy All
previous
shocks.
3 So All
of history incorporated
is into
todity; isno
defining down
history.
I now;we will
study the same
implications above;buti sintro of intercept
0.S
SAy
.
&
0.5 (l) (0) 0.3 0.8
3.
Y,
+ +
C. So
by J. +Gd=
+
410.5)
30
+
initial
history +
0.3 0.2 0.1 +0.2
trend -
condition
history y shocks
this
> So Also
is
non-stationary
A series
- .
i P 0
=
> Simple Andom walkmodel
>error shock
Example y ADL:nterest
rates and the term spread:
spread btw c
2 ts
Istimation the and
MSAE forecastIntervals:
> of
forecastErrow:
of y's up Tto
c vector
vector X,
c of up to T
unexplained
~error
&
tid arrow due being
to
wrong
The mean
squared forecast
er ror (msft)
of
ADL model:
cie:((u + +
1)
< So Above whatwe are
trying say
to that:MSSE ECUT" if I are estimated truthfully
0
*
e
((u,,, e(0)
+
E(u 1)
+
Also the
of
number
ofpredictors
are small relative sample
to size (most of
world
MSFE arise
from ECU++,
and ECCB Bol Y, + B B 2] 'would be
very
small
c i.e. similar
standard
to
error
ofRegression
construct
Using the RMSAE to n ternals:
normal distribution
c
from a 2 1.x
of
Example:forecastinterval:
fanchart
here darker
3 So forecasts are more
likely be
to in
regions.
Selection
>
Lag Using Information
criteria:
models.
Lag selection in
Arcps
3 So we don't need to
About
worry Omiting
Ariables
like chapter
is 8.
too
large Cdfv b estimates" would be
large efficient) less precise estimate
i pis number St (not
> So
y ( gp, a
the
of B, C less variance
of Y large.
is
c
ip
too
is small (bins ofI,"be we have omitted lays thathave still
strong predictive power
(b)
they are still
strongly serially
correlated
4,
2 The Aknike
Information Criterion MIC:
3 As
AIC
you
uses
see that
different
a
Al
penalty
term
i.e:
c
monthly frequency is
quarterly.
Example:BICSP) in ARP) model:
c
there is a here
trade of
RV
that
predictors
regressors
We know As
But
BICCP) has chosen instead 46
·
p=2 y
=
⑱
reads:
nonstationary
·
a
(A)
(B)
x)
(D)
(2)
What is Trend?:
a
trend line
c no observable trend.
Chard tell
to
< does not have trend
a
Deterministic 2 Stochastic Trends:
>Random shock
I
serially
uncorrected
"... they
So in time:
ifyou compare
& . a series
>
proof:
uncorrelated Y,)
Since UI serially
is
(EIKLY,, ...,
0
And that
· we know stationarity:VArsy
is
Varsyz...vAriYz-p) rcYss) etc
.
·
WrCY) WrCY, +mrCUL
mrcy) wrcy.
+
On
Y =Y,
+
k, k, 4,
=
+
yy Y =
kz k, kz ks
+
=
+ +
Y= Yz
=
-
1
4
+
=
= k, +
kc ...
+
kz
+
C..
mrcY) wr K, t...+
Us to f(t)
time
c function of
dift I periods
Random
for whether Y,has walk (thus
stationary)
tests A
a non or not
Industrial production
Japanese
JAP IP
C both are
very stratiscally significants they are
strongly correlated;buti n realitysince they are both trending mimbles,
they seem
correlated but
ingestthis correlation
sparios.
is
How do detect
stochastic trends?
you
Ho:, I
non-stationary be Unit Root, Stochastic trend
c
of
1,: , I be stochastic trend
a
stationary y
no unit Root (no
so
rejectthe null hypothesis n on
stationary.
if y
a we series is
· now this test
ismost
easily implemented by estimating modified
a version the
of AR (II model;which obtain
is
by subtracting it
IP+P, Y- -+*t
I Do Pr tl t
+
P E1, t
+ +
.
C... : 8 0
I non
stationary
-:8 0 >
Stationary
so B, I Rootexists
stationarity
I
. C Unit (non
so Root
stationary
unit exists
·
I B I no (non
distributed
c isnotnormally it not
is
normally distributed
..
Clinear)
le
deterministic
WriAb ~
time
trand
ne
↓
Loef
The
Dickey-fuller Test
in ARP):
Ho:8 D
H,:84
deterministic trand.
c
including
When should include time
a trend in the of test?
you
3 mene
S merman men
time
A
trend
M
-
Bo Bi
>I-sided
was trend
a
graphically
How Address Raised trends:
mitigate problems by
to
i < is
stationary.
a so this
non-stationary
is by , differ
Across time
Tests Breaks change
for in
Regression (officients:
(1) Case
IBreak change)
1: is known:
Durm iAble
3 Jo is for intercept
5, is
for ,
U, for
is
5,
c8 0, 4 =
=
0
=
) nostructural Break
O
T
I
D(I) 0 0 00 I , 1 I 1 I
At
-
causes a structural break.
their structural
change;then model
if
a so is no ou r ADLs1, 1 is:
c their
if
is structural breaks;then before is the model will look. As
follows:
>
+
Vo +
V)Ye-,
+ +
8 + Un x
= 1
+
Ut
C Since this is
jointdistribution.
a
break
c f
we
reject H.:8 0, 2= = 0
= ) structural occurs
evidence breaks.
ifthe fail reject
structural
of
s to (no
&
Y, Read the slides.
for case (2)