Kalpana Kalpana (Editor)

Heteroscedasticity consistent standard errors

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

The topic of heteroscedasticity-consistent (HC) standard errors arises in statistics and econometrics in the context of linear regression as well as time series analysis. These are also known as Eicker–Huber–White standard errors (also Huber–White standard errors or White standard errors), to recognize the contributions of Friedhelm Eicker, Peter J. Huber, and Halbert White.

Contents

In regression and time-series modelling, basic forms of models make use of the assumption that the errors or disturbances ui have the same variance across all observation points. When this is not the case, the errors are said to be heteroscedastic, or to have heteroscedasticity, and this behaviour will be reflected in the residuals u i ^ estimated from a fitted model. Heteroscedasticity-consistent standard errors are used to allow the fitting of a model that does contain heteroscedastic residuals. The first such approach was proposed by Huber (1967), and further improved procedures have been produced since for cross-sectional data, time-series data and GARCH estimation.

Definition

Assume that we are studying the linear regression model

Y = X β + U ,

where X is the vector of explanatory variables and β is a k × 1 column vector of parameters to be estimated.

The ordinary least squares (OLS) estimator is

β ^ O L S = ( X X ) 1 X Y .

where X denotes the matrix of stacked X i values observed in the data.

If the sample errors have equal variance σ2 and are uncorrelated, then the least-squares estimate of β is BLUE (best linear unbiased estimator), and its variance is easily estimated with

v O L S [ β ^ O L S ] = s 2 ( X X ) 1 , s 2 = i u ^ i 2 n k

where u ^ i are regression residuals.

When the assumptions of E [ u u ] = σ 2 I n are violated, the OLS estimator loses its desirable properties. Indeed,

V [ β ^ O L S ] = V [ ( X X ) 1 X Y ] = ( X X ) 1 X Σ X ( X X ) 1

where Σ = V [ u ] .

While the OLS point estimator remains unbiased, it is not "best" in the sense of having minimum mean square error, and the OLS variance estimator v O L S [ β ^ O L S ] does not provide a consistent estimate of the variance of the OLS estimates.

For any non-linear model (for instance Logit and Probit models), however, heteroscedasticity has more severe consequences: the maximum likelihood estimates of the parameters will be biased (in an unknown direction), as well as inconsistent (unless the likelihood function is modified to correctly take into account the precise form of heteroscedasticity). As pointed out by Greene, “simply computing a robust covariance matrix for an otherwise inconsistent estimator does not give it redemption.”

Eicker's heteroscedasticity-consistent estimator

If the regression errors u i are independent, but have distinct variances σi2, then Σ = diag ( σ 1 2 , , σ n 2 ) which can be estimated with σ ^ i 2 = u ^ i 2 . This provides White's (1980) estimator, often referred to as HCE (heteroscedasticity-consistent estimator):

v H C E [ β ^ O L S ] = 1 n ( 1 n i X i X i ) 1 ( 1 n i X i X i u ^ i 2 ) ( 1 n i X i X i ) 1 = ( X X ) 1 ( X diag ( u ^ 1 2 , , u ^ n 2 ) X ) ( X X ) 1 ,

where as above X denotes the matrix of stacked X i values from the data. The estimator can be derived in terms of the generalized method of moments (GMM).

Note that also often discussed in the literature (including in White's paper itself) is the covariance matrix Ω ^ n of the n -consistent limiting distribution:

n ( β ^ n β ) d N ( 0 , Ω ) ,

where,

Ω = E [ X X ] 1 V a r [ X u ] E [ X X ] 1 ,

and

Ω ^ n = ( 1 n i X i X i ) 1 ( 1 n i X i X i u ^ i 2 ) ( 1 n i X i X i ) 1 = n ( X X ) 1 ( X diag ( u ^ 1 2 , , u ^ n 2 ) X ) ( X X ) 1 .

Thus,

Ω ^ n = n v H C E [ β ^ O L S ]

and

V a r ^ [ X u ] = 1 n i X i X i u ^ i 2 = 1 n X diag ( u ^ 1 2 , , u ^ n 2 ) X .

Precisely which covariance matrix is of concern should be a matter of context.

Alternative estimators have been proposed in MacKinnon & White (1985) that correct for unequal variances of regression residuals due to different leverage. Unlike the asymptotic White's estimator, their estimators are unbiased when the data are homoscedastic.

Software

  • EViews: EViews version 8 offers three different methods for robust least squares: M-estimation (Huber, 1973), S-estimation (Rousseeuw and Yohai, 1984), and MM-estimation (Yohai 1987).
  • R: the sandwich package via the vcovHC() command.
  • RATS: robusterrors option is available in many of the regression and optimization commands (linreg, nlls, etc.).
  • Stata: robust option applicable in many pseudo-likelihood based procedures.
  • References

    Heteroscedasticity-consistent standard errors Wikipedia