Robust Weighted Least Squares (Robust WLS)

Econometrics
Introduced by
Huber, P. J.
Year
1964/1981
Type
Robust weighted regression
Family
Econometrics / time series

What does it do?

Robust WLS combines weighted least squares, which gives each observation a weight reflecting its error variance, with M-estimation, which limits the influence of observations with large residuals.

It is intended for regression data in which heteroscedasticity and outliers occur together. The estimate is computed iteratively, with the weights and coefficients updated in turn until the coefficients stabilise.

The intuition behind the method

Standard WLS scales each observation's contribution by a weight, typically the inverse of its error variance, so noisier observations count for less. WLS alone remains sensitive to outliers, because a single observation with a very large residual can still pull the fitted coefficients. Robust WLS adds a second layer of weighting that depends on the size of each residual relative to an estimated scale, so observations with large residuals receive small robustness weights. The residuals depend on the coefficients and the weights depend on the residuals, so the two are updated in turn until they settle.

History

The idea of weighting observations by their precision is the classical rationale for weighted least squares. The robust extension rests on M-estimation, which Huber developed and set out in his 1981 monograph on robust statistics (Huber, 1981). Iteratively reweighted least squares is the standard algorithm for computing these estimates.

When to use it

Choose Robust WLS when residual variance differs across observations and a noticeable share of observations are outliers or high-leverage points. In that situation OLS is inefficient and standard WLS is not robust to the extreme values. It suits economic, financial, or survey records in which extreme values occur naturally. Do not use it when errors are plausibly symmetric, light-tailed and homoscedastic, because OLS is simpler and loses little in that case. Do not use it when contaminating observations make up a share large enough to exceed the breakdown point of the chosen M-estimator, since the robust fit can then itself be dominated by outliers. High-leverage observations need separate checking, as described under pitfalls. If heteroscedasticity is the only concern, WLS or OLS with robust standard errors is usually sufficient.

Limitations and considerations

  • Requires specifying or estimating the initial heteroscedasticity weight structure; misspecification reduces efficiency.
  • Convergence of IRLS is not always guaranteed for highly non-linear weight functions or extreme outlier patterns.
  • Interpretation is less straightforward than OLS because coefficients correspond to a down-weighted sample rather than the full dataset.
  • The robustness weights act on residuals. They limit the influence of large residuals but do not by themselves guard against high-leverage points, and their protection is bounded: it can be overwhelmed when outliers are numerous.
  • Computationally more intensive than standard WLS or OLS, especially for large datasets.

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

Strengths

  • Handles unequal error variances through observation weights and limits the influence of outlying residuals through a robust loss, within one estimation procedure.
  • Because the robustness weights are recomputed from the residuals at each step, the fit adapts to the data rather than fixing in advance which points are down-weighted.
  • When the iteration converges, the estimate is an M-type solution whose inference can use the sandwich standard errors described above; convergence is not guaranteed in every case (see limitations).
  • The choice of loss function (Huber or bisquare) sets the trade-off between protection against outliers and efficiency when the extreme observations are genuine.
  • Relative to robust OLS, it can gain efficiency when a variance structure for the errors can be specified or estimated.

Applications

  • Wage or income regressions in which residual variance rises with the level of earnings and a few extreme reported values occur.
  • Cross-country growth regressions in which a few unusual economies could otherwise dominate an OLS fit.
  • Hedonic price models in which error variance differs by property type and some transactions are atypical.
  • Firm-level financial data in which residual spread scales with firm size and a few observations are extreme.
  • Health-expenditure models with right-skewed costs and a small number of very high-cost patients.

How it works

How it works

1

W is a diagonal matrix with one entry per observation. Its entries combine two sources of weighting: the inverse of each observation's estimated error variance, which corrects for heteroscedasticity, and a robustness weight that shrinks observations with large residuals. Starting values may come from a pilot OLS fit or from an assumed variance structure.

Formula
W = \mathrm{diag}(w_1, w_2, \ldots, w_n)
2

The estimator minimises a weighted sum of a robust loss rho(e_i), such as the Huber or bisquare function, instead of the raw sum of squared residuals. Both functions grow more slowly than the square for large residuals, which limits how far any single observation can pull the estimate.

Formula
\min_{\beta} \sum_{i=1}^n w_i \, \rho(e_i)
3

