- Introduced by
- Peter J. Huber
- Year
- 2009
- Type
- Robust linear regression
What does it do?
M-estimators are a robust generalisation of maximum likelihood estimation, introduced by Peter J. Huber and treated in depth in Huber and Ronchetti (2009).
Instead of squaring every residual, they minimise a loss function that grows more slowly than the square for large residuals, so that outlying observations are down-weighted rather than allowed to dominate the fit.
The intuition behind the method
Ordinary least squares squares every residual, so a single far-off point can pull the whole line toward itself. An M-estimator replaces that squared penalty with a loss that grows more slowly for large residuals and assigns each observation a weight: points near the bulk of the data keep most of their weight, while suspected outliers receive reduced weight. With the Huber function the weights shrink but never reach zero. With redescending functions such as Bisquare and Andrews, very extreme points can receive essentially zero weight and make no contribution to the fit. The fit then tracks the majority of the data rather than chasing a few extreme points.
History
M-estimation originates in Peter J. Huber's work on robust statistics in the 1960s, in which the squared-error loss of least squares is replaced by a loss that limits the influence of any single observation. Huber and Ronchetti (2009) give an in-depth treatment of the approach, and Maronna, Martin, Yohai and Salibián-Barrera (2019) give a modern treatment of robust regression methods.
When to use it
Use M-estimators when you fit a linear relationship to a continuous outcome and the data contain outliers in the response that you do not want to remove by hand. They suit cases where the outliers are a minority of the observations and the residual distribution is not strongly asymmetric. Before relying on them, check for high-leverage points in the predictor space, for example with hat values or robust distances. If such points are present, a high-breakdown method such as an MM-estimator is needed. If the outliers form a large share of the data, a high-breakdown estimator such as least trimmed squares is more appropriate.
Limitations and considerations
- Misleading in the presence of leverage points in the predictor space, where a high-breakdown method is required instead.
- Its breakdown point is low: once the proportion or position of outliers is unfavourable, the estimate can be dominated by contaminated points. How much contamination is tolerable depends on the weight function and the outlier configuration.
- The loss treats positive and negative residuals alike, so skewed error distributions can bias the intercept and undermine the robustness.
- Redescending weight functions (Bisquare, Andrews) make the objective non-convex, so the result can depend on the starting values.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Down-weights outliers in the response without requiring you to delete observations by hand.
- Generalises maximum likelihood estimation, and the coefficients are on the same scale as ordinary regression.
- Different weight functions (Huber, Bisquare, Andrews) let you choose how strongly extreme residuals are suppressed, trading efficiency against resistance.
Applications
- Fitting a linear relationship for prediction when the response variable contains occasional extreme values.
- Estimating the relationship between continuous variables in a way that is less sensitive to data-entry errors and anomalies.
- Robust regression in settings where outliers in the response are expected, such as health, social, economic, engineering, and business data.
How it works
How it works
The outcome y is modelled as a linear function of the predictors X plus an error term ε, exactly as in ordinary regression. What changes is how the coefficients β are estimated from the residuals.
Formula
y = X\beta + \varepsilon
Rather than minimising the sum of squared residuals, M-estimation minimises the sum of a robust loss ρ applied to the residuals standardised by a scale parameter σ. The choice of ρ (Huber, Bisquare/Tukey, or Andrews) controls how strongly large residuals are down-weighted. The formula states the criterion but not the algorithm: the scale σ must also be estimated, typically by a robust measure such as the median absolute deviation (MAD) of the residuals, as in the Huber M-estimator of location with MAD scale. The coefficients are then usually found by iteratively re-weighting the observations, with weights derived from the derivative of ρ, until the estimate stabilises. Each weight function has a tuning constant that sets the trade-off between efficiency under normal errors and resistance to outliers; the constant is normally left at the default recommended by the software.
Formula
\hat{\beta} = \arg\min_{\beta} \sum_{i} \rho\!\left(\frac{y_i - x_i^{\top}\beta}{\sigma}\right)Common pitfalls
- Trusting an M-estimator when outliers are high-leverage points in X. A single influential predictor outlier can distort the fit, so switch to an MM-estimator.
- Applying it when a large share of observations are outliers. Once the contamination is heavy, use least trimmed squares instead.
- Ignoring asymmetry in the residual distribution, which violates the symmetry the robust loss relies on.
- Setting or estimating the scale σ poorly. The scale determines which residuals count as large, so a poor scale estimate changes which points are down-weighted.
- Treating the down-weighting as a reason not to inspect the flagged observations. The weights are diagnostic information about which points drive the fit.
Frequently asked questions
How is an M-estimator different from OLS?
OLS minimises the sum of squared residuals, so a single outlier can dominate the fit. An M-estimator minimises a robust loss function instead, reducing the weight of large residuals so the line follows the majority of the data.
What do the weight functions (Huber, Bisquare, Andrews) do?
They define the robust loss ρ and therefore how residuals are penalised. The Huber function down-weights large residuals gently and never gives them zero weight, while Bisquare and Andrews are redescending and can give very extreme residuals essentially zero weight. The choice, together with the tuning constant, controls the trade-off between efficiency and resistance to outliers.
When should I use an MM-estimator instead?
When the contamination comes from high-leverage points in the predictor space. M-estimators have a low breakdown point with respect to such points, so a few influential predictor outliers can mislead them; an MM-estimator is designed to remain reliable in that situation.
How many outliers can an M-estimator tolerate?
There is no single safe fraction. The tolerable share depends on where the outliers lie and on the weight function: resistance to response outliers is limited, and influential predictor outliers can break the fit at much smaller proportions. When outliers form a large share of the data, a method such as least trimmed squares is more appropriate.
Related methods
Sources
Huber, P. J., & Ronchetti, E. M. (2009). Robust Statistics (2nd ed.). Wiley.
Open publication referenceMaronna, R. A., Martin, R. D., Yohai, V. J., & Salibián-Barrera, M. (2019). Robust Statistics: Theory and Methods (with R) (2nd ed.). Wiley.
Open publication reference