Robust statistics
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In statistical inference, robust statistics are summaries and fits that barely move when a small fraction of the data is moved a long way. A summary or a fit is robust when a small fraction of the data, moved a long way, does not move the answer very much. The median is the standard case. The arithmetic mean is not. Extreme changes to a small portion of the observations leave a robust method nearly where it was, and they pull a least-squares method with them.[1][2]
Robust statistics
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
| Worked example | 1 |
Motivating example
In a sample of 50 Lending Club loans, one had an interest rate of 26.3%. Replacing that one rate by 15%, or by 35%, leaves the median and the interquartile range where they were and shifts the mean and the standard deviation. In the published comparison the median stays at 9.93% and the interquartile range stays at 5.76 percentage points, while the mean moves from 11.57% to 11.34% or to 11.74% and the standard deviation moves from 5.05 to 4.61 or to 5.68. The two robust summaries describe the centre and the spread of the bulk of the loans. The mean describes a centre that has been pulled toward the extreme loan. Which description is wanted depends on the question. A typical loan is closer to the median. A total amount of money, added up across many loans, follows the mean.[2]
Intuition
Squared error charges a residual of size 10 as 100, and a residual of size 1 as 1. A single wild point can therefore dominate the fit. Absolute error charges that residual as 10, in proportion to its size. Huber’s loss uses the square while the residual is smaller than a chosen cutoff and then switches to a straight line, so ordinary points keep the efficiency of least squares and gross points lose their squared leverage. At a fixed covariate value, population squared-error loss is minimised by the conditional mean when the conditional second moment is finite, and population absolute-error loss is minimised by a conditional median when the conditional first absolute moment is finite. These targets can agree even for a symmetric heavy-tailed conditional distribution. In a finite sample, a gross response error can affect the squared-error and absolute-error fits differently, even when their population targets agree.[3][4]
Definition
A statistical method is robust when extreme changes to a small portion of the data do not change its answer strongly. An estimator of a regression coefficient, or of a location, is robust in the same sense when it is not sensitive to outliers or to small departures from the model that was written down. The arithmetic mean and other least-squares estimators are sensitive to outliers of that kind. The term for this resistance was introduced by Box in 1953, and the subject was recognised as a field by the middle of the 1960s. Laplace had already studied the distribution of the median in 1818, in the second supplement to the analytic theory of probability. Huber’s 1964 paper on robust estimation of a location parameter separated the later M-estimators from ordinary least squares.[1][4]
For a location and observations , least squares minimises and returns the sample mean. Least absolute deviations minimises and returns a sample median. An M-estimator replaces the square by a symmetric function with a unique minimum at zero, and minimises . Huber’s choice, for a positive cutoff , is the square when and the line when . The absolute-deviation estimator is the special case of a pure line, .[4][3]
In regression the same replacement is made inside the loss . Squared error, absolute error, and Huber loss are three such choices. The fitted function changes with the loss. Huber’s regression form is while , and otherwise.[3]
Properties
Write the sum of squared deviations from a candidate location as the quadratic
Its derivative is , which is zero only at the sample mean . The second derivative is , so that critical point is a minimum. The mean is the least-squares location because it is the unique minimiser of this quadratic.
On the five numbers the mean is and the median is . Here and , so
The derivative vanishes at . Direct evaluation gives , and . Moving one unit away from the mean raises the sum of squares by , which is the comparison that illustrates the identity just proved. The same quadratic at the median is . The sum of absolute deviations is at the mean and at the median, so the median wins the criterion and the mean wins least squares. Moving still further moves the mean and leaves the median at until the extreme point crosses the middle of the ordered sample. That is the small-sample picture of robustness: the median’s breakdown happens only when the extreme points become half the sample, while the mean moves as soon as one point moves.[2][1][4]
Under Gaussian errors, least squares is efficient, and a robust criterion is chosen to stay close to that efficiency while resisting the long tail. Huber loss is built for that compromise. Absolute loss resists gross outliers more strongly and gives up more efficiency when the errors really are Gaussian.[3]
A median, an interquartile range, or an absolute-deviation fit is the summary to use when a few observations may be misrecorded and the target is the centre of the remaining mass. The mean and least squares are the summary to use when the squared loss really is the loss of interest, for example when the total of many units is the quantity to be reported, and when the extremes are genuine rather than mistakes. If a robust regression is fitted, the loss has to be named. A Huber fit with a large cutoff is least squares. A Huber fit with a small cutoff is close to absolute deviations.[3][4][2]
Worked example
The sample is . The mean is and the median is .
The squared-error sum is the quadratic . Then , so the critical point is . Squared deviations from are , which add to . Squared deviations from the neighbours and add to and . Squared deviations from the median are , which add to . The neighbour comparison illustrates the derivative calculation: the sum of squares is smaller at the mean than one unit away. Absolute deviations from are , which add to . Absolute deviations from are , which add to . The least-absolute location is because that sum is the smaller of the two absolute-deviation sums. Replacing by moves the mean to and leaves the median at . One recording error of that size changes the mean by and the median by nothing.[4][2]
Your turn. For the sample , compute the mean, the median, and the sum of absolute deviations from each.
The mean is and the median is . Absolute deviations from are four times and once, totalling . Absolute deviations from total . The median has the smaller absolute-deviation sum.
Assumptions and limits
The guarantee is comparative: under contamination of a few points, the robust summary moves less than least squares. Equality with the population quantity of a model the data do not follow is a separate requirement, and robustness does not supply it. Huber’s cutoff has to be chosen. Very large recovers least squares and its sensitivity. Very small recovers a fit close to absolute deviations and its loss of efficiency on clean Gaussian errors. A shift that moves every observation, such as a miscalibrated instrument, moves the median by the same amount as the mean. Robustness here is resistance to a small fraction of wild points. Outliers in the predictors, as opposed to the response, are a separate problem. A wild can lever a line even when the loss on is robust. Absolute deviations applied to a straight line still fit a straight line. They change the influence of the points, not the list of curves under consideration.[3][4][1]
Connections
An outlier is the kind of point robust methods are built to resist. Least squares is the non-robust extreme of the same location and regression problem, and it is the procedure whose criterion is minimised at the mean. Mean squared error is the risk that least squares minimises, and it is the wrong score if the loss of interest is absolute. The bias of an estimator is a different defect: a median can be robust and still be biased for a mean. When the question is a total, the mean carries the information and the median throws the large values away. The interest-rate comparison and the loan-amount comparison in the same data set point in different directions for that reason.[3][4][2]
Check yourself
Try these questions before opening an answer.
Absolute deviations
For 1, 2, 3, 4 and 20, what are the sums of absolute deviations from the mean 6 and from the median 3?
The sums are 28 at the mean and 21 at the median.
Squared deviations
For the same five numbers, what are the sums of squared deviations from 6 and from 3?
The sums are 250 at the mean and 295 at the median.
One wild point
For 5, 5, 5, 5 and 100, what are the mean and the sum of absolute deviations from the median?
The mean is 24 and the sum of absolute deviations from the median 5 is 95.
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d a. (Glossary, "robust methods") b. (Glossary, "robust methods") c. (Glossary, "robust methods") d. (Glossary, "robust methods") Heckert, N. A., Filliben, J. J., Croarkin, C. M., Hembree, B., Guthrie, W. F., Tobias, P. & Prinz, J. (2002). Handbook 151: NIST/SEMATECH e-Handbook of Statistical Methods, Glossary. National Institute of Standards and Technology. https://www.itl.nist.gov/div898/handbook/glossary.htm
- ^ a b c d e f a. (Ch. 2, §2.1.6) b. (Ch. 2, §2.1.6) c. (Ch. 2, §2.1.6) d. (Ch. 2, §2.1.6, mean versus median for a total) e. (Ch. 2, §2.1.6) f. (Ch. 2, §2.1.6) Diez, D. M., Çetinkaya-Rundel, M. & Barr, C. D. (2019). OpenIntro Statistics (4th ed.). OpenIntro. https://www.openintro.org/book/os/
- ^ a b c d e f g a. (pp. 349–350, §10.6, squared error, absolute error, and Huber loss) b. (p. 349, §10.6, equation (10.23)) c. (pp. 349–350, §10.6) d. (p. 349, §10.6) e. (pp. 349–350, §10.6) f. (p. 349, §10.6) g. (p. 349, §10.6) Hastie, T., Tibshirani, R. & Friedman, J. (2009). The Elements of Statistical Learning. Springer. https://doi.org/10.1007/978-0-387-84858-7
- ^ a b c d e f g h a. (p. 464, replacing the square by a function δ) b. (pp. 463–464) c. (p. 464) d. (p. 464) e. (p. 463, least squares is sensitive to outliers) f. (p. 464, and least squares) g. (pp. 463–464, the role of , and outliers) h. (p. 463) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
StatWiki (2026). "Robust statistics." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/robust-statistics.html
@misc{statwiki_robust_statistics,
author = {{StatWiki}},
title = {{Robust statistics}},
year = {2026},
url = {https://www.statwiki.io/articles/robust-statistics.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}