Given a weight matrix W, the solution takes the familiar weighted normal-equation form beta-hat = (X'WX)^{-1}X'Wy, the same structure as standard WLS. Because the robustness part of W depends on the residuals, W is updated at each iteration and the same formula is applied again with the new weights.

Formula
\hat{\beta}_{RWLS} = (X^{\top}WX)^{-1}X^{\top}Wy
4

The robustness weights depend on the residuals, which depend on the current coefficients, so the estimate is found iteratively. At each pass the residuals are computed, the robustness weights are formed from the psi function (the derivative of rho) applied to the scaled residual, and beta is re-estimated; this repeats until the coefficients stabilise. The scale sigma-hat is a robust measure of residual spread, commonly the normalised median absolute deviation of the residuals, and is updated at each pass. This procedure is Iteratively Reweighted Least Squares (IRLS).

Formula
w_i^{(k+1)} = \psi(e_i^{(k)}/\hat{\sigma}) / e_i^{(k)}
5

Inference uses a sandwich form, (X'WX)^{-1} X'W Omega WX (X'WX)^{-1}, where Omega is the error covariance matrix. Omega has to be estimated in practice, and the resulting standard errors remain usable when the assumed variance model is wrong.

Formula
\mathrm{Var}(\hat{\beta}_{RWLS}) = (X^{\top}WX)^{-1}X^{\top}W\Omega WX(X^{\top}WX)^{-1}

Common pitfalls

  • Using default loss settings without checking that the tuning constant suits the scale of the residuals in your data. A poorly chosen constant can leave outliers only weakly down-weighted, and a larger constant trades protection for efficiency under normal errors.
  • Neglecting to re-examine the outliers after fitting: down-weighting is not a substitute for understanding whether extreme observations represent data errors or genuine phenomena that should inform the model.
  • Reporting only point estimates without robust standard errors. When the variance model is wrong, ordinary standard errors can be understated, which can make results look more significant than they are.
  • Confusing Robust WLS with simply adding heteroscedasticity-robust standard errors to OLS. The two address different problems, and the latter does not alter the point estimates.
  • Applying Robust WLS when the fraction of anomalous observations is large enough to exceed the breakdown point of the estimator, at which stage the robust estimator itself becomes contaminated. Also check high-leverage observations separately, because the robustness weights act on residuals and do not automatically down-weight a leveraged point that fits the trend.
  • Reporting the robust fit alone. Compare its coefficients with the OLS and WLS fits and list the observations with the smallest final weights. If the estimates change little, the outliers are not driving the conclusions; if they change a lot, the reasons should be examined.

Frequently asked questions

What is the difference between Robust WLS and WLS with robust standard errors?

Standard WLS with robust (sandwich) standard errors corrects the inference for heteroscedasticity not captured by the weight matrix, but it keeps the WLS point estimates, which can still be pulled by outliers. Robust WLS also changes the point estimates themselves by down-weighting outlying observations through a robust loss function, so both the estimates and the inference are protected.

Which robust loss function should I choose — Huber or bisquare?

Huber weights are a compromise: they behave like OLS for small residuals and like least-absolute-deviations for large ones, giving moderate protection with high efficiency. Bisquare (Tukey) weights set observations beyond a threshold to zero, offering stronger protection but lower efficiency when outliers are actually informative. Start with Huber for general use; switch to bisquare only if you are confident that extreme observations are truly anomalous, and check that the tuning constant suits the scale of your residuals.

How do I know if my data need Robust WLS rather than just robust standard errors on OLS?

If diagnostic plots show both non-constant residual variance (heteroscedasticity) and influential outliers (high Cook's D or hat values), Robust WLS is warranted. If only heteroscedasticity is present without influential outliers, WLS or OLS with robust standard errors is simpler and adequate.

Does Robust WLS require any distributional assumptions?

The M-estimation framework does not require a specific parametric error distribution, which is why the method is attractive when the error distribution is unknown or heavy-tailed. Its large-sample properties rest on regularity conditions that should be checked for the model at hand, and small-sample behaviour can differ from the large-sample description.

Can Robust WLS be applied to panel data?

Not directly. Robust WLS as described here is designed for cross-sectional data. Panel data bring within-unit dependence, which the standard errors must account for, for example through clustering. The modelling choice for panels, such as fixed-effects or random-effects specifications, should be made separately rather than assumed from this page.

Related methods

Sources

  1. Huber, P. J. (1981). Robust Statistics. Wiley.

    ISBN: 978-0471418054
  2. Greene, W. H. (2018). Econometric Analysis (8th ed.). Pearson.

    ISBN: 978-0134461366