TimeSeriesAnalysisLectureNotes
TimeSeriesAnalysisLectureNotes
net/publication/319629569
CITATIONS READS
0 907
1 author:
Vijayamohanan Pillai N
SEE PROFILE
All content following this page was uploaded by Vijayamohanan Pillai N on 11 September 2017.
1
10/15/2012
2
10/15/2012
3
10/15/2012
4
10/15/2012
5
10/15/2012
Stationarity
A non-
non-stationary series
includes a longer-term
secular trend.
Stationarity
But,
a large number of actual time series
are not stationary;
6
10/15/2012
T = standard number of
observations in a time series.
7
10/15/2012
a stochastic process
yt = a +b yt – 1:
8
10/15/2012
Filter
Signal Output
(Input)
Noise
Noise
Filtering =
Decomposing output into input (signal) and noise.
9
10/15/2012
Filter
Signal Output
(Input)
Noise
Noise
White noise
analogous to white light which contains all
frequencies.
a random signal (or process) with a flat
power spectral density.
The signal's power spectral density has equal
power in any band.
10
10/15/2012
White Noise
Calculated spectrum
of a generated
approximation of
Intensity (db)
white noise
Frequency (Hz)
An example
realization of a
white noise process.
Vijayamohan: CDS MPhil: Time Series 1 21 15 October 2012
11
10/15/2012
So, in yt = a + b yt–1 + ut :
ut : White noise
(a) E(ut) = E(ut - 1) = …. = 0
‘No memory’.
(d) ut is normally distributed. (This assumption
not essential.)
12
10/15/2012
13
10/15/2012
Formally:
any interval k,
14
10/15/2012
In
yt = a + b yt–1 + ut ;
ut : White noise
15
10/15/2012
b>1 2t 1 2 4 8 16 32 64
| b |>1
16
10/15/2012
b=1 1t 1 1 1 1 1 1 1
|b|=1
17
10/15/2012
b = -1 -1t 1 -1 1 -1 1 -1 1
|b|=1
18
10/15/2012
ocillatory,
or non-oscillatory,
converging(damped)
or diverging (explosive)
19
10/15/2012
and
Non-converging, if b ≥ 1, or b ≤ −1,
that is, −1 ≥ b ≥ 1, or | b | ≥ 1.
20
10/15/2012
To recap,
Negative root ⇒ Oscillatory
Positive root ⇒ Non-oscillatory
Absolute value of the root < 1 ⇒
Convergence.
Absolute value of the root ≥ 1 ⇒
Non-convergence.
Non-stationarity :
With unit root, b = 1, yt = yt–1 + ut ;
for i = 1, 2, …, t;
21
10/15/2012
t −1
yt = byt–1 + ut = ∑ b i ut − i
i =0
Thus with unit root , b = 1 :
Σ ui) = 0, but
E(yt) = E(Σ
Non-stationarity
Stationarity
22
10/15/2012
Stationarity :
all constant;
independent of t:
yt : stationary process.
A Stationary
Time Series
White noise ut
23
10/15/2012
-1
-2
-3
24
10/15/2012
A Stationary
Time Series
AR(1)
yt = 0.6yt–1 +ut
A Stationary
Time Series
MA(1)
yt = ut + 0.9ut–1
Stationary processes
MA(1) process: yt = ut + d ut – 1 .
ARMA(1, 1) process:
yt = a + b yt–1 + ut + d ut – 1 .
25
10/15/2012
26
10/19/2012
1
10/19/2012
2
10/19/2012
1. γ0 = Var(Yt) = σ2 ;
γ- k = γk, ∀ k;
Vijayamohan: CDS MPhil: Time Series 2 5 19 October 2012
2. | ρk| ≤ 1, ∀ k;
3
10/19/2012
4
10/19/2012
Lag 1 2 3 4 5 6
r 0.191 0.148 -0.1 0.065 0.021 -0.01
5
10/19/2012
1.96 0.191
0.148
0.065
0.021
-0.01
0
1 2 3 4 5 6
-0.1
-1.96
2. Joint Hypothesis:
H0: sample ρ1 = 0, ρ2 = 0, ρ3 = 0, …….
m
(a)Box-Pierce Q statistic (1970): Q=T ∑ ρρ̂ k2
k =1
6
10/19/2012
2. Joint Hypothesis:
H0: sample ρ1 = 0, ρ2 = 0, ρ3 = 0, …….
χ26 = 12.592.
We cannot reject the joint null also.
The series is a white noise process
14
Vijayamohan: CDS MPhil: Time Series 2
(statistically). 19 October 2012
7
10/19/2012
Sample Correlogram
Autocorrelation coefficients
Lags
Sample Correlogram
Autocorrelation coefficients
Lags
8
10/19/2012
Sample Correlogram
Autocorrelation coefficients
Lags
9
10/19/2012
10
10/19/2012
1
95% confidence interval is: ± 1.96
T
In an AR(1), Yt = Φ1 Yt-1 + εt ,
Φ1 is both AC and PAC coefficients:
PACC1 = Φ1 = ρ1.
11
10/19/2012
12
10/19/2012
Lags
Lags
13
10/19/2012
Stationary processes
yt = + yt–1 + t +d t–1 .
14
10/19/2012
First order
Autorregresive process
AR(1):
Yt = ∑Φ
k
k Xt −k
15
10/19/2012
16
10/19/2012
∂Yt + k ∂Yt
The impulse responses are: =
∂ε t ∂ε t − k
17
10/19/2012
Yt = + ΦYt-1 + εt =
t −1 t −1
α ∑Φ k + ∑Φ k
ε t −k
k =0 k =0
18
10/19/2012
A Stationary
Time Series
AR(1)
yt = 0.6yt–1 +ut
A Stationary
Time Series
AR(1)
yt = 1.3 + 0.6yt–1 +ut
Lags
Stationary series: AR(1) : ACF fast decreasing
Vijayamohan: CDS MPhil: Time Series 3 38 19 October 2012
19
10/19/2012
Lags
Stationary series: AR(1) : ACF fast decreasing
Vijayamohan: CDS MPhil: Time Series 3 39 19 October 2012
Lags
Vijayamohan: CDS MPhil: Time Series 3 40 19 October 2012
20
10/19/2012
Lags
Vijayamohan: CDS MPhil: Time Series 3 41 19 October 2012
t −1
Yt = Yt-1 + εt = ∑ ε t − k
k =0
21
10/19/2012
Then
1. E(Yt) = 0.
t −1
−
Random walk: Yt = Yt-1 + εt = ∑ εt −k
k =0
4. ACF: ρk = γk / γ0 = 1: Non-decaying
(slow decay in sample data):
Sign of non-stationarity.
5. PACF: Φ = 1. One coefficient:
Sign of order of integration
(order of differecning to make it stationary).
22
10/19/2012
23
10/19/2012
A Random walk
(without drift)
yt = yt–1 +ut
A Random walk
with drift
yt = 0.3 +yt–1 +ut
24
10/19/2012
25
10/19/2012
Second order
Autorregresive process
AR(2)
26
10/19/2012
Yt = Φ1Yt-1 + Φ2Yt-2 + εt
where εt is a white noise process.
Yt = Φ1Yt-1 + Φ2Yt-2 + εt
E(εt) = 0
E(εtεt-k) = E(εt Yt-k) = 0, k>0
= E(εt 2) = σ2, k = 0.
27
10/19/2012
Yt = Φ1Yt-1 + Φ2Yt-2 + εt
With the lag operator L,
(1 - Φ1L - Φ2L2) Yt = εt ,
Or Φ(L)Yt = εt ,
(1 - Φ1 - Φ2)E(Yt) = E(εt) = 0.
With a constant ,
28
10/19/2012
Yt = Φ1Yt-1 + Φ2Yt-2 + εt ,
E(εt Yt-k) = 0, k ≥ 1;
29
10/19/2012
(1)Cov(Yt Yt-k) = γk
= Φ1 γk-1 + Φ2 γk-2 ; k = 1,2,..
∴ (2) ACF: ρk
= Φ1 ρk-1 + Φ2 ρk-2 ; k = 1, 2, ….
A difference equation of order 2.
k = 2, ρ2 = Φ1 ρ1 + Φ2 ρ0
= Φ12/(1–Φ2) + Φ2; |Φ2| < 1.
30
10/19/2012
Thus Var(Yt) = γ0 = 1 − Φ2 σ2
1 + Φ2 (Φ1 + Φ2 − 1)(Φ2 − Φ1 − 1)
Vijayamohan: CDS MPhil: Time Series 3 61 19 October 2012
1 − Φ2 σ2
Var(Yt) = γ0 =
1 + Φ2 (Φ1 + Φ2 − 1)(Φ2 − Φ1 − 1)
1. |Φ2| < 1;
2. |Φ1+Φ2| <1;
3. |Φ2 – Φ1| < 1.
31
10/19/2012
Yt = Φ1 Yt-1 + Φ2 Yt-2 + εt ,
32
10/19/2012
33
10/19/2012
34
10/19/2012
(1 - 2L + L2) Yt = εt .
The ‘characteristic equation’
1 - 2L + L2 = 0,
gives the two roots: L1, L2 = 1.
But differences in interpretation.
35
10/19/2012
ACF of
Yt = 2Yt-1 - Yt-2 + εt..
36
10/19/2012
PACF of
Yt = 2Yt-1 - Yt-2 + εt..
37
10/19/2012
38
10/19/2012
39
10/19/2012
40
10/19/2012
Remember
the Stationarity conditions for an AR(2):
(1) |Φ2| < 1;
(2) |Φ1+Φ2| < 1;
(3) |Φ2 – Φ1| < 1.
41
10/19/2012
42
10/15/2012
1
10/15/2012
may be taken as
(1) a regression in Yt and Xt;
(2) An AR in Yt , if Xt = Yt;
(3) An MA in Yt , if Xt is white noise.
q
Yt = ∑ θkεt − k
k =0
In general, θ0 = 1.
2
10/15/2012
Yt = (1 – θ1L)εt .
See: there is
only one period impulse response,
unlike in AR(1);
MA process is a
finite impulse response filter.
Vijayamohan: CDS MPhil: Time Series 4 5 15 October 2012
Yt = (1 – θ1L)εt .
1. E(Yt) = E(εt ) = 0;
3
10/15/2012
3. Cov(Yt; Yt-k) = γk :
with k = 1:
γ1 = E(Yt Yt-1) =
E{(εt – θ1εt-1)(εt-1 – θ1εt-2)} =
–θ1 σ2.
3. Cov(Yt; Yt-k) = γk :
γ1 = –θ1 σ2.
With k = 2:
γ2 = E(Yt Yt-2) =
E{(εt – θ1εt-1)(εt-2 – θ1εt-3)} = 0.
4
10/15/2012
4. ACF = ρk = γk / γ0
= –θ1 / (1 + θ12), k = 1;
= 0, k > 1.
5
10/15/2012
6
10/15/2012
∞
Yt – µ = ∑ψ j ε t − j ,
j =0
ψ0 = 1.
7
10/15/2012
∞
Yt – µ = ∑ψ j ε t − j , ψ0 = 1.
j =0
Yt = εt – θ1εt-1.
∞
Yt – µ = ∑ψ j ε t − j , ψ0 = 1.
j =0
8
10/15/2012
stationarity condition:
bounds of stationarity.
Moments of AR(1) can be found based on this
∞) series also.
MA(∞
9
10/15/2012
Yt = εt – θ1εt-1 = (1 – θ1L)εt
so that Yt (1 – θ1L) –1 = εt .
Expanding by Binomial theorem:
Yt = εt – θ1εt-1 ⇒
10
10/15/2012
11
10/15/2012
MA(1)
yt = ut + 0.6ut–1
θ1 positive θ1 negative
Vijayamohan: CDS MPhil: Time Series 4 24 15 October 2012
12
10/15/2012
Yt = εt – θ1εt-1 – θ2εt-2;
Yt = θ(L)εt , where
θ(L) = (1 – θ1L – θ2L2).
Yt = εt – θ1εt-1 – θ2εt-2;
1. E(Yt) = E(εt ) = 0;
13
10/15/2012
3. Cov(Yt; Yt-k) = γk :
with k = 1:
γ1 = E(Yt Yt-1) =
With k = 2:
γ2 = E(Yt Yt-2) =
= – θ2 σ2.
14
10/15/2012
4. ACF = ρk = γk / γ0 =
= – θ2 / (1 + θ12 + θ22), k = 2;
= 0, k > 2.
5. PACF:
The first PAC coefficient = Φ1;
The second PACC = Φ2
|ly for other higher order PACF.
15
10/15/2012
Yt = εt + 1.1εt-1 + 0.2εt-2
16
10/15/2012
17
10/15/2012
18
10/15/2012
Yt = 2 + 5t +εt;
19
10/15/2012
If | θ | = 1, as above,
MA process is non-invertible.
Autoregressive
Moving Average
Process:
ARMA(p, q)
20
10/15/2012
21
10/15/2012
Autoregressive
Moving Average
Process:
ARMA(p, q)
1
10/15/2012
2
10/15/2012
Yt = Φ1Yt-1 + εt – θ1εt-1.
(1)E(Yt) = 0;
With a constant ,
ARMA(1, 1)
3
10/15/2012
ARMA(1, 1)
(3) Cov(Yt; Yt-k) = γk :
The covariances are recursively estimated:
with k = 1:
γ1 = E(Yt Yt-1)
ARMA(1, 1)
= Φ1 γ1.
Thus γk = Φ1 γk-1, k ≥ 2.
4
10/15/2012
ARMA(1, 1)
(4) ACF:
ρk = γ k / γ 0
= Φ1 ρk-1, k ≥ 2.
Thus ACF decays geometrically
ARMA(1, 1)
(4) ACF: = ρk = γk / γ0
= Φ1 ρk-1, k ≥ 2.
Thus ACF decays geometrically from the starting
value, ρ1, a function of both Φ1 and θ1.
5
10/15/2012
ARMA(1, 1)
5. PACF:
The first PAC coefficient = Φ1;
Yt = 0.4Yt-1 + εt – 0.2εt-1.
6
10/15/2012
Yt = 0.4Yt-1 + εt – 0.2εt-1.
7
10/15/2012
Φ1 positive Φ1 negative
8
10/15/2012
Non-stationarity
Non-stationarity due to
(1)Integrated process: random walk:
Yt = Yt-1 + εt
Difference stationary process
Stochastic trend
Consequences of Non-stationarity
9
10/15/2012
Consequences of Non-stationarity
(2) For non-stationary series, Var and Covs are
functions of time: so the conventional
asymptotic theory cannot be applied to these
series.
Cov(Ut , Vt) = 0.
10
10/15/2012
15
10
-5
-10
0 50 100 150 200 250 300
Cov(Ut , Vt) = 0.
Vijayamohan: CDS MPhil: Time Series 5 21 15 October 2012
3 eps ep
-1
-2
-3
Ut ∼ IIN(0, σU2)
Vt ∼ IIN(0, σV2)
Vijayamohan: CDS MPhil: Time Series 5 22 15 October 2012
11
10/15/2012
0.75
0.50
0.25
0.00
-0.25
-0.50
-0.75
0 5 10
Cov(Ut , Vt) = 0.
Yt =β 0 +β 1 Xt + ε t.
We expect R2 from this regression would tend
to zero; BUT….
12
10/15/2012
13
10/15/2012
?
Vijayamohan: CDS MPhil: Time Series 5 27 15 October 2012
14
10/15/2012
15
10/15/2012
16
10/15/2012
If non-stationary series,
17
10/15/2012
∆Yt = Yt – Yt-1 = εt :
Stationary.
18
10/15/2012
I(1): No tendency
to return to zero
time
I(0): Rarely drifts from zero
19
10/15/2012
If a non-stationary series, Yt →
by an ARMA(p, q) model,
then
20
10/15/2012
Non-stationarity
Non-stationarity due to
(1)Integrated process: random walk:
Yt = Yt-1 + εt
Difference stationary process
Stochastic trend
Non-stationarity :
Yt = a +bt+ ut ,
Non-stationary process?
21
10/15/2012
Non-stationarity :
Trend stationary process: TSP:
E(Yt) = a +bt.
Var(ut) = σu2.
Non-stationarity :
22
10/15/2012
Differencing a TSP:
Yt = a + bt +εt; then
23
10/15/2012
Differencing a TSP:
Differencing detrends,
but generates MA process
that can show a cycle
when there is none in the original series:
‘spurious cycle’: Slutzky effect (Slutzky 1937).
Differenced series:
∆Yt = Yt –Yt-1 = 5 + εt – εt-1
Detrended series:
Yt – (2 + 0.05t) = εt
Detrending :
24
10/15/2012
25
10/15/2012
Box-
Box-Jenkins
Methodology:
ARIMA Modelling
1
10/15/2012
ARIMA modelling.
= ‘Box-Jenkins methodology’.
2
10/15/2012
3
10/15/2012
ARIMA Modelling:
Box – Jenkins Methodology:
Variance of estimators is inversely proportional
Type 2 error.
Vijayamohan: CDS MPhil: Time Series 6 7 15 October 2012
ARIMA Modelling:
Box – Jenkins Methodology:
Basic steps:
1. Identification of a tentative model;
Successive differencing to achieve stationarity;
2. Estimation of the model; and
3. Diagnostic checking.
4
10/15/2012
BOX-
BOX-JENKINS METHODOLOGY
No Modify
Diagnosis:
model
Are the residuals white noise? Yes
Check ACF and PACF Forecast
Vijayamohan: CDS MPhil: Time Series 6 10 15 October 2012
5
10/15/2012
6
10/15/2012
7
10/15/2012
AR(1)
MA(1)
8
10/15/2012
2. Estimation:
AR Model: straightforward:
OLS method;
MA Model:
ML method;
ARMA Model:
ML method for the MA component.
9
10/15/2012
10
10/15/2012
Theory of estimation:
11
10/15/2012
where σ̂ 2
σ is the estimated error variance:
(1927 –2009)
2009) Japanese statistician.
12
10/15/2012
T ln σˆ 2 + k ln T
Schwarz,
Schwarz, Gideon E. (1978).
"Estimating the dimension of a model".
Annals of Statistics 6 (2): 461–
461–464.
Vijayamohan: CDS MPhil: Time Series 6 25 15 October 2012
T ln σˆ 2 + 2k ln(ln T )
Hannan,
Hannan, E. J., and B. G. Quinn (1979)
The Determination of the Order of an Autoregression,
Autoregression,
Journal of the Royal Statistical Society, B, 41, 190–
190–195.
13
10/15/2012
‘Information Criteria’:
(1) f(T) = 2 → Akaike (1974) IC = T ln σˆ 2 + 2k
‘Information Criteria’:
T ln σˆ 2 + 2k ln(ln T )
For HQIC, weight on k is greater than 2, if T > 15.
14
10/15/2012
Box-
Box-Jenkins
Methodology:
ARIMA Modelling
Examples
15
10/15/2012
Yt
ACF PACF
∆Yt
ACF PACF
16
10/15/2012
Residuals
ACF PACF
17
10/15/2012
Xt
ACF PACF
18
10/15/2012
∆ Xt
ACF PACF
19
10/15/2012
Residuals
ACF PACF
Yt
ACF PACF
20
10/15/2012
Residuals
ACF
PACF
21
10/15/2012
22
11/5/2013
Unit Root
Time Series Econometrics Tests
7
Vijayamohanan Pillai N
Vijayamohan: CDS M Phil: Time Series 7 1 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 2 5 November 2013
Non-stationarity
Non-stationarity due to
Unit Root (1)Integrated process: random walk:
Tests Yt = Yt-1 + εt
Difference stationary process
‘Jack and Jill went up the hill, to look at the stars. Stochastic trend
“Do you see any unit roots there?”
Jack asks Jill who was using a telescope.
“The stars all seem to be cointegrated”, replies Jill.’ (2) Trend: Trend stationary process
Both stochastic and deterministic trend
G.S. Maddala (1998) ‘Recent Developments in Dynamic
Econometric Modelling: A Personal Viewpoint’,
Vijayamohan: CDS M Phil: Time Series 7 3
Political Analysis5; November
7: 59-87 2013 Vijayamohan: CDS MPhil: Time Series 5 4 5 November 2013
(2) For non-stationary series, Var and Covs are βˆ = Cov (Yt , X t ) Var ( X t )
functions of time:
so the conventional asymptotic theory cannot If Xt is non-stationary, Var(Xt) ↑ infinitely, and
be applied to these series. dominates the Cov(Yt, Xt):
Then the OLS estimator does not have an
asymptotic distribution.
Vijayamohan: CDS MPhil: Time Series 5 5 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 6 5 November 2013
1
11/5/2013
15
5
Yt = Yt–1 + Ut; Ut ∼ IIN(0, σU2)
0
-10
Cov(Ut , Vt) = 0. 0 50 100 150 200 250 300
Cov(Ut , Vt) = 0.
Vijayamohan: CDS MPhil: Time Series 5 7 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 8 5 November 2013
3 eps ep
Cross Correlation function
1.00
2 CCF-eps x ep CCF-ep x eps
0.75
1
0.50
0
0.25
-1
0.00
-2 -0.25
-3 -0.50
Ut ∼ IIN(0, σU2) 0 5 10
Cov(Ut , Vt) = 0.
Vt ∼ IIN(0, σV2)
Vijayamohan: CDS MPhil: Time Series 5 9 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 10 5 November 2013
Yt =β 0 + β 1 Xt + εt.
We expect R2 from this regression would tend
to zero; BUT….
Vijayamohan: CDS MPhil: Time Series 5 11 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 12 5 November 2013
2
11/5/2013
?
Vijayamohan: CDS MPhil: Time Series 5 13 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 14 5 November 2013
Vijayamohan: CDS MPhil: Time Series 5 15 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 16 5 November 2013
If non-stationary series,
Classical: Autocorrelation function (ACF):
Correlogram run regression in (first) differences as in
Modern: Unit root tests: or check for Cointegration among the series
Vijayamohan: CDS MPhil: Time Series 5 17 5 November 2013 Vijayamohan: CDS MPhil: Time Series 5 18 5 November 2013
3
11/5/2013
Vijayamohan: CDS M Phil: Time Series 7 19 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 20 5 November 2013
Vijayamohan: CDS M Phil: Time Series 7 21 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 22 5 November 2013
Dickey-Fuller (DF) Unit Root Test Dickey-Fuller (DF) Unit Root Test
Vijayamohan: CDS M Phil: Time Series 7 23 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 24 5 November 2013
4
11/5/2013
Dickey-Fuller (DF) Unit Root Test Dickey-Fuller (DF) Unit Root Test
Rewrite (1) yt = α + β t +ρ yt-1 + ut as ||ly rewrite (2) yt = α +ρ yt-1 + ut
as ∆ yt = α +γ yt-1 + ut .
∆ yt = α + β t +γ yt-1 + ut ,
where γ = (ρ −1).
and (3) yt = ρ yt-1 + ut ,
Now, testing the null hypothesis
as ∆ yt = γ yt-1 + ut .
Ho: γ = 0,
Wiener process:
a continuous-time stochastic process
Also called Brownian Motion Brownian motion:
1827
Vijayamohan: CDS M Phil: Time Series 7 29 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 30 5 November 2013
5
11/5/2013
Vijayamohan: CDS M Phil: Time Series 7 31 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 32 5 November 2013
Augmented Dickey-Fuller (ADF) Unit Root Test Augmented Dickey-Fuller (ADF) Unit Root Test
Vijayamohan: CDS M Phil: Time Series 7 33 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 34 5 November 2013
Vijayamohan: CDS M Phil: Time Series 7 35 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 36 5 November 2013
6
11/5/2013
Testing: (2):
Consumption
Estimate the regression of ∆2Yt on Yt–1, ∆Yt–1,
and the lagged values of ∆2Yt, and
Vijayamohan: CDS M Phil: Time Series 7 37 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 38 5 November 2013
EQ( 1) Modelling ∆Ct by OLS (using Data.in7) EQ( 1) Modelling ∆2Ct by OLS (using Data.in7)
The estimation sample is: 1953 (2) to 1992 (3) The estimation sample is: 1953 (3) to 1992 (3)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
5 -1.094 0.98551 2.123 -2.767 0.0064 1.551 5 -4.870** 0.28208 2.132 0.06925 0.9449 1.559
4 -1.464 0.98038 2.171 1.253 0.2123 1.589 0.0064 4 -5.305** 0.28618 2.125 2.948 0.0037 1.546 0.9449
3 -4.448** 0.42488 2.180 -1.053 0.2941 1.591 0.0151
3 -1.298 0.98274 2.176 1.448 0.1496 1.587 0.0110
2 -5.313** 0.37033 2.181 -1.293 0.1981 1.585 0.0232
2 -1.120 0.98516 2.184 1.687 0.0937 1.588 0.0112
1 -6.801** 0.29538 2.185 -1.570 0.1185 1.583 0.0246
1 -0.9317 0.98766 2.197 2.481 0.0142 1.594 0.0075
0 -10.08** 0.19164 2.196 1.586 0.0182
0 -0.6361 0.99149 2.234 1.621 0.0013
Vijayamohan: CDS M Phil: Time Series 7 41 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 42 5 November 2013
7
11/5/2013
Nelson and Plosser (1982) Series Sample size Lag (k) τ-value
(T)
The first ever attempt: Nelson and Plosser Real GDP 62 2 −2.99
(1982), using the (augmented) Dickey-Fuller Nominal GDP 62 2 −2.32
unit root tests: Real per capita GNP 62 2 −3.04
Industrial production 111 6 −2.53
Employment 81 3 −2.66
H0: a time series belongs to DSP class against Unemployment rate 81 4 −3.55*
Ha: it belongs to TSP class. GNP deflator 82 2 −2.52
Consumer prices 111 4 −1.97
Wages 71 3 −2.09
Nelson and Plosser found that 13 out of 14 US Real wages 71 2 −3.04
macroeconomic time series that they analyzed Money stock 82 2 −3.08
belonged to the DSP class (the exception being Velocity 102 1 −1.66
the unemployment rate). Interest rate 71 3 0.686
Common stock
5 November prices
2013 Vijayamohan: 100
CDS M Phil: Time Series 7 3 −2.05
Vijayamohan: CDS M Phil: Time Series 7 43 5 November 2013 44
6. Pantula and Hall (1991): IV test in ARMA models; 12. Elliott, Rothenberg and Stock (1996): Dickey-
Fuller GLS test;
7. Schmidt and Phillips (1992): LM test;
Vijayamohan: CDS M Phil: Time Series 7 45 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 46 5 November 2013
3. Bierens and Guo (1993): based on Cauchy • Breitung and Meyer (1994)
distribution; • Quah (1994);
4. Leybourne and McCabe (1994): Modified KPSS • Pesaran and Shin (1996);
test;
5. Choi (1994): based on testing for a MA unit root;
6. Arellano and Pantula (1995): based on testing for
a MA unit root.
Vijayamohan: CDS M Phil: Time Series 7 47 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 48 5 November 2013
8
11/5/2013
(with (with
possible possible Tsset : Declare data to be time-series data
Plosser’s Data (1982) Set
breaks) breaks)
Copy-paste data in data editor
Nelson and Plosser ADF test with no 13 1
Generate a time variable by typing the command:
(1982) break
Perron (1989)** Exogenous with 3 11
one break For monthly data starting with 1995 July:
Zivot and Andrews Endogenous with 10 3
(1992)* one break . generate time = m(1995m7) + _n -1
. format t %tm
Lumsdaine and Endogenous with 8 5
Papell (1997)* two breaks You can now tsset your data set
. tsset time
Lee and Strazicich Endogenous with 10 4
(2003)** two breaks
time variable: time, 1995m7 to 2004m6
delta: 1 month
* Assume no break(s) under the H0 of unit root.
** Assume break(s) under both the null and the HA
Vijayamohan: CDS M Phil: Time Series 7 49 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 50 5 November 2013
If the first observation is for the first quarter of 1990, For weekly data starting at 1994w1 type:
For yearly data starting at 1942 type: For daily data starting at 1jan1999 type:
generate time = y(1942) + _n-1
format time %ty . generate time = d(1jan1999) + _n-1
tsset time . format time %td
. tsset time
For half yearly data starting at 1921h2 type:
generate time = h(1921h2) + _n-1
format time %th
tsset time
Vijayamohan: CDS M Phil: Time Series 7 51 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 52 5 November 2013
Vijayamohan: CDS M Phil: Time Series 7 53 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 54 5 November 2013
9
11/5/2013
. gen lcons=ln(cons)
. pperron cons, lags(5)
. pperron lcons, lags(5)
Phillips-Perron test for unit root Number of obs = 158
Newey-West lags = 5 Phillips-Perron test for unit root Number of obs = 158
Newey-West lags = 5
---------- Interpolated Dickey-Fuller ---------
Test 1% Critical 5% Critical 10% Critical ---------- Interpolated Dickey-Fuller ---------
Statistic Value Value Value Test 1% Critical 5% Critical 10% Critical
------------------------------------------------------------------------- Statistic Value Value Value
----- ------------------------------------------------------------------------------
Z(rho) -3.253 -19.993 -13.816 -11.077 Z(rho) -3.242 -19.993 -13.816 -11.077
Z(t) -1.194 -3.491 -2.886 -2.576 Z(t) -1.190 -3.491 -2.886 -2.576
------------------------------------------------------------------------- ------------------------------------------------------------------------------
----- MacKinnon approximate p-value for Z(t) = 0.6778
MacKinnon approximate p-value for Z(t) = 0.6760
Vijayamohan: CDS M Phil: Time Series 7 55 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 56 5 November 2013
Vijayamohan: CDS M Phil: Time Series 7 57 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 58 5 November 2013
Vijayamohan: CDS M Phil: Time Series 7 59 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 60 5 November 2013
10
11/5/2013
Yt
Deterministic Stochastic
Vijayamohan: CDS MPhil: Time Series 8 61 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 62 05 November 2013
Cointegration Cointegration
Spurious (Nonsense) regression with ∵ differencing → ‘valuable long-run information
integrated variables being lost’’.
Vijayamohan: CDS MPhil: Time Series 8 63 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 64 05 November 2013
Cointegration
Two seemingly irreconcilable objectives : If two series yt and xt are both I(1),
then in general, any linear combination
1. Avoid spurious regression of I(d) variables
of them will also be I(1);
and
e.g. Yt – Ct = St: All show upward trend.
2. Conserve the long-term relationship.
Saving
Consumption
Vijayamohan CDS Time Series: Introduction 65 5 November 2013 Vijayamohan: CDS MPhil: Time Series 8 66 05 November 2013
11
11/5/2013
Cointegration Cointegration
an important property of I(1) variables :
Savng
Consumption
Vijayamohan: CDS MPhil: Time Series 8 67 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 68 05 November 2013
Cointegration Cointegration
Vijayamohan: CDS MPhil: Time Series 8 69 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 70 05 November 2013
Cointegration
Cointegration = Stationary linear combination of
integrated variables.
Clive WJ Granger 1981 :
Note: Variables of the same degree of integration.
combines short-run and long-run perspectives.
The Sveriges Riksbank Prize in Economic
Granger Representation Theorem: Sciences in Memory of Alfred Nobel 2003
If there is an equilibrium relationship between "for methods of analyzing economic time
two economic variables, series with common trends (cointegration)“
12
11/5/2013
Cointegration Cointegration
If there exists a relationship between two non
The system is in long-run equilibrium when
stationary I(1) series, Yt and Xt , such that the
E(Yt – βXt) = 0.
residuals of the regression:
∴ ut = equilibrium error (deviation from long-
Yt = βXt + ut , that is, ut = Yt – βXt run equilibrium).
are stationary, i.e., I(0), then the variables, For the equilibrium to be meaningful,
equilibrium error process must be stationary.
Yt and Xt , are said to be cointegrated.
The system is in long-run equilibrium when
β is called the constant of cointegration, and
E(Yt – βXt) = 0. the equation is called cointegrating regression
∴ ut = equilibrium error (deviation from long- or Cointegrating vector (CV).
run equilibrium).
Vijayamohan: CDS MPhil: Time Series 8 73 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 74 05 November 2013
Cointegration
Equilibrium Errors: (i.e. ut = Yt - βXt)
Two series Yt and Xt are said to be
cointegrated if:
1. Both are I(d), d ≠ 0 and the same for both
No tendency
to return to series (having the same ‘wave length’); and
zero
ut 2. There is a linear combination of them that
is I(0),
i.e., there exists ut = Yt – βXt that is I(0).
Vijayamohan: CDS MPhil: Time Series 8 75 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 76 05 November 2013
How can we distinguish between a genuine long- (1) After estimating the model, save residuals from
run relationship and a spurious regression? static regression. Consider whether residuals are
We need a test. stationary.
1.0
residuals
0.5
Two categories:
0.0
Residual-based test:
10 20 30 40 50 60 70 80 100
1.0
ACF
using (A)DF -statistic: 0.5
Vijayamohan: CDS MPhil: Time Series 8 77 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 78 05 November 2013
13
11/5/2013
Testing for Cointegration: Residual based tests Testing for Cointegration: Residual based tests:
(2): Cointegrating Regression (A)DF test: (Augmented) Engle-Granger test
(Augmented) Engle-Granger test (A)EG test is a test of no-cointegration:
We proceed in three steps: H0: No Cointegration (= unit root in ut)
Step 1: Test that both variables have the same order
of integration, say, that they are both I(1). This can be Acceptance of a unit root in the residuals suggests that
performed with the unit-root tests described before. the residual term is non-stationary, which implies
NO cointegration:
Step 2: Estimate a `long-run relationship by OLS:
α + β xt + u t
yt =α = Not rejecting H0. That is,
Step 3: Extract the residuals of this regression (ut )
If the estimated (A)DF τ–value is more negative
and test for a unit-root in this series, using (A)DF test
(i.e., less) than the critical value at the chosen
statistic: significance level, reject Ho
ut has a unit root ⇒ NO cointegration. = There IS cointegration.
Vijayamohan: CDS MPhil: Time Series 8 79 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 80 05 November 2013
Testing for Cointegration: Residual based tests: Testing for Cointegration: Residual based tests:
(Augmented) Engle-Granger test (Augmented) Engle-Granger test
Step 1: Test for the order of integration of Xt and Yt: Step 1: Test for the order of integration of Xt and Yt:
Unit-root tests (using Data1) Unit-root tests (using Data1)
The sample is 4 - 300 The sample is 5 - 300
X: ADF tests (T=297, Constant; 5% = -2.87; 1% = -3.45) DX: ADF tests (T=296, Constant; 5% = -2.87; 1% = -3.45)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
2 1.941 1.0006 0.9939 -0.1358 0.8920 0.001096 2 -9.604** 0.057433 1.002 -0.1413 0.8878 0.01713
1 1.942 1.0006 0.9922 0.5127 0.6085 -0.005575 0.8920 1 -11.77** 0.049579 1.000 -0.08180 0.9349 0.01045 0.8878
0 2.028 1.0007 0.9910 -0.01142 0.8692 0 -16.39** 0.045016 0.9985 0.003713 0.9868
Y: ADF tests (T=297, Constant; 5%=-2.87 1%=-3.45) DY: ADF tests (T=296, Constant; 5% = -2.87; 1% = -3.45)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
2 -0.9251 0.99935 0.9635 1.163 0.2459 -0.06091 2 -8.860** 0.099869 0.9527 -1.232 0.2191 -0.08349
1 -0.9554 0.99932 0.9641 -0.9526 0.3416 -0.06304 0.2459 1 -11.60** 0.028890 0.9535 -1.094 0.2749 -0.08507 0.2191
0 -0.9305 0.99934 0.9640 -0.06669 0.3244 0 -18.02** -0.037637 0.9539 -0.08775 0.2589
Vijayamohan: CDS MPhil: Time Series 8 81 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 82 05 November 2013
Testing for Cointegration: Residual based tests: Testing for Cointegration: Residual based tests:
(Augmented) Engle-Granger test (Augmented) Engle-Granger test
Step 3: Check for unit root in the residuals:
Step 2: Estimate cointegrating regression
Yt = β0 + β1Xt + ut EQ( 6) Modelling Dresiduals by OLS (using Data1.in7)
The estimation sample is: 4 to 300
EQ( 1) Modelling Y by OLS (using Data1)
Coefficient Std.Error t-value t-prob Part.R^2
The estimation sample is: 1 to 300
residuals_1 -1.16140 0.1024 -11.3 0.000 0.5805
Coefficient Std.Error t-value t-prob Part.R^2
sigma 0.545133 RSS 27.6367834
Constant 4.85755 0.1375 35.3 0.000 0.9279
log-likelihood -75.8453 DW 1.95
X 1.00792 0.005081 198. 0.000 0.9975
Vijayamohan: CDS MPhil: Time Series 8 83 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 84 05 November 2013
14
11/5/2013
Testing for Cointegration: Residual based tests: Testing for Cointegration: Residual based tests:
(Augmented) Engle-Granger test (Augmented) Engle-Granger test
Step 3: Check for unit root in the residuals: Step 3: Check for stationarity (unit root) of the residuals:
Residuals
2.5
Unit-root tests (using Data1)
0.0
0
0 -11.33** 1.16140 0.5451 -0.02568 0.8812
0 5 10
Vijayamohan: CDS MPhil: Time Series 8 85 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 86 05 November 2013
Testing for Cointegration: System method: Testing for Cointegration: System method:
Johansen – Juselius test Johansen – Juselius test
Most popular system method: JJ -test (Johansen
1988; Johansen and Juselius 1990), JJ-test is in the framework of VAR (Sims 1980)
Provides two likelihood ratio (LR) tests. In a VAR, all the variables are endogenous:
(1)The trace test: tests the hypothesis that there With two variables in a model, X and Y: two
are at most r cointegrating vectors, and endogenous variables in VAR;
(2) The maximum eigenvalue test: tests the null That is, two equations:
hypothesis that there are r cointegrating (1): Yt = a + b Xt; and (2): Xt = c + d Yt;
vectors against the hypothesis that there are
r+1 cointegrating vectors. Thus two possible cointegrating vectors
(CVs):
Johansen and Juselius (1990) recommend the
second test as better. We need to identify the CVs.
Vijayamohan: CDS MPhil: Time Series 8 87 05 November 2013 Vijayamohan: CDS MPhil: Time Series 8 88 05 November 2013
Testing for Cointegration: System method: Testing for Cointegration: System method:
Johansen – Juselius test Johansen – Juselius test
15
11/5/2013
Testing for Cointegration: System method: Testing for Cointegration: System method:
Johansen – Juselius test Johansen – Juselius test
Level First-
variables Differenced
variables
Vijayamohan: CDS M Phil: Time Series 7 91 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 92 5 November 2013
First-Differenced Variables
CONS: ADF tests (T=155; 5%=-1.94 1%=-2.58) DCONS: ADF tests (T=154; 5%=-1.94 1%=-2.58)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
3 -0.6661 0.99987 2.161 1.241 0.2167 1.567 3 -4.453** 0.43565 2.161 -1.124 0.2628 1.566
2 -0.7434 0.99985 2.165 1.604 0.1109 1.564 0.2167 2 -5.316** 0.37979 2.163 -1.337 0.1831 1.562 0.2628
1 -0.8371 0.99983 2.176 2.392 0.0180 1.568 0.1311 1 -6.812** 0.30387 2.168 -1.648 0.1014 1.561 0.2204
Level Variables
0 -1.033 0.99979 2.209 1.592 0.0219 0 -10.13** 0.19674 2.180 1.565 0.1272
INC: ADF tests (T=155; 5%=-1.94 1%=-2.58) DINC: ADF tests (T=154; 5%=-1.94 1%=-2.58)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
3 -0.5555 0.99983 3.348 0.6839 0.4951 2.442 3 -5.886** -0.0099325 3.355 -0.4643 0.6431 2.446
2 -0.5895 0.99982 3.342 -0.1570 0.8754 2.432 0.4951 2 -6.953** -0.047705 3.346 -0.5646 0.5732 2.435 0.6431
1 -0.5864 0.99982 3.332 -1.052 0.2945 2.420 0.7821 1 -9.144** -0.098829 3.338 0.1576 0.8750 2.424 0.7665
0 -0.5397 0.99984 3.333 2.414 0.6628 0 -13.49** -0.084793 3.328 2.411 0.9059
PRICE INDEX: ADF tests (T=155; 5%=-1.94 1%=-2.58) DPRICE INDEX: ADF tests (T=154; 5%=-1.94 1%=-2.58)
D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob D-lag t-adf beta Y_1 sigma t-DY_lag t-prob AIC F-prob
3 -0.4096 0.99990 3.511 -0.4221 0.6736 2.537 3 -6.972** 0.010731 3.488 1.764 0.0798 2.524
2 -0.3979 0.99991 3.501 -0.5968 0.5516 2.525 0.6736 2 -6.971** 0.13464 3.512 0.3980 0.6912 2.532 0.0798
1 -0.3806 0.99991 3.494 2.468 0.0147 2.515 0.7667 1 -8.126** 0.16195 3.502 0.5392 0.5905 2.520 0.1982
0 -0.4436 0.99989 3.551 2.541 0.0918 0 -10.11** 0.19731 3.494 2.509 0.3162
Vijayamohan: CDS M Phil: Time Series 7 93 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 94 5 November 2013
Testing for Cointegration: System method: Testing for Cointegration: System method:
Johansen – Juselius test in PcGive 10 Johansen – Juselius test in Stata
Testing for cointegration among 3 variables: 3 possible CVs:
. vecrank cons inc Priceindex, trend(none)
I(1) cointegration analysis, 1953 (2) to 1992 (3) Johansen tests for cointegration
eigenvalue loglik for rank Trend: none Number of obs = 157
-1113.071 0 Sample: 1953q3 - 1992q3 Lags = 2
0.27034 -1088.172 1 ------------------------------------------------------------------------------
0.23740 -1066.761 2 5%
0.0049281 -1066.371 3 maximum trace critical
rank parms LL eigenvalue statistic value
rank Trace test [ Prob] Max test [ Prob] Trace test (T-nm) Max test 0 9 -1083.6944 . 41.2984 24.31
(T-nm) 1 14 -1066.35 0.19824 6.6095* 12.53
0 93.40 [0.000]** 49.80 [0.000]** 91.63 [0.000]** 48.85 [0.000]** 2 17 -1063.3777 0.03716 0.6649 3.84
1 43.60 [0.000]** 42.82 [0.000]** 42.77 [0.000]** 42.01 [0.000]** 3 18 -1063.0452 0.00423
2 0.78 [0.377] 0.78 [0.377] 0.77 [0.382] 0.77 [0.382] ------------------------------------------------------------------------------
-
Vijayamohan: CDS M Phil: Time Series 7 95 5 November 2013 Vijayamohan: CDS M Phil: Time Series 7 96 5 November 2013
16
11/5/2013
Vijayamohan: CDS M Phil: Time Series 7 97 5 November 2013 Vijayamohan: CDS MPhil: Time Series 8 98 05 November 2013
Summing Up:
‘Full of Sound and Fury; Signifying Nothing’?
Most macroeconomic variables : non stationary.
Publishing, Germany)
Vijayamohan: CDS MPhil: Time Series 8 99 05 November 2013 Vijayamohan CDS Time Series: Introduction 100 5 November 2013
17
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 3 11/7/2013 10:19:14 AM Vijayamohan: M Phil: Time Series 4
07, 2013 Series
where Yt’= (Y1t, Y2t,…., Ykt), Include enough lagged variables so that there is no
serial correlation in the residuals of the GUM.
∆Ct = (α−1)Ct–1 + β0 ∆Yt + (β0 +β1)Yt–1 + εt ; or Finally, a parsimonious version of equation (2) is
developed,, by deleting the insignificant variables and
developed
∆ C t = β 0 ∆ Y t + λ [ C t – 1 − k Y t – 1] + ε t ;
imposing constraints on the estimated coefficients.
coefficients.
where k = (β0 +β1)/ (1− α) and λ = (α−1)
GETS is thus a highly empirical approach.
1
11/7/2013
Inflation
Income
Thursday, November Vijayamohan: CDS M Phil 103: Time 7 Thursday, November Vijayamohan: CDS M Phil 103: Time 8
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 9 Thursday, November Vijayamohan: CDS M Phil 103: Time 10
07, 2013 Series 07, 2013 Series
Residual
Analysis
ACF PACF
Thursday, November Vijayamohan: CDS M Phil 103: Time 11 Thursday, November Vijayamohan: CDS M Phil 103: Time 12
07, 2013 Series 07, 2013 Series
2
11/7/2013
Consumption Income
Inflation
Thursday, November Vijayamohan: CDS M Phil 103: Time 13 11/7/2013 10:19:14 AM Vijayamohan: M Phil: Time Series 14
07, 2013 Series
Thursday, November CDS MPhil FQ 17 Thursday, November Vijayamohan: CDS M Phil 103: Time 18
07, 2013 Vijayamohan 07, 2013 Series
3
11/7/2013
is known as the error correction term and models that • The classification of variables into endogenous and
exogenous,
include it are known as the error correction models
• The constraints implied by the traditional theory on the
(ECM).
structural parameters, and
It implies that departures from the equilibrium position in • The dynamic adjustment mechanisms used in the large
the immediate past period will be offset in the current scale models, are all arbitrary and too restrictive.
period by λ proportion. ∴ Include all variables as endogenous.
11/7/2013 10:19:14 AM
Note that λ should be negative.
Vijayamohan: M Phil: Time Series 21 Thursday, November Vijayamohan: CDS M Phil 103: Time 22
07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 23 Thursday, November Vijayamohan: CDS M Phil 103: Time 24
07, 2013 Series 07, 2013 Series
4
11/7/2013
1 1 b12
To normalize the LHS vector, we need to multiply et = B −1ε t B −1 =
(1 − b21 b12 ) b21 1
the equation by inverse B:
B −1BX t = B −1Γ1 X t −1 + B −1ε t
e1t 1 1 b12 ε yt
X t = A1 X t −1 + et e = 1 ε zt
2t (1 − b21 b12 ) b21
VAR in standard form (unstructured VAR: UVAR).
Thursday, November Vijayamohan: CDS M Phil 103: Time 25 Thursday, November Vijayamohan: CDS M Phil 103: Time 26
07, 2013 Series 07, 2013 Series
5
11/7/2013
VECM
VECM
Granger Representation Theorem (Engle and Granger
This method developed by Johansen (1988) is 1987):
undoubtedly the most widely used method in applied
work. If a set of variables are cointegrated,
cointegrated, then there
exists a VARMA representation for them and an
Models using this approach are also known as ‘error-
error-correcting’ mechanism (ECM); for example,
Cointegrating VAR (CIVAR) models.
If Yt and Xt are both I(1) and have constant means and
VECM can be seen as scaled down (reduced form)VAR are cointegrated,
cointegrated, then there exists an ECM,
ECM, (with the
model in which the structural coefficients are identified. equilibrium error Ut = Yt – β Xt ), of the form:
form:
6
11/7/2013
. predict ce, ce
. line ce time
10
Predicted cointegrated equation
-5 0 5
The second estimation table
the estimates of the parameters in the cointegrating
-10
equation, + their standard errors and confidence
intervals.
-15
1950q1 1960q1 1970q1 1980q1 1990q1
Thursday, November Vijayamohan: CDS M Phil 103: Time 37 Thursday, November time
Vijayamohan: CDS M Phil 103: Time 38
07, 2013 Series 07, 2013 Series
VECM
VECM
Remember: VECM, like VAR, treats all variables as
endogenous, Thus we need to test for direction of feedback:
endogenous,
but limits the number of variables to those relevant for a From Xt to Yt: whether Yt is exogenous to Xt;
particular theory. From Yt to Xt: whether Xt is exogenous to Yt;
For example, with two variables: Yt and Xt,
two endogenous variables,
variables, two possible CVs; That is, we need to test for ‘exogeneity’ of variables:
If our equation of interest is Yt = f(Xt) only,
only, that is,
Thursday, November Vijayamohan: CDS M Phil 103: Time 39 Thursday, November Vijayamohan: CDS M Phil 103: Time 40
07, 2013 Series 07, 2013 Series
7
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 43 Thursday, November Vijayamohan: CDS M Phil 103: Time 44
07, 2013 Series 07, 2013 Series
Statistics >
Multivariate time
series > Vector
autoregression
(VAR)
Level
variables
7 November 2013 Vijayamohan: CDS M Phil: Time 45 Thursday, November Vijayamohan: CDS M Phil 103: Time 46
Series 7 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 47 Thursday, November Vijayamohan: CDS M Phil 103: Time 48
07, 2013 Series 07, 2013 Series
8
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 49 Thursday, November Vijayamohan: CDS M Phil 103: Time 50
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 51 Thursday, November Vijayamohan: CDS M Phil 103: Time 52
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 53 Thursday, November Vijayamohan: CDS M Phil 103: Time 54
07, 2013 Series 07, 2013 Series
9
11/7/2013
Economists (e.g., Zellner 1979) and even philosophers feeling that it was one of the most unfortunate
(e.g., Holland 1986) question the very term ‘causality’: turnings for econometrics in the last two decades,
To mean ‘cause-effect’ relationship, when there is only and it has probably generated more nonsense results
temporal lead-lag relationship? than anything else during that time.”
Not ‘causality’ but ‘precedence’ as suggested by
Pagan, A.R. (1989), '20 Years After: Econometrics
Edward Leamer.
1966-1986,' in B. Cornet and H. Tulkens (eds).,
Unfortunately several studies to infer ‘cause-effect’ Contributions to Operations Research and
relationship! Econometrics, The XXth Anniversary of CORE,
Thursday, November Vijayamohan: CDS M Phil 103: Time 55 Thursday, November Vijayamohan: CDS M Phil 103: Time 56
07, 2013 Series (Cambridge,
07, 2013 Ma., MIT Press). Series
Yt = ∑Φ
k
k X t −k Yt = ∑Φ
k
k X t −k
7 November 2013 Vijayamohan: CDS MPhil: Time 57 7 November 2013 Vijayamohan: CDS MPhil: Time 58
Series 2 Series 2
The time path of all the periodical impulse +Φ: direct convergence;
responses: negative Φ: oscillatory convergence.
∂Yt ∂Yt + k
=
∂X t − k ∂X t
7 November 2013 Vijayamohan: CDS MPhil: Time 59 7 November 2013 Vijayamohan: CDS MPhil: Time 60
Series 2 Series 3
10
11/7/2013
In PcGive
First run a VAR
Thursday, November Vijayamohan: CDS M Phil 103: Time 61 Thursday, November Vijayamohan: CDS M Phil 103: Time 62
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 63 Thursday, November Vijayamohan: CDS M Phil 103: Time 64
07, 2013 Series 07, 2013 Series
0.00
Shock from Shock from -0.1
0.5
Income 0.2
-0.02
Income 5 5 -0.2
-0.3
0.0 0.0
0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150
1.0 0 0 10.0
CONS (INFLAT eqn) 0 INC (INFLAT eqn) INFLAT (INFLAT eqn) cum CONS (INFLAT eqn) cum INC (INFLAT eqn) cum INFLAT (INFLAT eqn)
0.0
-50 7.5
Shock from-2.5 0.5 Shock from -50
-2 5.0
Inflation Inflation -100
-5.0 2.5
-4 0.0 -150 -100
0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150 0 50 100 150
Thursday, November Vijayamohan: CDS M Phil 103: Time 65 Thursday, November Vijayamohan: CDS M Phil 103: Time 66
07, 2013 Series 07, 2013 Series
11
11/7/2013
In Stata
First run a VAR or VECM
Thursday, November Vijayamohan: CDS M Phil 103: Time 67 Thursday, November Vijayamohan: CDS M Phil 103: Time 68
07, 2013 Series 07, 2013 Series
In Stata
First run a VAR or VECM
Thursday, November Vijayamohan: CDS M Phil 103: Time 69 Thursday, November Vijayamohan: CDS M Phil 103: Time 70
07, 2013 Series 07, 2013 Series
-.5
-1
-1.5
-2
0 5 10
step
95% CI orthogonalized irf
Graphs by irfname, impulse variable, and response variable
Thursday, November Vijayamohan: CDS M Phil 103: Time 71 Thursday, November Vijayamohan: CDS M Phil 103: Time 72
07, 2013 Series 07, 2013 Series
12
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 73 Thursday, November Vijayamohan: CDS M Phil 103: Time 74
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 75 Thursday, November Vijayamohan: CDS M Phil 103: Time 76
07, 2013 Series 07, 2013 Series
In its basic form, an ARDL regression model : Pesaran MH and Shin Y. 1999.
(MARMA model) “An autoregressive distributed lag modelling
approach to cointegration analysis.”
yt = β0 + β1yt-1 + .......+ βkyt-p
+ α0xt + α1xt-1 + α2xt-2 + ......... + αqxt-q + εt Chapter 11 in
Econometrics and Economic Theory in the 20th
where εt is a random "disturbance" term. Century: The Ragnar Frisch Centennial Symposium,
"autoregressive“ = yt is "explained (in part) by lagged Strom S (ed.). Cambridge University Press:
values of itself. Cambridge.
"distributed lag" = successive lags of the explanatory
variable "x" .
13
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 79 Thursday, November Vijayamohan: CDS M Phil 103: Time 80
07, 2013 Series 07, 2013 Series
For instance:
The ARDL / Bounds Testing methodology of
It can be used with a mixture of I(0) and I(1)
Pesaran and Shin (1999) and Pesaran et al.
data.
(2001)
has a number of features that many
It involves just a single-equation set-up,
researchers feel give it some advantages over
making it simple to implement and interpret.
conventional cointegration testing.
Different variables can be assigned different
lag-lengths as they enter the model.
Thursday, November Vijayamohan: CDS M Phil 103: Time 81 Thursday, November Vijayamohan: CDS M Phil 103: Time 82
07, 2013 Series 07, 2013 Series
Step 1:
A conventional ECM for cointegrated data :
use the ADF/PP/KPSS tests to check that none of the
∆yt = β0 + Σ βi∆yt-i + Σγj∆x1t-j + Σδk∆x2t-k + φzt-1 + et ; series are I(2).
The ranges of summation : from 1 to p, 0 to q1, and 0 to q2 Step 2:
respectively. Formulate the following model:
z, the "error-correction term", is the OLS residuals series ∆yt = β0 + Σ βi∆yt-i + Σγj∆x1t-j + Σδk∆x2t-k
from the long-run "cointegrating regression",
+ θ0yt-1 + θ1x1t-1 + θ2 x2t-1 + et ;
yt = α0 + α1x1t + α2x2t + vt
Thursday, November Vijayamohan: CDS M Phil 103: Time 83 Thursday, November Vijayamohan: CDS M Phil 103: Time 84
07, 2013 Series 07, 2013 Series
14
11/7/2013
Thursday, November Vijayamohan: CDS M Phil 103: Time 85 Thursday, November Vijayamohan: CDS M Phil 103: Time 86
07, 2013 Series 07, 2013 Series
Step 4:
A key assumption in the ARDL / Bounds Testing Step 5:
methodology of Pesaran et al. (2001) : We have a model with an autoregressive structure,
so we have to be sure that
The errors of the equation must be serially independent. the model is "dynamically stable".
Thursday, November Vijayamohan: CDS M Phil 103: Time 87 Thursday, November Vijayamohan: CDS M Phil 103: Time 88
07, 2013 Series 07, 2013 Series
15
11/7/2013
Pesaran et al. (2001) supply bounds on the critical values conclude : the variables are I(0),
for the asymptotic distribution of the F-statistic. so no cointegration possible, by definition.
lower and upper bounds on the critical values. If the F-statistic exceeds the upper bound,
conclude : we have cointegration.
the lower bound is based on the assumption that all of
the variables are I(0), Finally, if the F-statistic falls between the bounds,
and the upper bound : all the variables are I(1). the test is inconclusive.
Thursday, November Vijayamohan: CDS M Phil 103: Time 91 Thursday, November Vijayamohan: CDS M Phil 103: Time 92
07, 2013 Series 07, 2013 Series
Step 7:
If the bounds test proves cointegration, Step 8:
estimate the long-run equilibrium relationship between
the variables: “Extract" long-run effects from the unrestricted ECM.
Thursday, November Vijayamohan: CDS M Phil 103: Time 93 Thursday, November Vijayamohan: CDS M Phil 103: Time 94
07, 2013 Series 07, 2013 Series
Thursday, November Vijayamohan: CDS M Phil 103: Time 95 Thursday, November CDS MPhil FQ 96
07, 2013 Series 07, 2013 Vijayamohan
16
11/7/2013
17
11/14/2013
ARCH
Time Series Econometrics
9
Vijayamohanan Pillai N
Vijayamohan: CDS M Phil : Time Series 9 1 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 2 Thursday, November 14, 2013
Empirical applications
SURVEYS:
• to capture the volatility clustering
Bollerslev, Chou and Kroner(1992), Journal of
Econometrics, Special Issue on ARCH Models in which can be observed in
Finance macro-economic series such as
Bollerslev, Engle and Nelson,(1994), ARCH inflation (Engle, 1982),
Models, in Handbook of Econometrics, volume or financial time-series such as
IV, (eds. Engle and McFadden), Elsevier. exchange rates and
Engle, ARCH: SELECTED READINGS, Oxford stock market returns.
University Press, 1995
4
Vijayamohan: CDS M Phil : Time Series 9 3 Thursday, November 14, 2013
2.5
0.0
-2.5
-5.0
-7.5
Vijayamohan: CDS M Phil : Time Series 9 5 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 6 Thursday, November 14, 2013
1
11/14/2013
Modelling Volatility
Yt =β 0 + β1Xt + εt.
This revolutionary notion (Robert F. Engle
⇒ the conditional mean: Yt = E{Yt| Xt} + εt. 1982): made it possible to explain
systematic variation in variance and to
E{εt | Xt}= E(εt ) = 0, and E(εt εs) = 0, for t ≠ s;
estimate parameters of
In estimation: homoscedasticity assumption;
conditional variance jointly with those of
True for ‘unconditional error variance’; conditional mean.
Vijayamohan: CDS M Phil : Time Series 9 9 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 10 Thursday, November 14, 2013
Modelling Volatility:
Robert F. Engle III Conditional and Unconditional Variance
Distinction between conditional and
The Sveriges Riksbank Prize in Economic unconditional variance:
Sciences in Memory of Alfred Nobel 2003 Consider the AR(1) model:
2
11/14/2013
3
11/14/2013
1. Estimate the model of interest via OLS and save the 3. The test statistic = TR2;
2. Perform an auxiliary regression in which the current (sample size times unadjusted R2)
squared residual is regressed on a constant and q lags from the auxiliary regression.
H0: α1 = α2 = …= αq = 0;
H1: α1 ≠ α2 ≠ … ≠ αq ≠ 0
Vijayamohan: CDS M Phil : Time Series 9 21 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 22 Thursday, November 14, 2013
Vijayamohan: CDS M Phil : Time Series 9 23 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 24 Thursday, November 14, 2013
4
11/14/2013
Vijayamohan: CDS M Phil : Time Series 9 27 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 28 Thursday, November 14, 2013
5
11/14/2013
Yt
Squared Yt
Vijayamohan: CDS M Phil : Time Series 9 33 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 34 Thursday, November 14, 2013
Vijayamohan: CDS M Phil : Time Series 9 35 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 36 Thursday, November 14, 2013
6
11/14/2013
Vijayamohan: CDS M Phil : Time Series 9 37 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 38 Thursday, November 14, 2013
Vijayamohan: CDS M Phil : Time Series 9 39 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 40 Thursday, November 14, 2013
7
11/14/2013
Vijayamohan: CDS M Phil : Time Series 9 43 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 44 Thursday, November 14, 2013
Vijayamohan: CDS M Phil : Time Series 9 45 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 46 Thursday, November 14, 2013
Vijayamohan: CDS M Phil : Time Series 9 47 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 48 Thursday, November 14, 2013
8
11/14/2013
Vijayamohan: CDS M Phil : Time Series 9 49 Thursday, November 14, 2013 Vijayamohan: CDS M Phil : Time Series 9 50 Thursday, November 14, 2013
9
View publication stats