Professional Documents
Culture Documents
Feng Li
Department of Statistics, Stockholm University
Econometrics
2/1
An OLS example
xi yi
2
2 = 2 , Var(
2 ) = 2 .
xi
xi
If the error term ui is homoscedastic with variance 2i , we have
2 2
x
xi yi
2
2 = 2 , Var(
2 ) = i2 i2 2 .
xi
( xi )
xi
why? see Appendix 11A.1.
But it is not best anymore, i.e. will not grant the minimum variance.
Econometrics
3/1
Yi = 1 X
0i + 2 X1i + ui ,
and u
i = ui /i is the new error term for the new model.
Var(ui /i ) = 1 is now a constant. why?
We call
1 2 as GLS estimators
Yi =
1 X0i + 2 X1i ,
Econometrics
4/1
2 X )2
1 X
((
ui )2 ) = (Yi
1i
0i
which is done by the usual way we have done in OLS.
The GLS estimator of 2 is
wi Xi Yi wi Xi wi Yi
i
2 = w
wi wi X2i ( wi Xi )2
and the variance is
2 =
Var
wi
wi
wi X2i
wi Xi )2
where wi = 1/2i .
When wi = w = 1/2 , the GLS estimator will reduce to the OLS estimator.
Can you prove this?
= Y
X
= ( wi Xi )/ (wi ).
where Y = ( wi Yi )/ (wi ), X
1
2
At this particular setting wi = 1/2i , we call this is weighted least squares
(WLS) which is a special case of GLS.
is unbiased and Var(
) Var(
2 ).
2
2
Feng Li (Stockholm University)
Econometrics
5/1
wi xi yi
2
wi xi
and
Var (2 ) =
1
wi xi
2
where
, y = Yi Y
xi = Xi X
i
See Exercise 11.5.
Econometrics
6/1
Option 1: Apply the general GLS formula in p.5 to obtain the estimators.
Option 2: Use OLS to regress Y/i with 1/i and Xi /i without intercept.
Econometrics
7/1
Econometrics
8/1
Suppose there are heteroscedastic but we insist using OLS. What will go
wrong? whatever conclusions we draw may be misleading.
We could not establish confidence intervals and test hypotheses with usual t,
F tests.
The usual tests are likely to give larger variance than the true variance.
by OLS is a biased estimator of the true
The variance estimator of
variance.
2
i /(n 2) is biased.
The usual estimator of 2 which was u
Econometrics
9/1
Econometrics
10 / 1
Econometrics
11 / 1
Normal QQ Plot
Sample Quantiles
Theoretical Quantiles
Econometrics
12 / 1
H0 : No heteroscedasticity.
Consider Yi = 1 + 2 X2i + 3 X3i + ui , (other models are the same)
i.
step 1: Do the OLS to obtain the residuals u
step 2: Run the following model with the covariates and their crossproducts
21 = 1 + 2 X2i + 3 X3i + 4 X22i + 5 X23i + 6 X2i X3i + vi
u
and obtain R2 .
step 3: nR2 2 (k 1) where k is no. of unknown parameters in step 2.
step 4: If 2obs (k 1) 2crit (k 1), reject H0 .
Question: How do Whites test with Yi = 1 + 2 X2i + 3 X3i + 4 X4i + ui ?
Econometrics
13 / 1
2i = 5.8+2.5 ln X2i +0.69 ln X3i 0.4(ln X2i )2 0.04(ln X3i )2 +0.002 ln X2i ln X3i
u
and R2 = 0.1148.
Can you compute the whites test statistic?
What is your conclusion of heteroscedasticity?
Econometrics
14 / 1
Econometrics
15 / 1
Econometrics
16 / 1
?
and Var(ui / Xi ) = 2 . Why?
If Var(ui ) = 2 [E(Yi )]2 (Xi 0), do OLS with model
Yi
1
ui
= 2 + 1 +
Yi
Yi
Yi
Econometrics
17 / 1