Topic-1
Topic-1
Series Econometrics
1
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
2
Introduction
3
Introduction
4
Introduction
5
Introduction
6
Introduction
7
Introduction
8
Introduction
9
Introduction
10
Introduction
11
Introduction
4000
3900
Dow Jones Index
3800
3700
3600
12
Introduction
50
Change in Dow Jones Index
−50
−100
0 50 100 150 200 250 300
Day
13
Introduction
14
Introduction
15
Introduction
16
Introduction
T
1X
γ̂1 = (yt − y)(yt−1 − y)
T t=2
Setting j = 2 in Definition 1.5, we obtain the sample covariance at
lag 2:
T
1X
γ̂2 = (yt − y)(yt−2 − y)
T t=3
18
Introduction
19
Introduction
20
Introduction
21
Introduction
22
Introduction
24
Introduction
For example,
PT
t=2 (yt − y)(yt−1 − y)
ρ̂1 = PT 2
t=1 (yt − y)
PT
t=3 (yt − y)(yt−2 − y)
ρ̂2 = PT 2
t=1 (yt − y)
25
Introduction
26
Introduction
Example
Series: h02
0.8
0.6
0.4
ACF
0.2
0.0
6 12 18 24
Lag
27
Introduction
28
Introduction
Example
Series: h02
0.8
0.4
PACF
0.0
−0.4
6 12 18 24
Lag
29
Introduction
PT
γ0 = E[(yt − µ)2 ] γ̂0 = T −1 t=1 (yt − y)2
PT
γj = E[(yt − µ)(yt−j − µ)] γ̂j = T −1 t=j+1 (yt − y)(yt−j − y)
PT
Cov(yt ,yt−j ) γ̂j (yt −y)(yt−j −y)
ρj = √ √ ρ̂j = γ̂0 = t=j+1
PT
Var(yt ) Var(yt−j ) t=1
(yt −y)2
30
Introduction
Both the sample ACF and the sample PACF are commonly used as
tools to aid in identifying an appropriate statistical model for the
time series yt .
Rationale: Stochastic processes can be differentiated based on the
properties of their ACF and PACF.
Therefore, knowledge of the ACF and PACF properties may help us
to identify the nature of the stochastic process that is generating
the observed values of yt .
However, to exploit this fact, we need to be familiar with the
properties of the ACF and PACF of different stochastic processes.
In the next few subsections, we describe the ACF and PACF of
several stochastic processes.
31
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
32
I.I.D. Process
33
I.I.D. Process
That is,
et ∼ i.i.d(0, σ 2 ),
if et and et−j are independently distributed random variables for all j ̸= 0.
34
White Noise
35
I.I.D. vs White Noise
36
I.I.D. vs White Noise
37
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
38
Stationary AR(1) Processes
39
Stationary AR(1) Processes
c
E(yt ) = µ = ∀t (1.2)
(1 − ϕ1 )
σ2
Var(yt ) = γ0 = ∀t (1.3)
(1 − ϕ21 )
σ2
Cov(yt , yt−j ) = γj = 2 ϕj1 , ∀ t and j ∈ N (1.4)
(1 − ϕ1 )
γj
ρj = = ϕj1 , ∀ j ∈ N (1.5)
γ0
where
N = {0, 1, 2, .......}.
40
Stationary AR(1) Processes
41
Stationary AR(1) Processes
43
Stationary AR(1) Processes
44
Stationary AR(1) Processes
45
Stationary AR(1) Processes
Example:
yt = 0.5 + 0.7yt−1 + et
5.0
2.5
0.0
−2.5
0 200 400 600 800 1000
0.50 0.50
PACF
ACF
0.25 0.25
0.00 0.00
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Lag Lag
46
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
47
Stationary AR(p) Processes
c, ϕ1 , ϕ2 , . . . , ϕp , σ 2
48
Stationary AR(p) Processes
c
E(yt ) = µ = for all t. (1.7)
(1 − ϕ1 − ϕ2 − . . . − ϕp )
Equation (1.7) implies that
E(yt ) = 0, iff c = 0.
Therefore, as in the AR(1) case, omitting the intercept from the
model is appropriate only if the time series has a mean of zero.
49
Stationary AR(p) Processes
50
Stationary AR(p) Processes
We write
yt = c + ϕ1 yt−1 + ϕ2 yt−2 + . . . + ϕp yt−p + et (1.6)
in mean deviation form.
From (1.7) we have
c = µ(1 − ϕ1 − ϕ2 − . . . − ϕp ). (1.8)
Substituting (1.8) into (1.6) we obtain
yt = µ(1 − ϕ1 − ϕ2 − . . . − ϕp ) + ϕ1 yt−1 + ϕ2 yt−2 +
. . . + ϕp yt−p + et
yt = µ − µϕ1 − µϕ2 − . . . − µϕp + ϕ1 yt−1 + ϕ2 yt−2 +
. . . + ϕp yt−p + et
yt − µ = ϕ1 (yt−1 − µ) + ϕ2 (yt−2 − µ) + . . . + ϕp (yt−p − µ) + et .
(1.9)
51
Stationary AR(p) Processes
52
Stationary AR(p) Processes
53
Stationary AR(p) Processes
54
Stationary AR(p) Processes
55
Stationary AR(p) Processes
56
Stationary AR(p) Processes
57
Stationary AR(p) Processes
ρ1 = ϕ1 ρ0 + ϕ2 ρ−1 + . . . + ϕp ρ1−p
ρ2 = ϕ1 ρ1 + ϕ2 ρ0 + . . . + ϕp ρ2−p
... (1.14)
ρp = ϕ1 ρp−1 + ϕ2 ρp−2 + . . . + ϕp ρ0
Since, for a stationary process,
ρ0 = 1
ρ−j = ρj
58
Stationary AR(p) Processes
ρ1 = ϕ1 + ϕ2 ρ1 + . . . + ϕp ρp−1
ρ2 = ϕ1 ρ1 + ϕ2 + . . . + ϕp ρp−2
... (1.15)
ρp = ϕ1 ρp−1 + ϕ2 ρp−2 + . . . + ϕp
The set of equations given by (1.15) is known as the Yule-Walker
equations.
The Yule-Walker equations can be used to estimate the population
correlation coefficients by executing the following steps:
59
Stationary AR(p) Processes
1 Estimate
yt = c + ϕ1 yt−1 + ϕ2 yt−2 + . . . + ϕp yt−p + et (1.6)
and obtain
60
Stationary AR(p) Processes
ρ1 , ρ2 , ρ3 , . . . , ρp
in terms of
61
Stationary AR(p) Processes
62
Stationary AR(p) Processes
For example,
63
Stationary AR(p) Processes
ϕjj ∀ j≤p
ϕjj = 0 ∀ j>p
Therefore an AR(p) process may provide a suitable model for the
data generating process (DGP) of yt if the ACF shows exponential
decay, and the PACF cuts off (i.e., ceases) after p lags.
64
Stationary AR(p) Processes
Example: AR(2)
yt = 1.3yt−1 − 0.7yt−2 + et
−5
0.8 0.8
0.4 0.4
PACF
ACF
0.0 0.0
−0.4 −0.4
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Lag Lag
65
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
66
MA(q) Processes
E(yt ) = c.
Var(yt ) = σ 2 (1 + θ12 + θ22 + . . . + θq2 ).
γj = σ 2 (θj + θ1 θj+1 + θ2 θj+2 + . . . + θq−j θq ) for j ≤ q.
γj = 0 ∀ j > q.
ρj = 0 ∀ j > q. 1.17
67
MA(q) Processes
68
MA(q) Processes
Example: MA(2)
yt = 0.5et−1 − 0.5et−2 + et
4
2
0
−2
−4
0 200 400 600 800 1000
0.0 0.0
PACF
ACF
−0.2 −0.2
−0.4 −0.4
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Lag Lag
69
MA(q) Processes
AR(p) MA(q)
ACF Declines exponentially Cuts off after q lags
PACF Cuts off after p lags Declines exponentially
70
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
71
Stationary ARMA(p,q) Processes
AR(p) and MA(q) process are both special cases of a more general
process known as an ARMA(p,q) process.
The time series yt follows an ARMA(p,q) process if
yt = c+ϕ1 yt−1 +ϕ2 yt−2 +. . .+ϕp yt−p +et +θ1 et−1 +θ2 et−2 +. . .+θq et−q ,
(1.18)
where et ∼ WN(0, σ ). 2
72
Stationary ARMA(p,q) Processes
Example: ARMA(1,1)
yt = 0.5yt−1 − 0.8et−1 + et
−2
0.0 0.0
PACF
ACF
−0.1 −0.1
−0.2 −0.2
0 5 10 15 20 25 30 0 5 10 15 20 25 30
Lag Lag
73
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
74
Properties of Sample Mean and Sample Correlogram
75
Properties of Sample Mean and Sample Correlogram
76
Properties of Sample Mean and Sample Correlogram
77
Properties of Sample Mean and Sample Correlogram
78
Properties of Sample Mean and Sample Correlogram
Properties 4 and 6 provide the justification for using the SACF and
SPACF for model identification: In a large sample, the SACF and
SPACF should provide a “good” approximation to the population
ACF and PACF respectively.
As we discuss next, a test of the statistical significance of the
sample correlation coefficients can be based on Property 5.
79
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
80
Testing for Autocorrelation in y
We often wish to test the null hypothesis that a time series is white
noise (or, more generally, for the presence of autocorrelation in a
time series). One test of the white noise hypothesis is based on
Property 5 above.
Note that since
asy
ρ̂j ∼ N(ρj , T −1 ),
it follows that
ρ̂j − ρj asy
√ ∼ N(0, 1).
T −1
Therefore, asymptotically,
ρ̂j − ρj
P −Zcrit < √ < Zcrit = 0.95,
T −1
where Zcrit has the property that for any standard normal variable,
Z,
P[Z > Zcrit ] = 0.025.
81
Testing for Autocorrelation in y
ρ̂j − ρj
P −2 < √ < 2 = 0.95,
T −1
or
h √ √ i
P −2 T −1 < ρ̂j − ρj < 2 T −1 = 0.95.
Under the null hypothesis that yt is white noise, ρj = 0, it follows
that,
2 2
P − √ < ρ̂j < √ = 0.95 ∀j ̸= 0.
T T
82
Testing for Autocorrelation in y
That is, if
ρj = 0,
then a 95% confidence interval for ρ̂j is given by
2 2
− √ < ρ̂j < √ .
T T
If ρ̂j lies outside this confidence interval, we reject the null
hypothesis that ρj = 0.
Another popular test of the white noise hypothesis is that
proposed by Ljung and Box (1978).
83
Testing for Autocorrelation in y
H0 : ρ1 = ρ2 = . . . = ρs = 0.
H0 : ρ1 = ρ2 = . . . = ρs = 0,
asy
Qs ∼ χ2 (s).
At the 5% significance level we reject the null hypothesis if
Qs > χ2 (s)crit ,
where χ2 (s)crit is the 95th percentile of a chi-square variable with s
degrees of freedom.
If we reject the null, we conclude that there is non-zero
autocorrelation at at least one lag ≤ s.
Many software packages routinely produce these Q statistics
together with the sample autocorrelation function of the time
series and a set of p-values. 85
Testing for Autocorrelation in y
asy
Qs ∼ χ2 (s − p − q).
86
Testing for Autocorrelation in y
87
Testing for Autocorrelation in y
In the table above, the number 172.10 is the sample value of the
test statistic for testing
H0 : ρ1 = 0.
The number 331.97 is the sample value of the test statistic for
testing
H0 : ρ1 = ρ2 = 0.
On the basis of the output, we would conclude that rcan is
autocorrelated.
88
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
89
Estimating Stationary ARMA Processes
90
Estimating Stationary ARMA Processes
et ∼ WN(0, σ 2 ).
Without loss of generality, and to economize on notation, we have
assumed that there is no intercept in the process.
91
Estimating Stationary ARMA Processes
92
Estimating Stationary ARMA Processes
e23 = (y3 − ϕ1 y2 − ϕ2 y1 )2 .
93
Estimating Stationary ARMA Processes
94
Estimating Stationary ARMA Processes
PT 2 T
∂ t=3 et
X
= −2yt−1 (yt − ϕ1 yt−1 − ϕ2 yt−2 ) = 0 (1.22)
∂ϕ1 t=3
PT 2 T
∂ t=3 et
X
= −2yt−2 (yt − ϕ1 yt−1 − ϕ2 yt−2 ) = 0 (1.23)
∂ϕ2 t=3
The values of ϕ1 and ϕ2 that satisfy (1.22) and (1.23) are the
conditional least squares estimates of ϕ1 and ϕ2 .
95
Estimating Stationary ARMA Processes
96
Estimating Stationary ARMA Processes
by conditioning on
(y1 , y2 , . . . , yp )
and minimizing
T
X T
X
e2t = (yt − ϕ1 yt−1 − . . . − ϕp yt−p )2
t=p+1 t=p+1
by choice of
ϕ1 , . . . , ϕ p .
97
Estimating Stationary ARMA Processes
PT 2 T
∂ t=p+1 et
X
= −2yt−1 (yt − ϕ1 yt−1 − . . . − ϕp yt−p ) = 0
∂ϕ1 t=p+1
..
.
PT 2 T
∂ t=p+1 et
X
= −2yt−p (yt − ϕ1 yt−1 − . . . − ϕp yt−p ) = 0
∂ϕp t=p+1
98
Estimating Stationary ARMA Processes
99
Estimating Stationary ARMA Processes
100
Estimating Stationary ARMA Processes
101
Estimating Stationary ARMA Processes
102
Estimating Stationary ARMA Processes
103
Estimating Stationary ARMA Processes
e1 = y1 − ϕ1 y0 − θ1 e0
e2 = y2 − ϕ1 y1 − θ1 e1
e3 = y3 − ϕ1 y2 − θ1 e2
..
.
eT = yT − ϕ1 yT−1 − θ1 eT−1 .
104
Estimating Stationary ARMA Processes
105
Estimating Stationary ARMA Processes
PT 2 T
∂ t=2 et
X
= −2 yt−1 (yt − ϕ1 yt−1 − θ1 et−1 ) = 0. (1.26)
∂ϕ1 t=2
PT 2 T
∂ t=2 et
X
= −2 et−1 (yt − ϕ1 yt−1 − θ1 et−1 ) = 0. (1.27)
∂θ1 t=2
When we substitute recursively for the error terms in (1.26) and
(1.27), we obtain two equations that are highly non-linear in the
parameters ϕ1 and θ1 and which cannot be solved analytically. The
first-order conditions can only be solved by numerical methods.
106
Estimating Stationary ARMA Processes
et = yt − ϕ1 yt−1 − θ1 et−1
= yt − ϕ1 yt−1 − θ1 (yt−1 − ϕ1 yt−2 − θ1 et−2 )
=.
=.
= yt − (ϕ1 + θ1 )yt−1 + ..... − (−θ1 )t−2 ϕ1 y1 +
107
(−θ1 )t−1 e1 . (1.28)
Estimating Stationary ARMA Processes
ep , ep−1 , . . . , ep−q+1 .
108
Estimating Stationary ARMA Processes
110
Outline
1 Introduction
2 I.I.D. Processes and White Noise
3 Stationary AR(1) Processes
4 Stationary AR(p) Processes
5 MA(q) Processes
6 Stationary ARMA(p,q) Processes
7 Properties of Sample Mean and Sample Correlogram
8 Autocorrelation test for y
9 Estimating Stationary ARMA Processes
10 ARMA vs Structural Econometric Models
111
ARMA Models vs Structural Econometric Models
112
ARMA Models vs Structural Econometric Models
113
ARMA Models vs Structural Econometric Models
114
ARMA Models vs Structural Econometric Models
116
ARMA Models vs Structural Econometric Models
117