Models, Testing, and Correction of Heteroskedasticity

Models, Testing, and Correction of Heteroskedasticity

Models, Testing, and Correction of Heteroskedasticity James L. Powell Department of Economics University of California, Berkeley Aitken’s GLS and Weighted LS The Generalized Classical Regression Model (in Goldberger’s (1990) terminology) has E(y X)=Xβ, V(y X)=Σ, | | where the matrix Σ is not proportional to an identity matrix. The special case of a heteroskedastic linear model assumes Σ is a diagonal matrix, i.e., 2 Σ = diag[σi ] 2 for some variances σ ,i=1,...,N which can vary across observations (usually as some functions of xi). { i } For example, in the grouped-data regression model yij = xij0 β + εij,j=1,,,,.Mi,i=1,...,N, 1 1 where only the group average values yi yij and xi xij are observed, the diagonal ≡ Mj j ≡ Mj j 2 2 elements of the Σ matrix are of the form σi = σP/Mi. P When the diagonal elements of Σ are known (as in the grouped-data regression model), we can transform the data to satisfy the conditions of the Classical Regression Model; the Classical Least Squares Estimator applied to the transformed data yields the Generalized Least Squares Estimator, which in this case reduces to Weighted Least Squares (WLS): ˆ 1 1 1 βWLS =(X0Σ− X)− (X0Σ− y) 1 =argmin(y Xc)0Σ− (y Xc) c − − N 2 arg min wi(yi x0 c) , ≡ c − i i=1 X 2 where wi 1/σ . That is, each term in the sum of squares is weighted by the inverse of its error variance. ≡ i IfthecovariancematrixΣ involves unknown parameters (aside from a constant of proportionality), then 1 this estimator isn’t feasible; to construct a Feasible WLS estimator for β, replacing an estimator Σˆ for the 2 unknown Σ, we need a model for the variance terms Var(yi)=σi . Multiplicative Heteroskedasticity Models Virtually all of the applications of Feasible WLS assume a multiplicative heteroskedasticity model, in which the linear model yi = xi0 β + ui has error terms of the form ui ciεi ≡ 2 for εi i.i.d., E(εi)=0,V(εi)=σ . (If the errors are normally distributed given xi, then this representa- ∼ 2 tion is always available.) Also, it is almost always assumed that the heteroskedasticity function ci has an underlying linear (or “single index”) form, 2 ci = h(zi0 θ), The variables zi are some observable functions of the regressors xi (excluding a constant term); and the function h( ) is normalized so that h(0) = 1 with a derivative h ( ) assumed to be nonzero at zero, h (0) =0. · 0 · 0 6 Here are some examples of models which fitintothisframework. (1) Random Coefficients Model: The observable variables xi and yi are assumed to satisfy yi = αi + xiβi, 2 where αi and βi are jointly i.i.d. and independent of xi, with E[αi]=α, E[βi]=β,Var(αi)=σ , V(βi)=Γ, C(αi, βi)=γ. Defining ui =(αi α)+x0 (β β), − i i− the regression model can be rewritten in standard form as yi α + x0 β + ui, ≡ i with E(ui xi)=0, | 2 V (ui xi)=σ +2x0 γ + x0 Λxi | i i 2 σ (1 + z0 θ), ≡ i 2 where zi has the levels and cross-products of the components of the regression vector xi. When αi and βi are jointly normal, it is straightforward to write the error term ui as a multiple of an i.i.d error term 2 εi N(0,σ ), as for the multiplicative heteroskedasticity model. ∼ (2) Exponential Heteroskedasticity: Here it is simply assumed that ci =exp x θ/2 , so that { i0 } 2 2 σ = σ exp x0 θ , i { i } with zi xi. ≡ (3) Variance Proportional to Square of Mean: Assume yi = α + xi0 β + εi, 2 2 with E(εi xi)=0,V(εi xi)=γ (α + x β) ,sothat | | i0 2 2 2 σi = σ (1 + xi0 θ) , for σ2 γ2/α2 and β θ/α (assuming α =0). ≡ ≡ 6 “Squared Residual Regression” Tests for Heteroskedasticity For these models, a diagnostic test of heteroskedasticity reduces to a test of the null hypothesis H0 : 2 2 2 2 2 ci 1 H0 : θ = 0. Under H0,E(ε )=E(u )=σ and V (ε )=V (u ) τ for some τ>0.Thus,the ≡ ⇐⇒ i i i i ≡ null hypothesis generates a linear model for the squared error terms, 2 2 ε σ + z0 δ + ri, i ≡ i where E(ri zi)=0,V(ri zi) τ,andthetrueδ = 0 under H0 : θ = 0. (A Taylor’s series expansion would | | ≡ suggest that δ = h (0) θ if θ = 0.)Ifε2 were observed, we could test δ = 0 in usual way; since it isn’t, ∼ 0 · ∼ i 2 2 we can use the squared values of the least squares residuals e (yi x βˆ) in their place, since these are i ≡ − i0 consistent estimators of the true squared errors. The resulting test, termed the ”Studentized LM Test” by Koenker (1981), is a modification of the Score or Lagrange Multiplier (LM) test for heteroskedasticity proposed by Breusch and Pagan (1979). The steps to carry out this test of H0 : θ = 0 are: (1) Construct the squared least squares residuals 2 2 e (yi x0 βˆ) , i ≡ − i 3 ˆ 1 where β =(X0X)− X0y; 2 2 (2) Regress the squared residuals ei on 1 and zi,andobtaintheR from this “squared residual regression.” (3) To test H0 : θ = 0 = δ, we can use the test statistic T NR2; ≡ d 2 under H0,T χ (p),wherep =dim(δ)=dim(zi),sowewouldrejectHo if T exceeds the upper critical → value of a chi-squared variate with p degrees of freedom. (3’) A more familiar variant would use the “F” statistic R 2/p =(N K) A F (p, N K), F − 1 R 2 ∼ − − 2 which should have = T/p for large N (since (N p)/N = 1 and, under H0, 1 R = 0). Critical values F ∼ − ∼ − ∼ from the F tables rather than the chi-squared tables would be appropriate here, though the results would converge to the corresponding chi-squared test results for large N. (3”) When the error terms εi are assumed to be normally distributed, Breusch and Pagan (1979) showed that the Score test statistic for the null hypothesis that θ =0is of the form RSS S , ≡ 2ˆσ4 where N 2 RSS [(z z)0ˆδ] ≡ i− i=1 X is the “regression (or explained) sum of squares” from the squared residual regression and N 1 σˆ2 e2 ≡ N i i=1 X is the ML estimator of σ2 under the null of homoskedasticity. For the normal distribution, τ Var(ε2)= ≡ ι 2 4 2[Var(εi)] =2σ ; more generally though, no such relation exists between the second moment and τ = E(ε4) σ4. It is straightforward to show that the Studentized LM test statistic can be written in the form i − RSS T , ≡ τˆ 4 for 1 N τˆ e4 σˆ4 ≡ N i − i=1 X 2 which is the same form as the Score test with a more general estimator for Var(εi ). Feasible WLS If the null hypothesis H0 : θ = 0 is rejected, a ”correction for heteroskedasticity” (either by Feasible WLS or a heteroskedasticity-consistent covariance matrix estimator for LS) is needed. To do Feasible WLS, 2 2 2 we can use fact that E(ε xi) σ = σ h(z θ), which is a nonlinear regression model for the squared i | ≡ i · i0 2 error terms εi . This proceeds in two steps: 2 2 2 2 (i) Replace εi by ei ∼= εi , and then estimate θ (and σ ) by nonlinear LS (which, in many cases, can be reduced to linear LS). ˆ ˆ (ii) Do Feasible WLS using Ω = diag[h(zi0 θ)]; that is, replace yi and xi with 1/2 y∗ yi/ h(z θˆ), x∗ = xi [h(z0 θˆ)]− , i ≡ i0 i · i q 2 2 anddoLSusingyi∗,xi∗.Ifσi = σ h(zi0 θ) is a correct specification of heteroskedasticity, the usual standard errors formulae for LS using the transformed data will be (asymptotically) correct. Some examples of the first step for particular models are as follows: (1) Random Coefficients Model: Since 2 V (εi xi)=σ +2x0 γ + x0 Λxi | i i 2 = σ (1 + zi0 θ) 2 σ + z0 δ, ≡ i yields the linear regression model 2 i = σ + zi0 δ + vi 2 2 2 with E[vi zi]=0, regress e on a constant and zi to estimate σ and δ = θ σ . | i · (2) Exponential Heteroskedasticity: When 2 2 ε = u exp x0 θ , i i { i } 5 we can take logarithms of both sides to obtain 2 2 log(εi )=log(ui )+xi0 θ, and, making the additional assumption that ui is independent of xi (not just zero mean and constant 2 variance), we get that E[log(ε )] = α + x θ,whereα E[log(ui)], i.e., i i0 ≡ 2 log(εi )=α + xi0 θ + vi with E(vi xi) 0, so we would regress ln(ei) on a constant and xi to get the preliminary estimator θ˜. | ≡ (3) Variance Proportional to Square of Mean:Here 2 2 2 2 σ = E(ε xi)=γ (α + x0 β) , i i | i where α and β are already estimated by the intercept term αˆ and slope coefficients βˆ of the classical LS ˆ ˆ 2 estimator b. Since γ is just a scaling factor common to all observations, we can take h(zi0 θ)=(ˆα + xi0 β) . Consistent Asymptotic Covariance Matrix Estimation A possible problem with the use of Feasible WLS is that the form of the true heteroskedasticity may be misspecified, i.e., σ2 = h(z θ).

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    8 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us