Topics in Time Series Econometrics PDF
Topics in Time Series Econometrics PDF
(SG - 30/11/2013)
1
School of Economics, University of Economics, HCMC. Email: [email protected].
2
Selected papers were compiled by Phung Thanh Binh & Vo Duc Hoang Vu (2009). You
can find them at the H library.
3
The most important data sources for these studies can be World Bank’s World
Development Indicators, IMF-IFS, GSO, and Reuters Thomson.
1
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
4
My article about threshold cointegration and causality analysis in growth-energy
consumption nexus (www.fde.ueh.edu.vn) did mention about this issue.
2
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
3
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
4
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
5
http://nobelprize.org/nobel_prizes/economics/laureates/2003/
5
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
6
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
2.1 Definition
6
or the autocorrelation coefficient.
7
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
8
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
9
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
7
Yt = a + bT + et => et = Yt – a – bT is called the detrended series. If Yt is
nonstationary, while et is stationary, Yt is known as the trend (stochastic)
stationary (TSP). Here, the process with a deterministic trend is nonstationary but
not a unit root process.
10
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
.5
.4
.3
.2
.1
.0
-.1
-.2
500 1000 1500 2000
.3
.2
.1
.0
-.1
-.2
500 1000 1500 2000
11
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = Yt-1 + ut (1)
Y1 = Y0 + u 1
Y2 = Y1 + u2 = Y0 + u1 + u2
Y3 = Y2 + u3 = Y0 + u1 + u2 + u3
Y4 = Y3 + u4 = Y0 + u1 + … + u4
12
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = Yt-1 + ut = Y0 + u1 + … + ut
Yt Y0 ut (2)
therefore,
13
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
-4
-8
-12
-16
-20
50 100 150 200 250 300 350 400 450 500
.03
.02
.01
.00
-.01
-.02
-.03
500 1000 1500 2000
14
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = + Yt-1 + ut (4)
E(Yt) = Y0 + t.
2
Var(Yt) = t
Cov(Yt, Yt 1)
8
Corr(Yt,Yt-1) = ~
Var(Yt)Var(Yt 1)
15
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
30
25
20
15
10
-5
-10
50 100 150 200 250 300 350 400 450 500
10
-5
-10
-15
-20
-25
50 100 150 200 250 300 350 400 450 500
16
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
17
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
smpl 1 1
genr X=0
genr Y=0
genr Z=0
smpl 2 200
genr X=0.67*X(-1)+nrnd
genr Y=1.26*Y(-1)+nrnd
genr Z=Z(-1)+nrnd
18
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
smpl 1 200
plot X
plot Y
plot Z
-1
-2
-3
-4
25 50 75 100 125 150 175 200
19
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
1.6E+19
1.4E+19
1.2E+19
1.0E+19
8.0E+18
6.0E+18
4.0E+18
2.0E+18
0.0E+00
25 50 75 100 125 150 175 200
-5
-10
-15
-20
-25
25 50 75 100 125 150 175 200
20
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Xt = 1.1Xt-1
21
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = β1 + β2Xt + ut (7)
9
This was first introduced by Yule (1926), and re-examined by Granger and Newbold
(1974) using the Monte Carlo simulations.
22
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
23
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
24
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
10
-10
-20
Y
-30
-40
-50
-10 -5 0 5 10 15 20 25
25
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
(4.743) (8.572)
26
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
ut = Yt – β1 – β2Xt (10)
ut = Yt – β2Xt (11)
or
t t
ut eYi 2 eXi (12)
i 1 i 1
27
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
10
Based on the statistical tests such as ADF, PP, and KPSS.
28
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
(1) Are the data random? (This is usually used for the
diagnostic tests of forecasting models).
11
This is not explained in this lecture. You can make references from either
Gujarati (2003: 808-813), Hanke (2005: 60-74), or Nguyen Trong Hoai et al (2009:
Chapter 3, 4, and 8).
29
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
12
See Nguyen Trong Hoai et al, 2009 and my lecture about ARIMA models.
30
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
31
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
32
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
13
See Nguyen Trong Hoai et al, 2009 and my lecture about ARIMA models to understand
the standard error in time series econometrics s.e. = 1/ n .
33
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = Yt-1 + ut (13)
∆Yt = ( - 1)Yt-1 + ut
34
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Model 1% 5% 10%
35
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
The three possible forms of the ADF test are given by the
following equations:
p
Yt Yt 1 i Yt i ut (17)
i 1
14
This issue will be discussed later in this lecture.
36
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
p
Yt Yt 1 i Yt i ut (18)
i 1
p
Yt T Yt 1 i Yt i ut (19)
i 1
37
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
38
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
NO STOP: Conclude
= 0? that there is no
unit root
YES: Test for the
presence of the trend
NO
is = 0? NO STOP: Conclude
given that = 0? that Yt has a
= 0? YES
unit root
YES
is = 0? NO STOP: Conclude
given that = 0? that Yt has a
YES
= 0? unit root
YES
STOP: Conclude
that there is no
Estimate the model NO
unit root
p
Yt Yt 1 i Yt i ut
i 1
is = 0? YES STOP: Conclude
that Yt has a
Source: Asteriou (2007) unit root
39
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
2
T
S2t
(3) Calculate the test statistic KPSS = T 2
, and
s 1 ˆ
compare with critical value.
40
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
41
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
42
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
43
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
44
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
45
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
46
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
47
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt
B0 (22)
Xt
YT B0 B1
(23)
Xt 1 A1
Proof:
Yt
B0
Xt
Yt 1 Yt
A1 B1 = A1.B0 B1 (why?)
Xt Xt
Yt 2 Yt 1
A1 A1(A1.B0 B1) (why?)
Xt Xt
Yt 3 Yt 2
A1 A12(A1.B0 B1)] (why?)
Xt Xt
Yt 1 Yt
A1 A1(A1.B0 B1)] (why?)
Xt Xt
48
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Slr B0 [A1B0 B1] A1[A1B0 B1] A12(A1.B0 B1)] ... A1(A1.B0 B1)] (24)
A1Slr A1B0 A1[A1B0 B1] A12(A1.B0 B1)] ... A1(A1.B0 B1)] (25)
Slr – A1Slr = B0 + B1
B0 B1
Slr = = equation (23)
1 A1
A0 (B0 B1)
=> E(Yt) = E(Xt)
1 A1 (1 A1
= α + βE(Xt)
or simply to write:
Y* = α + βX* (26)
49
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt
B0 (27)
Xt
YT B0 B1 B2... Bq
(28)
Xt 1 A1 A2... Ap
Yt = A0 – (1–A1)Yt-1 + B0 Xt + (B0+B1)Xt-1 + ut
A0 (B0 B1)
= B0 Xt – (1–A1) Yt 1 Xt 1 + ut
(1 A1) (1 A1)
= B0 Xt – (1–A1) Yt 1 Xt 1 + ut
= B0 Xt – Yt 1 Xt 1 + ut (29a)
= B0 Xt – ECTt-1 + ut (29b)
50
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
6.1 Cointegration
51
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt = β1 + β2Xt + ut (30)
ût Yt ˆ ˆX (31)
1 2 t
52
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
53
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
9.2
9.0
8.8
8.6
8.4
8.2
8.0
7.8
7.6
25 50 75 100 125 150
LOG(PCE) LOG(PDI)
54
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
55
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
56
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Y* = α + βX* (26)
Yt = B1 Xt – Yt 1 Xt 1 + ut (29a)
or
Yt = B1 Xt – ECTt-1 + ut (29b)
15
We can easily expand this model to a more general case for large numbers of
lagged terms [ARDL(p,q)].
57
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
58
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
16
Depending on the kind of data used, say, annually, quarterly, or monthly.
59
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
60
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt ˆ ˆX ût
t
61
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
integrating parameter ˆ .
62
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
63
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
ls X c Y
or
ls Y c X
64
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
genr res1=resid
adf res1
for no lags, or
adf(4) res1
65
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
17
Nobel prize in economics 2012.
66
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
p p
Xt = A2 + B2Yt + EjYt j + FjXt j + u2t (33)
j 1 j 1
18
Gujarati (2011, pp.266) said that [from the point of view of forecasting] each
equation in VAR contains only its own lagged values and the lagged values of the
other variables in the system. Similarly, Wooldridge (2003, pp.620-621) said that
whether the contemporaneous (current) value is included or not depends partly on
the purpose of the equation. In forecasting, it is rarely included.
67
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
68
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
69
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
70
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt Yt 1 Yt 1
Xt 1 Xt 1 Xt 1 ut (33)
Wt Wt 1 Wt 1
or
71
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Yt Yt 1 11 12 Yt 1
11 21 31
Xt 1 Xt 1 21 22 Xt 1 ut (34)
12 22 32
Wt Wt 1 31 32 Wt 1
Yt 1
72
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Rank of Implications
73
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
19
Similar to EG approach, the Johansen’s approach also requires all variables in
the system are integrated of the same order 1 [I(1)].
74
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
+ 2 + 2t + ut (37)
In general five distinct models can be
considered. Although the first and the fifth
75
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
= 0).
Model 2: Intercept (no trend) in CE, no
intercept or trend in VAR ( 1 = 2 = 2 = 0).
Model 3: Intercept in CE and VAR, no trend in
CE and VAR ( 1 = 2 = 0).
Model 4: Intercept in CE and VAR, linear trend
in CE, no trend in VAR ( 2 = 0).
Model 5: Intercept and quadratic trend in CE,
intercept and linear trend in VAR.
76
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
77
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
78
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
79
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
80
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
81
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
82
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
X Y Z
83
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Doing the same for models 3 and 4 (in the untitled group
window select View/Cointegration Test) and simply change
the model by clicking next to 3 or 4. We get the results
as the following tables.
84
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
85
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
86
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
87
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
9. CAUSALITY TESTS
88
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
p p
Xt = A2 + Ej Yt j + Fj Xt j + u2t (41)
j 1 j 1
89
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
90
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
p
H1 : Dj 0 or Xt does cause Yt
j 1
91
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
(RSSR RSSU)/ p
F
RSSu /(N k)
where N is the included observations and k = 2p
+ 1 is the number of estimated coefficients in
the unrestricted model.
Step 5 If the computed F value exceeds the critical F
value, reject the null hypothesis and conclude
that Xt causes Yt.
20
However, this is not a good way of conducting Granger causality test (why?)
92
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
93
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
p p m
Xt A2 Ej Xt j Fj Yt j i Yt i u2t (44)
j 1 j 1 i 1
94
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
95
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
RSS(p) ln T
SIC(p) ln (p 1) (45)
T T
21
Others including FPE, HQ, and LR are also used in empirical studies.
96
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
RSS(p) 2
AIC(p) ln (p 1) (46)
T T
The difference between the AIC and the SIC is that the
term “lnT” in the SIC is replaced by “2” in the AIC, so
the second term in the AIC is smaller (why?). Stock and
Watson (2007) state that the second term in the AIC is
not large enough to ensure that the correct lag length is
chosen, even in large samples, so the AIC estimator of p
is not consistent.
97
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
98
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
99
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
RSS(K) ln T
SIC(K) ln K (47)
T T
RSS(K) 2
AIC(K) ln K (48)
T T
100
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
m m
Xt 0x 1xYt 1 2xXt 1 i Xt i j Yt j u2t (50)
i 1 j 1
101
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
2y 0.
102
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
103
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
104
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
105
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
106
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
107
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Others
108
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
109
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
REFERENCES
Asteriou, D. and Hall, S.G. (2007) Applied Econometrics:
A Modern Approach Using Eviews and Microfit, Revised
Edition. Palgrave Macmillan.
Cheung, Y.W. and Lai, K.S. (1995) ‘Lag Order and Critical
Values of the Augmented Dickey-Fuller Test’, Journal of
Business & Economic Statistics, Vol.13, No.3, pp.277-
280.
Dickey, D.A. and Fuller, W.A. (1979) ‘Distribution of the
Estimators for Autoregressive Time Series with a Unit
Root’, Journal of the American Statistical Association,
Vol.74, No.366, pp.427- 431.
Dickey, D.A. and Fuller, W.A. (1981) ‘Likelihood Ratio
Statistics for Autoregressive Time Series with a Unit
Root’, Econometrica, Vol.49, p.1063.
Diebold, F.X. (2004) Elements of Forecasting, 3rd Edition,
Thomson.
Dolado, J., T.Jenkinson and S.Sosvilla-Rivero. (1990)
‘Cointegration and Unit Roots’, Journal of Economic
Surveys, Vol.4, No.3.
Durbin, J. (1970) ‘Testing for Serial Correlation in
Least Squares Regression When Some of the Variables Are
Lagged Dependent Variables’, Econometrica, Vol.38,
pp.410-421.
Engle, R.F. and Granger, C.W.J. (1987) ‘Co-integration
and Error Correction Estimates: Representation,
Estimation, and Testing’, Econometrica, Vol.55, p.251–
276.
110
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
111
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
112
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
113
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
114
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
APPENDIX
STATA COMMANDS
Source: Practical exercises, Advanced Econometrics course
2012, Wageningen University, The Netherlands.
EXAMPLE 1
Use the data set WHEATOIL.dta, which contains (nominal)
prices of wheat (pwht), nominal oil prices (poil) and a
time indicator (t). The data are monthly and available
for the period Jan 1990 till December 2008 (19 years*12
months = 228 obs.). In this example, we will investigate
whether there is a long-run relationship between wheat
prices and oil prices. There may be all kinds of reasons
for such a relationship: oil is an important input in
fertilizer production, is used for applying machinery,
drives transportation costs, etc.
Please declare the data to be time-series data using the
following command:
tsset t
1. Create one graph with line plots of both pwht and poil
against t. Considering the line plot for pwht, do you
think this variable is stationary? Motivate your
answer.
115
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
100
300
80
250
pwht
poil
200
60
150
40
100
20
0 50 100 150 200 250
t
pwht poil
The graphs for both pwht and poil indicate that there are
stochastic trends (means are not constant) and their
variances are also not constant. For the pwht, it first
increases and highly fluctuates (from observation 1 to
about 70), followed by a declining period (from
observation about 70 to about 120) with less fluctuation,
then it tends to increase and especially decline very
quickly in the last months. Therefore, we might say that
pwht is not stationary.
116
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
ADF test
117
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
118
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
119
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
KPSS test
ADF test
120
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
KPSS test
121
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
ADF test
122
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
123
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
KPSS test
124
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
ADF test
KPSS test
125
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
126
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
127
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
150
100
Residuals
50
0
-50
128
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
129
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
130
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
131
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
132
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
133
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
134
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
EXAMPLE 2
We recall that:
Null hypothesis in Augmented Dickey Fuller test: time
series is not stationary
135
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
AUSTIN
136
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
137
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
138
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
139
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
DALLAS
140
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Both ADF and KPSS tests indicate that the housing price
in Dallas is non-stationary. We now test the stationarity
of its first-differenced data.
141
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
142
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
143
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
HOUSTON
144
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
Both ADF and KPSS tests indicate that the housing price
in Houston is non-stationary. We now test the
stationarity of its first-differenced data.
145
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
146
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
SAN ANTONIO
147
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
148
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
149
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
150
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
151
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
152
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
153
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
154
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
12 -0.040 0.742 No
155
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
41 -0.178 0.185 No
156
TOPICS IN TIME SERIES ECONOMETRICS
Phùng Thanh Bình
[email protected]
If the lags are 4, we can see that there are two long-run
cointegrating relationships between/among house prices
of: (i) Austin, Houston and San Antonio; and (ii) Dallas,
Houston, and San Antonio.
157