Econometric Lec6
Econometric Lec6
6
LECTURE
1
CHAPTER 12
Autocorrelation
or
Serial Correlation
2
Time Series Data
3
4
Decomposition of time series
Xt Trend
Cyclical or
seasonal
random
time
5
THE NATURE
OF
AUTOCORRELATION
6
The nature of problem
7
More details of related assumption
• The Classical Model assumes that the disturbance term
relating to any observation is not influenced by the
disturbance term relating to any other observation.
• This assumption is more related to time-series data.
• Examples :
o When regressing a model of output depending on labor
and capital inputs, if there is a labor strike affecting
output this quarter, there is no reason to believe that this
disruption will be carried over to the next quarter.
o If output is lower this quarter, there is no reason to expect
it to be lower next quarter
8
Assumption is violated Autocorrelation
• The above formula means that the values of the error term
are not independent, that is, that the error in one period in
some way influences the error in another period.
9
Definition: First-order of Autocorrelation, AR(1)
Yt = 1 + 2 X2t + ut t = 1,……,T
-1 < < 1 12
^u ^u
i
x i
x x
x
x x
x x
x x
0 time 0 time
x x
x
x x
x x
^ui
x x x x x
x time
x x x
x x x x x
The current error term tends to have the opposite sign from the previous.
^u
i
x x x
x x x x x xx x x x
0 x time
x x x x x x x x
x x x
x
The current error term tends to be randomly appeared from the previous.
14
The error term at time t is a linear combination
of the current and past disturbance.
15
The Consequences of
Serial Correlation
16
The consequences of serial correlation:
^
2. The variances of the k is no longer the smallest
^
3. The standard error of the estimated coefficient, Se(k)
becomes large
17
Two variable regression model: Yt = 1 + 2X2t + ut
^ xy
The OLS estimator of ===> 2 =
2, x2
^ )= 2
If E (ut ut-1) = 0 then Var ( 2
xt2
If E(utut-1) 0, and ut = ut-1 + vt , then
2
E(utut-1) =
1 - 2
20
• Durbin-Watson d Test
• The Breusch-Godfrey (BG) test of
higher order autocorrelation
• Durbin h-test
21
Gujarati(2003) Table12.4, pp.460
How to detect autocorrelation ?
22
Run OLS: uˆt uˆt 1 vt and check the t-value of the coefficient
DW 0.122904
0.914245 ˆ 1 1 0.9385
2 2
23
Durbin-Watson Autocorrelation test
From OLS regression result: where d or DW* = 0.1229
dL = 1.442 H0 : no autocorrelation
du = 1.544 =0
H1 : yes, autocorrelation exists.
Reject or > 0
H0
region positive autocorrelation
dL du
0 1.442 1.544 2
DW*
24
0.1229
Durbin-Watson test
OLS : Y = 1 + 2 X2 + …… + k Xk + ut
obtain ^ut , DW-statistic(d)
Assuming AR(1) process: ut = ut-1 + vt
I. H0 : = 0 no autocorrelation
-1 < < 1 H1 : > 0 yes, positive autocorrelation
DW*
Compare d* and dL, du (critical values)
• Example 1 :
The DW = 1.8756; N=23; K’=2 excluding the intercept
The critical values are DL=1.168 DU=1.534 at 5%
In this case we would not reject the null hypothesis of no
autocorrelation since 1,534 < 1, 8756 < 4-1,534
• Example 2:
The DW=0.1380; N=32; K’=1 (explanatory variable)
The critical values are DL=1.37 DU=1.50 at 5%
In this case, we can not reject the hypothesis that there is
positive serial correlation in the residuals since
0.1380 < 1.37
26
Durbin-Watson test(Cont.)
T
^ -^
(u t ut-1)
2
d = 2 (1- ^
)
DW = t=2
2 (1 - ^)
T
^
ut2 d ^
(d) ==> =1-
t=1 2
d
==> ^ = 1-
2
^1
Since -1
implies 0 d 4
27
Durbin-Watson test(Cont.)
II. H0 : =0 no negative autocorrelation
H1 : < 0 yes, negative autocorrelation
if dL (4 - d) du
or 4 - du d 4 - dL ==> inconclusive
28
Durbin-Watson test(Cont.)
II. H0 : =0 No autocorrelation
H1 : 0 two-tailed test for auto correlation
either positive or negative AR(1)
If d < dL
==> reject H0
or d > 4 - dL
If dL d du
==> inconclusive
or 4 - du d 4 - dL
29
H0 : = 0 H0 : = 0
negative autocorrelation
positive autocorrelation H1 : < 0
H1 : > 0
reject reject
H0 H0
not not
reject reject
inconclusive inconclusive
dL du 2 4-du 4-dL 4 DW
0 (d)
1.372 1.546 2.45 2.63 1% & 5%
1.525 1.703 2.297 2.475 Critical values
0.23 30
For example :
UM^ = 23.1 - 0.078 CAP - 0.146 CAP + 0.043T
t t t-1 t
(15.6) (2.0) (3.7) (10.3)
_
R2 = 0.78 F = 78.9 ^u = 0.677 RSS = 29.3 DW = 0.23 n = 68
observed
(i) K’ = 3 (number of independent variable)
.
..
.
..
1980 235 20
missing 81 N.A. N.A.
82 N.A. N.A.
93 253 37
94 281 41
32
95
.
..
.
..
Durbin h Test
33
Lagged Dependent Variable and Autocorrelation
n
Durbin-h Test: Compute
h =^
*
^1)
1 - n*Var (
34
The Breusch-Godfrey (BG) or
Lagrange Multiplier test of higher
order autocorrelation
35
Breusch-Godfrey (BG) test of higher-order autocorrelation
or called Durbin’s m test (Lagrange Multiplier, LM, Test)
Test Procedures:
(1) Run OLS and obtain the residuals ^ ut.
(2) Run ^ut against all the regressors in the model
plus the additional regressors, u^t-1, u^t-2, u^t-3,…, u^t-p.
^ ^ ^ ^
u = + X + u + u + u + … + u^+ v
t 1 2 t t-1 t-2 t-3 t-p
37
Compare with
the critical values
Check on the
t-statistics
To see
The order of
autocorrelation
38
REMEDIAL MEASURES
1. First-difference transformation
2. Add T = trend
3. Cochrane-Orcutt Two-step procedure (CORC)
4. Cochrane-Orcutt Iterative Procedure
5. Generalized least Squares
6. Durbin’s Two-step method
39
Remedy: 1. First-difference transformation
Yt = 1 + 2 Xt + ut
Yt-1 = 1 + 2 Xt-1 + ut-1 assume = 1
==> Yt - Yt-1 = 1 - 1 + 2 (Xt - Xt-1) + (ut - ut-1)
==> Yt = 2 Xt + ut
no intercept
Yt = 1 + 2 Xt + 3 T + ut 2. Add T = trend
Yt-1 = 1 + 2 Xt-1 + 3 (T -1) + t-1
==> (Yt - Yt-1) = (1 - 1) + 2(Xt - Xt-1) + 3[T - (T -1)] + (ut - ut-1)
==> Yt = 2 Xt + 3*1 + u’t
==> Yt = 1* + 2 Xt + u’t
If ^
1* > 0 => an upward trend in Y
40
^
(2 > 0)
3. Cochrane-Orcutt Two-step procedure (CORC)
(1). Run OLS on
Yt = 1 + 2 Xt + ut
and obtains ^
t
Generalized
Least Squares
(2). Run OLS on ^u = ^
ut-1 + vt
t (GLS)
and obtains ^
method
^ )= (1-)
(Yt - Y ^ +2(Xt - X
^ t-1) + (ut -u
^ t-1)
t-1 1
41
4. Cochrane-Orcutt Iterative Procedure
(5). If DW test shows that the autocorrelation still existing, than
it needs to iterate the procedures from (4). Obtains the ut*
(6). Run OLS
^
ut* = u^t-1* + vt’ ^
^ DW2
(1 - )
2
and obtains ^ ^
which is the second-round estimated
^
(7). Use the ^ to transform the variable
^
Yt = Yt - ^Yt-1
**
Yt = 1 + 2 Xt + ut
^ ^ ^
^ ^ ^
^
X = Xt - Xt-1
t
**
Yt-1 = 1 + 2 Xt-1 + u^t-1
^ ^
(8). Run OLS on
Yt** = 1** + 2** Xt** + ut**
^
^ ^ ^ ^
^
Where is (Yt - Yt-1) = 1 (1 - ) + 2 (Xt - Xt-1) + (ut - ut-1)
42
Cochrane-Orcutt Iterative procedure(Cont.)
(9). Check on the DW3 -statistic, if the autocorrelation is still
existing, than go into third-round procedures and so on.
^ ^
^
^ - ^ < 0.01) the estimated ’s differs a little.
Until (
.
…..
.
…..
.
…..
.
…..
.
…..
Yt* = Yt - ^ Yt-1 ; Xt* = Xt - ^ Xt-1
44
6. Durbin’s Two-step method : Yt = 1 + 2 Xt + ut
46
Example: Gujarati(2003) Table 12-4, p.460
Wage(Yt) = 1 + 2 Output(Xt) + ut
DW 2(1 - )
^
0.1229 2(1-0.9385)
47
ut = ut-1+ vt
^ 1 - DW
2
0.9142 (1- 0.0614)
48
Cochrane-Orcutt Two-step procedure (2)
Critical values:
Du=1.337
DL=1.237
Since DW > Du
No
Autocorrelation
After CO-correction
49
Running the Cochrane-Orcutt iterative procedure in EVIEWS
50
^
^
51
THE END
52