- Introduced by
- Peter J. Huber (M-estimators, 1964); Rousseeuw & Leroy (practical framework, 1987)
- Year
- 1964-1987
- Type
- Robust linear regression
- Family
- Regression / GLM
What does it do?
Robust simple linear regression fits a straight line to bivariate data using a loss function or weighting scheme that limits the influence of outlying observations.
Its slope and intercept are typically less sensitive to extreme values than those from ordinary least squares, while the model keeps the same linear form and interpretation. The method addresses outliers in the response; it does not correct for non-linearity or non-constant error variance.
The intuition behind the method
OLS fits a line by minimising the total squared vertical gap to every point, but squaring amplifies the influence of distant observations, pulling the line toward them. Robust regression replaces the squared loss with a gentler function, such as Huber loss or Tukey bisquare. Huber loss treats moderate residuals like OLS but grows more slowly for large ones, so their contribution is limited. Tukey bisquare goes further and ignores sufficiently large residuals altogether. Iteratively reweighted least squares (IRLS) implements this by repeatedly refitting a weighted regression and lowering the weight of observations whose residuals remain large.
History
Peter Huber's 1964 paper in The Annals of Mathematical Statistics developed a theory of robust estimation of a location parameter. It treated in detail the asymptotic behaviour of estimators under contaminated normal models and introduced estimators lying between the sample mean and the sample median that are asymptotically most robust, in a specified sense, among translation-invariant estimators. The approach was later extended to regression, where the line is fitted by minimising a robust loss rather than the sum of squared residuals. Rousseeuw and Leroy's 1987 monograph presented robust regression as a practical framework, including least trimmed squares. Later estimators, such as MM-estimators, were developed to combine high breakdown with high efficiency.
When to use it
Choose robust simple linear regression when you have a continuous outcome and one continuous predictor and suspect that the dataset contains outliers in the response that would distort an OLS fit. It is particularly valuable in small-to-moderate samples, where a single extreme observation can shift the OLS line substantially. Do not use it as a routine replacement for OLS when the data are clean and approximately normally distributed, because some efficiency is lost under ideal conditions. Check for high-leverage points (extreme x values) as well: M-type fits such as Huber do not resist them, so a high-breakdown estimator is needed in that case. The method is also not designed for heteroscedasticity (use weighted least squares) or non-linear relationships (use splines or GAMs).
Limitations and considerations
- More computationally intensive than OLS: the fit requires iteration and may fail to converge with very small samples.
- Standard errors require sandwich or bootstrap methods; classical OLS t and F tables do not apply directly.
- Does not correct for heteroscedasticity; non-constant error variance must be handled separately.
- Results depend on the choice of tuning constant and influence function (Huber, Tukey bisquare, etc.); the default constant is tied to Huber's efficiency trade-off and may not suit every application.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Resistant to outlying responses that would otherwise pull the OLS slope: Huber loss bounds the contribution of large residuals, and redescending functions can exclude them entirely.
- Keeps the interpretation of OLS: beta1 is still the estimated change in y per unit increase in x.
- With the commonly used Huber tuning constant of 1.345, the estimator retains about 95% of OLS efficiency under normal errors. This figure comes from location estimation; for regression the efficiency is approximate and depends on the design, so the cost on clean data is modest but not exact.
- The final IRLS weights show how much each observation was down-weighted, which gives a direct diagnostic of unusual cases.
- MM-estimators combine a high breakdown point (up to 50%) with high efficiency under Gaussian errors.
Applications
- Economics and finance: estimating market betas or wage-education slopes in datasets containing recording errors or extreme values.
- Environmental science: fitting dose-response or concentration lines in field data with occasional instrument failures.
- Medical research: analysing biomarker-outcome relationships where some assay values are known to be unreliable.
- Quality control: fitting calibration lines in laboratory settings where a few faulty measurements are expected.
- Astronomy and geophysics: relating two physical variables in datasets with known measurement artefacts.
How it works
How it works
The model is the same as simple linear regression: y = beta0 + beta1*x + epsilon. The difference lies entirely in estimation: robust methods change how each observation contributes to the fit.
Formula
y = \beta_0 + \beta_1 x + \varepsilon
Instead of minimising the sum of squared residuals, the estimator minimises the sum of rho applied to each standardised residual ri/sigma-hat, where rho is a robust loss function. Under Huber loss, rho is quadratic for small residuals and grows linearly beyond a threshold kappa, so large deviations contribute less than they would under squared loss. sigma-hat is a scale estimate for the residuals, commonly a normalised median absolute deviation of the residuals. Because the fit depends on this choice, the scale estimator should be reported with the results.
Formula
\hat{\beta} = \arg\min_{\beta} \sum_{i=1}^{n} \rho\!\left(\frac{y_i - \beta_0 - \beta_1 x_i}{\hat{\sigma}}\right)Each observation receives a weight wi = psi(ri/sigma-hat)/(ri/sigma-hat), where psi is the derivative of the loss function. For Huber loss, the weights of observations beyond the threshold decline in proportion to the inverse of their standardised residual: they shrink but do not reach zero. Redescending functions such as Tukey bisquare assign zero weight to sufficiently large residuals, which removes those observations from the fit.
Formula
w_i = \frac{\psi(r_i/\hat{\sigma})}{r_i/\hat{\sigma}},\quad r_i = y_i - \hat{y}_iCoefficients are updated iteratively. The iteration starts from the ordinary least-squares fit. At each step the weights are computed from the residuals of the previous estimate, a weighted least-squares problem is solved with those weights, and the residuals are recomputed. The scale estimate may be recomputed at each step. Iteration stops when the coefficient estimates change by less than a small tolerance or when a maximum number of iterations is reached, so the number of iterations depends on the data. With redescending loss functions the criterion is not convex, so the solution can depend on the starting values and should be checked for stability.
Formula
\hat{\beta}^{(t+1)} = (X^\top W^{(t)} X)^{-1} X^\top W^{(t)} yStandard errors must come from methods that account for the robust weighting, such as sandwich-type covariance estimates or a case-resampling bootstrap. Classical OLS standard errors do not apply to the robust fit and should not be used for hypothesis tests or confidence intervals on beta1.
Common pitfalls
- Using robust regression to avoid diagnosing the source of outliers. Outliers are often data-entry errors or scientifically important cases that deserve investigation, not silent removal.
- Forgetting that high-leverage points (extreme x values) can still bias M-type estimators such as Huber; MM-estimators or least trimmed squares are preferred when leverage is also a concern.
- Reporting OLS p-values after fitting a robust model. Use robust sandwich standard errors or bootstrap intervals instead.
- Assuming that robust regression also handles non-linearity; if the true relationship is curved, a robust fit of a straight line will still be misspecified.
Frequently asked questions
How is robust simple linear regression different from OLS?
OLS minimises the sum of squared residuals, which makes it very sensitive to outliers. Robust regression minimises a bounded or slower-growing loss function, so extreme observations receive less weight and have less influence on the estimated slope and intercept.
What is the tuning constant and how do I choose it?
The tuning constant (for example, kappa = 1.345 for Huber loss) sets the threshold at which residuals move from the quadratic to the linear penalty regime. The commonly used value of 1.345 gives about 95% asymptotic efficiency relative to OLS under normal errors in the location setting; for regression this figure is only approximate. Smaller values are more robust but less efficient; larger values move the fit toward OLS.
Can robust regression handle heteroscedasticity?
No. Robust regression addresses outliers in the response, not non-constant error variance. For heteroscedasticity, use weighted least squares or heteroscedasticity-consistent (sandwich) standard errors applied to OLS.
How do I interpret the final IRLS weights?
A weight near 1 means the observation is consistent with the bulk of the data. Weights below 1 mark observations that were down-weighted. For Huber loss, weights decline gradually, so a low weight indicates strong down-weighting rather than exclusion. For redescending estimators such as Tukey bisquare, a weight of zero means the observation has been effectively excluded. Examining these weights is a useful diagnostic for unusual cases.
What is the breakdown point and why does it matter?
The breakdown point is the fraction of contaminated observations an estimator can tolerate before producing arbitrarily wrong estimates. OLS has a 0% breakdown point. MM-estimators and least trimmed squares are designed for high breakdown, reaching up to 50%, meaning up to half the data can be contaminated before the estimate fails. Huber-type M-estimators resist outlying responses but not high-leverage x values, so their breakdown point is low when leverage contamination is present.
Related methods
Sources
Rousseeuw, P. J., & Leroy, A. M. (1987). Robust Regression and Outlier Detection. John Wiley & Sons.
ISBN: 978-0471852339Huber, P. J. (1964). Robust estimation of a location parameter. The Annals of Mathematical Statistics, 35(1), 73-101.
Open DOI reference