Академический Документы
Профессиональный Документы
Культура Документы
Econometrics
Example of Heteroskedasticity
f(y|x) y
.
x1 x2 x3
.
Econometrics
E(y|x) = 0 + 1x
x
4
Econometrics
Heteroskedasticity
Chapter 08
SSTx
Var 1 =
( )
2 (xi x ) i2
SST
2 x
(8.2),
2 i 2
( ) r u Est.Var ( ) = SSR
j
2 2 ij i 2 j
, (8.4)
( )
(xi x ) ui2
2
where rij is the i th residual from regressing x j on all other independent variables, and SSR j is the sum of squared residuals from this regression.
7 Econometrics 8
SSTx2
Econometrics
(8.3),
Cont. Robust
Standard Errors
( ) r u SSR
2 2 ij i 2 j
It is important to remember that these robust standard errors only have asymptotic justification.
With small sample sizes, t statistics formed with robust standard errors will not have a distribution close to the t, and inferences will not be correct.
Econometrics
10
A Robust LM Statistic
1. Run OLS on the restricted model and save the residuals . 2. Regress each of the excluded variables on all of
the included variables (q different regressions) and save each set of residuals 1, 2, , q 3. Regress a variable defined to be = 1 on 1 , 2 , , q , with no intercept. 4. The LM statistic is n SSR1, where SSR1 is the sum of squared residuals from this final regression.
Econometrics 11
Heteroskedasticity
Chapter 08
Fk ,n k 1 (8.15)
LM = n Ru22 k2
(8.16)
Econometrics
u 2 = 0 + 1 y + 2 y 2 + v (8.20) Regress the residuals squared on and 2 and use the R2 to form an F or LM statistic.
Note only testing for 2 restrictions now.
Econometrics 15
Econometrics
17
Heteroskedasticity
Chapter 08
Feasible GLS
The form of the heteroskedasticity is unknown in most cases, so we need to estimate h(xi). Typically, we start with the assumption of a fairly flexible model, such as
Var(u|x) = 2exp(0 + 1x1 + + kxk). (8.30) Our assumption implies that u2 = 2exp(0 + 1x1 + + kxk)v where E(v|x) = 1, then E(v) = 1
Econometrics 19
Cont.
Feasible GLS
Summing up,
1.
2.
3.
Run the original OLS model, save the residuals, , square them and take the log Regress ln(2) on all of the independent variables and get the fitted values, Do WLS using 1/exp() as the weight
Econometrics 20
WLS Wrapup
When doing F tests with WLS, form the weights from the unrestricted model and use those weights to do WLS on the restricted model as well as the unrestricted model. Remember we are using WLS just for efficiency OLS is still unbiased & consistent. Estimates will still be different due to sampling error, but if they are very different then its likely that some other Gauss-Markov assumption is false.
Econometrics 21
Logarithm in Heteroskedasticity
Under heteroskedasticity, we assume:
Var[yi|xi] = E[yi E[yi|xi] |xi]2 = i2 (a.1) E[yi|xi] = 0 + 1xi i. (a.2)
By Taylor series expansion, we can get Here, since f(i) can be treated as nonrandom variable under conditional x,
E[f(yi)|xi] = f(i).
Econometrics
(a.3)
(a.4)
22
Cont.
Logarithm in Heteroskedasticity
Var[f(yi)|xi] = E[f(yi) E[f(yi)|xi] |xi]2 (a.1) = E[f(yi) f(i) |xi]2 (a.4) = E[f(i)(yi i) |xi]2 (a.3) 2}E[(y ) |x ]2 = {f(i) i i i = {f(i)}2i2 (a.1) If we assume f(yi) = ln(yi) & i2 = 2E[yi|xi]2, {f(i)}2i2 = {1/i}22i2 (a.2) = 2 (Homoskedasticity)
Econometrics 23
Heteroskedasticity