Heteroskedasticity-consistent standard errors
Heteroskedasticity-consistent standard errors (HC standard errors) are standard-error estimators used in regression analysis to provide inference that is robust to heteroskedasticity of the regression errors.
In an ordinary least squares (OLS) regression:
the conventional OLS covariance matrix assumes that the conditional variance of the error term is constant:
Under heteroskedasticity, this assumption may not hold:
HC estimators replace the conventional homoskedastic covariance estimate with an estimator that allows the error variance to differ across observations.
Basic formulation
The general heteroskedasticity-robust covariance estimator has the sandwich form:
where:
- = OLS coefficient estimates;
- = design matrix;
- = estimated covariance matrix of the regression errors;
- = estimated covariance matrix of the OLS coefficients.
The resulting standard error for coefficient is:
HC0 estimator
The original heteroskedasticity-consistent estimator, commonly called HC0, uses the squared OLS residuals to estimate observation-specific error variances.
The covariance estimator is:
where:
and is the OLS residual for observation .
Equivalently:
where is the vector of explanatory variables for observation .
HC1 estimator
HC1 applies a degrees-of-freedom adjustment to HC0:
where:
- = number of observations;
- = number of estimated regression coefficients, including the intercept where applicable.
HC1 is closely related to the conventional finite-sample degrees-of-freedom adjustment used in OLS variance estimation.
HC2 and HC3 estimators
HC2 and HC3 adjust the residual contribution using the leverage of each observation.
The leverage of observation is:
The HC2 residual adjustment is:
The corresponding estimator can be written as:
HC3 applies a stronger leverage adjustment:
giving:
HC3 is often used when observations may have substantial leverage or when the sample is relatively small.
HC4 and later estimators
Additional estimators, including HC4, HC4m, and HC5, apply alternative adjustments for observations with high leverage.
These estimators are designed to reduce the influence of observations whose leverage may cause the HC covariance estimator to underestimate sampling variability.
The exact adjustment differs among the estimators.
Purpose
HC standard errors are designed primarily to improve statistical inference when the OLS error variance is not constant.
They can be used to calculate:
- robust standard errors;
- confidence intervals;
- t-statistics;
- hypothesis tests.
The OLS coefficient estimates themselves are generally unchanged when conventional standard errors are replaced with HC standard errors.
Thus:
while:
and consequently:
Example
Suppose an OLS regression estimates:
and the estimated coefficient is:
Suppose the conventional standard error is:
The conventional t-statistic for testing:
is:
If heteroskedasticity-consistent estimation produces:
then the coefficient remains:
but the robust t-statistic becomes:
Thus, robust standard errors can materially affect statistical inference without changing the estimated regression coefficient.
Limitations
Heteroskedasticity-consistent standard errors do not solve every regression problem.
They do not, by themselves, correct for:
- Omitted-variable bias;
- endogeneity;
- measurement error;
- incorrect functional form;
- Multicollinearity;
- Autocorrelation or other serial dependence unless an appropriate covariance estimator is used;
- non-stationarity;
- structural breaks.
HC standard errors are therefore a correction to the estimated covariance matrix rather than a replacement for appropriate model specification.
Heteroskedasticity versus autocorrelation
HC standard errors are primarily designed for heteroskedasticity where observations are otherwise appropriately treated as independent.
When regression errors are both heteroskedastic and serially correlated, a covariance estimator designed to account for both features may be required, such as a suitable NeweyβWest estimator in applicable time-series settings.
The distinction can be summarized as: