Economitrics
Economitrics
Economitrics
Markets
1c. Linear Time Series Analysis
Simon Kwok
University of Sydney
Semester 1, 2022
1 / 20
Outline
2 / 20
Regression Model with Time Series Errors
Let fxt g and fyt g be two time series. Let’s say we run the regression
yt = xt0 β + εt . (1)
1 k k 1
where σ̂2ε is the OLS variance estimator of the residuals fε̂t g, given by
σ̂2ε = T 1 k ∑T 2
t =1 ε̂t .
Q: Upon diagnostic checks, we may …nd that fε̂t g are heteroskedastic
d ( β̂jx ) consistent
and/or serially correlated. Is β̂ consistent for β, and Cov
for Cov ( β̂jx )?
A: It depends on the true data generating process (DGP).
3 / 20
Regression Model with Time Series Errors
Scenario 1: Let x = [x1 , x2 , . . . , xT ], a k T matrix of full row
rank. The true DGP is (1), where fxt g is a covariance stationary
process with E (kxt k2 ) < ∞ and E [xt xt0 ] being positive de…nite,
fεt g wn(0, σ2ε ), and the two processes fxt g and fεt g are
independent.
Consequence: β̂ is consistent, and Cov d ( β̂jx ) is consistent.
Sketch of proof: Substitute (1) into (2).
! 1
T T
β̂ = β + ∑ xt xt0 ∑ x t εt .
t =1 t =1
Since E (kxt k2 ) < ∞ and E (ε2t ) < ∞, which imply that E (kxt εt k) < ∞ by
Cauchy-Schwartz inequality, we apply the strong law of large numbers and obtain
T T
1 1
∑ xt xt0 ∑ x t εt
a.s . a.s .
! E (xt xt0 ), ! E (xt εt ) = 0,
T t =1 T t =1
a.s .
as T ! ∞, so that β̂ β ! 0 as T ! ∞. 4 / 20
Regression Model with Time Series Errors
Conditional on x = [x1 , x2 , . . . , xT ], the covariance matrix of β̂ is
Cov ( β̂jx ) = E [( β̂ β)( β̂ β)0 ]
! 1 ! ! 1
T T T
= ∑ xt xt0 Cov ∑ x t εt x ∑ xt xt0 .
t =1 t =1 t =1
Since fεt g wn (0, σ2ε ) and E (xt εt ) = 0, we have E (ε2t jx ) = E (ε2t ) = σ2ε and
E (εs εt jx ) = E (εs εt ) = 0 for all s 6= t, and so Cov ∑T
t =1 x t ε t x = σ2ε ∑Tt=1 xt xt0 . It
1
follows that Cov ( β̂jx ) = σ2ε ∑T 0
t =1 x t x t .
a.s .
Since E (ε2t ) < ∞, we have, by the strong law of large numbers, σ̂2ε ! σ2ε , and hence,
! 1 ! 1
T T
∑ xt xt0 ∑ xt xt0
d ( β̂jx ) = σ̂2ε a.s .
Cov ! σ2ε = Cov ( β̂jx ) as T ! ∞.
t =1 t =1
5 / 20
Regression Model with Time Series Errors
6 / 20
Regression Model with Time Series Errors
Scenario 3: The true DGP is (1) with serially correlated and
heteroskedastic fεt g.
d ( β̂jx ) and Cov
Consequence: β̂ is consistent, but Cov d ( β̂jx )HC are
inconsistent.
7 / 20
Regression Model with Time Series Errors
Scenario 4: The true DGP contains lagged values of yt , and fεt g
is serially correlated. E.g.,
yt = βyt + εt ,
1
εt = θεt 1 + ut ,
E (x t εt ) = E [y t 1 εt ]
= E [y t 1 ( θεt 1 + u t )]
= θE (yt 1 εt 1 + E [y t
) 1 u t ].
Ex: Show that ŷt (`) = E [yt +` jFt ] = yt for all ` > 0.
This shows that fyt g is a martingale. Interpretation: the best
point forecast of a RW is given by its current value.
Ex: Show that the forecast error êt (`) = yt +` ŷt (`) has variance
`σ2ε , which diverges as ` ! ∞ (hopeless to forecast RW in the
distant future).
Ex: Show that the ACF is ρj = 1 for all integers j (long memory).
10 / 20
Random Walk with Drift
yt = y0 + ct
|{z} + εt + εt 1 + ε1 .
|{z} | {z }
initial point deterministic trend stochastic trend
Ex: Show that ŷt (`) = E [yt +` jFt ] = c ` + yt for all ` > 0.
11 / 20
Trend-Stationary Time Series
Ex: Show that ŷt (`) = E [yt +` jFt ] = a + b (t + `) for all ` > 0.
12 / 20
Dickey-Fuller (DF) Test
Consider the regression
yt = φ1 yt 1 + εt .
φ̂1 1 ∑Tt=1 εt yt 1
DF = = q .
s.e.(φ̂1 ) σ̂ε ∑Tt=1 yt2 1
∑Tt=1 εt yt 1
DF = q .
σ̂ε ∑Tt=1 yt2 1
Q: What is the asymptotic distribution of DF under H0 ?
Sketch of proof: Let W (t ) be the standard Brownian motion (in continouous time).
As T ! ∞, by the strong law of large numbers,
I σ̂2ε a.s .
! σ2ε .
Also, applying the functional central limit theorem,
I d σ2ε
1
T ∑T
t =1 y t 1 εt ! 2[W (1 )2 1 ],
R
I 1
∑T 2
t =1 y t 1
d 1
! σ2ε 0 W (s )2 ds .
T2
1 2
d 2 [W (1 ) 1]
DF ! q R1 .
2
0 W (s ) ds
14 / 20
Augmented Dickey-Fuller (ADF) Test
We augment the regression model with a deterministic intercept ct
and p 1 lagged di¤erenced series ∆yt 1 , . . . , ∆yt p +1
p 1
yt = ct + βyt 1+ ∑ φi ∆yt i + εt .
i =1
Note that βc = β 1.
15 / 20
Spurious Regression
Suppose fyt g and fxt g contain a unit root.
16 / 20
Cointegration
A: In this case, fyt g and fxt g are cointegrated, We say that the
f(yt , xt )g pair displays a cointegrating relationship given by (1)
with cointegrating vector (1, β). As for inference, the OLS
estimate β̂ is super-consistent (T -consistent), and the asymptotic
distribution is non-standard.
17 / 20
Seasonal Models
Time series may exhibit cyclical patterns (e.g., weekly pattern for
daily series, monthly pattern for weekly series).
∆s yt = (1 Ls )yt
= yt yt s.
18 / 20
Seasonal Models
19 / 20
Long Memory / Fractionally di¤erenced Model
Let fεt g wn(0, σ2ε ), and suppose that φ( ) and θ ( ) are
polynomial functions of orders p and q. We say that yt follows an
autoregressive fractionally integrated moving-average model,
ARFIMA(p, d, q ), if
[1 φ(L)]∆d yt := [1 + θ (L)]εt .
(hyperbolic decay) as j ! ∞.
I d 2 [0.5, 1) : mean-reverting, non-stationary process.
I d = 1 : martingale, unit root process, ρj 1 for all integers j.