W1
W1
Lectures
First 7 weeks: Mondays 14 : 00 to 16 : 00
Last lecture: Thursday 15 March 14 : 00 to 16 : 00
Lab Sessions
2 Feb 14 : 00 to 16 : 00
16 Feb 14 : 00 to 16 : 00
2 Mar 13 : 00 to 15 : 00
16 Mar 14 : 00 to 16 : 00
Emails:
Paul Kattuman : [email protected]
Michael Freeman : [email protected]
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Time table Assessment Applied Time Series
Module assessment
Workbooks and Contests
Book 1 Book 2 Book 3 Book 4 Contests
Handed out Feb 20 Feb 20 Mar 19 Mar 19 Mon: 30/1
Submit on Mar 12 Mar 12 May 16 May 16 Sun: 5/2
Weight 20 % 20 % 20 % 30 % 10 %
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Time table Assessment Applied Time Series
Applied Time Series Analysis
Objective, Use, Focus
Uses:
Software: R
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP TSD Ex1 Ex2 Ex3 Ex4 Ex5 Ex6 Ex7 Ex8 Ex9 SPX
Time series data
Y
t
= Random variable Y in period t
Time lags
R
2
is important in forecasting
Model using historical data must be valid and useful for the
(near) future
More generally:
L
p
Y
t
= Y
tp
L
0
1
The j
th
order Autocovariance of Y
t
:
j
= Cov(Y
t
, Y
tj
) = E(Y
t
E(Y
t
))(Y
tj
E(Y
tj
))
The j
th
order sample Autocovariance of Y
t
:
j
=
Cov(Y
t
, Y
tj
) =
1
T
T
t=j +1
(Y
t
Y
j +1,T
)(Y
tj
Y
1,Tj
)
Where Y
j +1,T
is the sample average of Y
t
computed over
observations t = j + 1, . . . , T.
The j
th
order Autocorrelation of Y
t
:
j
= Corr (Y
t
, Y
tj
) =
Cov(Y
t
, Y
tj
)
_
Var (Y
t
)Var (Y
tj
)
The j
th
order sample Autocorrelation of Y
t
(Y
t
stationary):
j
=
Corr (Y
t
, Y
tj
) =
Cov(Y
t
, Y
tj
)
Var (Y
t
)
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Iss LDG L D ACV ACR TSP ACREx St
A Time series property
Multiyear swings
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Iss LDG L D ACV ACR TSP ACREx St
Stationarity
Note that stationarity does not rule out serial correlation; but
Corr (Y
t+k
, Y
t+s
) must not depend on t for any k, s
If E[Y
t
] = 0 zero mean White Noise
The value of the time series at time t is the value of the series
at time t 1 plus a completely random movement determined
by u
t
N(0, 1).
Random walk
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP TSD WN WN2 WN3 MA1 MA2 AR1 AR2 RW RWD
Random Walk with drift
A model for time series with a trend is the Random Walk with
drift:
Y
t
= c + Y
t1
+ u
t
t = 1, 2, , Y
0
= 0
i =0
u
t
replacing Y
t1
by c + Y
t2
+ u
t1
and so on
Time series
Lag operator
Dierence operator
Autocovariance
Autocorrelation
Stationarity
White noise
Moving average
Autoregression
Random Walk
Time series Y
t
, expressed as a (response) to a linear
combination of other input time series
Simple Static models using time series relate one time series
variable to other time series variables
with the eect assumed to operate within the period.
Dynamic eects:
The size and nature of the eect can vary over time
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP D OJSR Ex Ex Ex DLE DLE DL1 DL2 DM
Orange Juice Price
Data
Price=price of frozen OJ
The coecient
0
is the short run or impact multiplier: the
contemporaneous eect of X
t
on Y
t
, holding past X
t
constant
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP D OJSR Ex Ex Ex DLE DLE DL1 DL2 DM
Modelling Approach: Distributed lag model
Y
t
= +
0
X
t
+
1
X
t1
+
2
X
t2
+ +
q
X
tq
+ u
t
1
is the 1-period dynamic multiplier: the eect of change in
X
t1
on Y
t
, holding X
t
, and X
t2
constant
2
is the 2-period dynamic multiplier: the eect of change in
X
t2
on Y
t
, holding X
t
, X
t1
, and X
t3
, X
t
4
constant
Each
j
is known as the multiplier at lag j
When u
t
is autocorrelated, conventional OLS Std. Errors
(heteroskedasticity-robust or not) are wrong
1
=
1
+
1
T
T
t=1
(X
t
X)u
t
1
T
T
t=1
(X
t
X)
2
Denoting (X
t
X)u
t
by v
t
, in large samples
1
=
1
+
1
T
T
t=1
v
t
2
X
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Why M1 M2 M3 F1 F2 R
HAC Standard Errors, ctd.
1
) = Var
_
1
T
T
t=1
v
t
_
/(
2
X
)
2
=
1
T
2
T
t=1
T
s=1
Cov (v
t
, v
s
) /(
2
X
)
2
1
) =
1
T
2
T
t=1
Var (v
t
) /(
2
X
)
2
=
2
v
T(
2
X
)
2
The usual i.i.d. result
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Why M1 M2 M3 F1 F2 R
HAC Standard Errors, ctd.
The need
1
)
Var
_
1
T
T
t=1
v
t
_
= Var [(v
1
+ v
2
)/2]
= [Var (v
1
) + Var (v
2
) + 2Cov(v
1
, v
2
)] /4
=
2
v
/2 +
2
v
/2 (where
1
= Corr (v
1
, v
2
))
=
2
v
f
2
/2, where f
2
= (1 +
1
)
In i.i.d. data,
1
= 0 so f
2
/2 = 1, yielding the usual formula
for Var (
1
)
1
) is not given by the
usual formula
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Why M1 M2 M3 F1 F2 R
HAC SE: Expression for Var(estimator), general T
Var
_
1
T
T
t=1
v
T
_
=
2
v
T
f
T
So
Var (
1
) =
_
1
T
2
v
(
2
X
)
2
_
f
T
Where
f
T
= 1 + 2
T1
i =1
_
T j
T
_
T1
i =1
_
Tj
T
_
j
, we could
make the adjustment
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP Why M1 M2 M3 F1 F2 R
HAC SE: Expression for Var(estimator), general T
Var (
1
) =
_
1
T
2
v
(
2
X
)
2
_
f
T
, where f
T
= 1 + 2
T1
i =1
_
Tj
T
_
f
T
= 1 + 2
m1
i =1
_
m j
m
_
j
j
is an estimator of
j
What q to use?
Let the data determine (are the coecients signicant?)
= 7 (observations=612)
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP DM1 DM2 CM1 CM2 Rev
The Dynamic Eect
Estimates
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP DM1 DM2 CM1 CM2 Rev
Multipliers: Dynamic eect of an FDD on the price of
Orange Juice
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP DM1 DM2 CM1 CM2 Rev
Cumulative multipliers
Estimates
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP DM1 DM2 CM1 CM2 Rev
Cumulative multipliers
Estimates
Paul Kattuman MPO1A: Session 1 January 23, 2012
House TSEx NDef BP LRMTS FDLM HACSE OJP OJP DM1 DM2 CM1 CM2 Rev
What did we do?
Notation, Denitions