Robust OLS (OLS with Robust Standard Errors)

Econometrics
Introduced by
Halbert White
Year
1980
Type
Linear regression with robust inference
Family
Econometrics / time series

What does it do?

Robust OLS applies ordinary least squares to estimate the coefficients and then replaces the classical standard errors with heteroscedasticity-consistent (HC) standard errors, commonly called White standard errors.

The point estimates are unchanged, while the t-statistics and confidence intervals remain asymptotically valid when the error variance differs across observations.

The intuition behind the method

OLS chooses the same coefficients whether or not the residuals are equally spread. The classical formula for the coefficient standard errors, however, assumes a single common error variance. When some observations have much larger errors than others (heteroscedasticity), that formula can understate or overstate the true uncertainty, so t-tests and confidence intervals become unreliable. Robust OLS keeps the coefficients and instead estimates the variance of those coefficients directly from each observation's squared residual, without assuming a particular pattern of variance. Only the uncertainty around the estimates is corrected.

History

The foundational result is due to Halbert White (1980). He proposed a covariance matrix estimator for OLS coefficients that remains consistent under heteroscedasticity of unknown form, without requiring a formal model of the variance structure. The same paper compares this estimator with the usual one and uses the difference as a direct test for heteroscedasticity.

When to use it

Use robust OLS when you want to estimate a linear regression and make inference about its coefficients, and when residual diagnostics or theory suggest that the error variance may vary across observations. It fits cross-sectional data, such as wage or firm-level equations, and time-series regressions in which autocorrelation has been ruled out or handled separately. The sample should be large enough for the asymptotic approximation to be reasonable; in small samples the HC2 or HC3 variants are preferable and the results should be read with caution. Do not use it when the variance structure is known or can be modelled and efficiency matters, because weighted least squares or generalised least squares will give more precise estimates. It is also not a remedy for autocorrelation or clustering, which need HAC or cluster-robust errors, for endogeneity, or for outliers, which call for robust regression.

Limitations and considerations

  • Standard errors are only asymptotically valid; in small samples they can remain unreliable even after HC corrections.
  • Robust standard errors can be larger or smaller than the classical ones, so a coefficient may gain or lose statistical significance when the correction is applied. Reporting both versions makes the effect of the correction visible.
  • Does not improve the efficiency of the coefficient estimates. If the variance structure is known, weighted least squares or generalised least squares gives tighter estimates.
  • Plain White standard errors assume independent observations. Clustered or autocorrelated errors need cluster-robust or HAC standard errors instead.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Provides asymptotically valid standard errors under heteroscedasticity of unknown form, without requiring a model for the variance.
  • Coefficient estimates are identical to standard OLS, so the corrections affect only inference.
  • Is widely used in applied microeconometric work, where heteroscedasticity is a common concern.
  • Small-sample HC variants (HC2, HC3) can reduce the size distortion of the uncorrected White estimator in moderate samples.
  • Implementation is straightforward and is available in most common econometric software.

Applications

  • Wage and earnings equations in labour economics, where residual dispersion may grow with education or income.
  • Firm-level regressions in corporate finance and industrial organisation, where residual variance may differ between large and small firms.
  • Cross-country growth regressions, where the spread of residuals may differ across countries.
  • Time-series regressions in which autocorrelation has been checked and ruled out, so that heteroscedasticity is the remaining concern.
  • Policy evaluation regressions in which residual variance may differ between treated and comparison groups.

How it works

How it works

1

The model writes the outcome y as a linear function of the predictors X plus an error term whose variance may differ across observations (heteroscedasticity). Under exogeneity, OLS coefficients remain consistent in this setting; finite-sample unbiasedness requires the stronger condition of strict exogeneity. Heteroscedasticity affects the classical variance formula for the coefficients, which is no longer valid.

Formula
y = X\beta + \varepsilon, \quad \mathrm{Var}(\varepsilon_i) = \sigma_i^2
2

Coefficients are estimated exactly as in standard OLS, using the closed-form expression β̂ = (XᵀX)⁻¹Xᵀy. Because the estimator itself is unchanged, the coefficient values do not depend on whether robust standard errors are requested.

Formula
\hat{\beta}_{OLS} = (X^{\top}X)^{-1}X^{\top}y
3

The classical variance estimate is replaced by the White sandwich form. Each observation's squared residual ε̂ᵢ² multiplies its own outer product xᵢxᵢᵀ, so the variance estimate reflects the observed spread of residuals rather than a single assumed variance. Common small-sample variants are HC1, which rescales by a degrees-of-freedom factor, and HC2 and HC3, which adjust each squared residual according to the leverage of the observation.

Formula
\hat{V}_{HC} = (X^{\top}X)^{-1}\left(\sum_{i=1}^{n}\hat{\varepsilon}_i^2 x_i x_i^{\top}\right)(X^{\top}X)^{-1}
4

Standard errors are the square roots of the diagonal elements of the sandwich matrix. T-statistics, confidence intervals and F-type (Wald) tests are then formed from these standard errors in the same way as in OLS. The resulting inference is asymptotically valid under heteroscedasticity of unknown form.

Common pitfalls

  • Using robust standard errors as a blanket fix without asking why the variance differs across observations. The variance pattern may point to a misspecified functional form or a missing variable, which should be addressed in the model itself.
  • Applying the uncorrected White (HC0) estimator in small samples. Its standard errors tend to be too small, which causes over-rejection of true null hypotheses; HC2 or HC3 reduce this distortion.
  • Assuming that robust standard errors correct for autocorrelation. Time-series data with serially correlated errors require HAC standard errors.
  • Reading corrected standard errors as evidence that the model is otherwise well specified. Omitted variables and endogeneity still bias the coefficients themselves, and the correction does not address either problem.
  • Confusing robust OLS with robust regression (M-estimators or least trimmed squares). Robust regression replaces the estimator to limit the influence of outliers, whereas robust OLS keeps the OLS estimator and corrects only its standard errors.

Frequently asked questions

Does robust OLS change the coefficient estimates?

No. Robust OLS uses exactly the same coefficient formula as standard OLS. Only the standard errors, and therefore t-statistics, p-values and confidence intervals, change.

Which HC variant should I use?

HC2 or HC3 are preferred in small and moderate samples, where the uncorrected White (HC0) estimator tends to understate standard errors and over-reject true null hypotheses; HC3 is the more conservative of the two. In large samples the choice between variants matters less. Whichever variant is used should be reported.

When should I use cluster-robust instead of White standard errors?

Use cluster-robust standard errors when observations are grouped (students in schools, workers in firms, repeated observations per country) and errors within groups are likely correlated. White standard errors assume errors are independent across all observations.

Is robust OLS the same as robust regression?

No. Robust OLS (this method) corrects standard errors for heteroscedasticity but keeps the OLS estimator. Robust regression (M-estimators, least trimmed squares) replaces the OLS estimator itself to downweight outliers. They solve different problems.

If heteroscedasticity is present, should I use WLS instead?

WLS is more efficient when the variance structure is known or can be modelled, but it requires correctly specified weights. Robust OLS is preferable when the variance structure is unknown or hard to model, because it sacrifices efficiency in exchange for asymptotically valid inference.

Related methods

Sources

  1. White, H. (1980). A heteroskedasticity-consistent covariance matrix estimator and a direct test for heteroskedasticity. Econometrica, 48(4), 817–838.

    Open DOI reference
  2. Wooldridge, J. M. (2019). Introductory Econometrics: A Modern Approach (7th ed.). Cengage Learning.

    ISBN: 978-1337558860