Huber location estimator Created 2026-09-24 Updated 2026-10-18
The Huber location estimator solves , where clips its argument to .
More generally, fix a known scale and a dimensionless threshold before fitting. For observations , a Huber location estimator is a minimizer of the summed Huber loss, equivalently a root of its estimating equation:
Here is the Huber loss and the Huber score. The physical clipping distance is , in the observations' units; the initial formula uses . A large observation keeps contributing a bounded signed score rather than being discarded. The original clipped location criterion appears in Peter J. Huber's 1964 paper.[ref]
For the original data , take and . At , the standardized differences and their Huber scores are
Their sum is zero, so the Huber location estimator is . Four scores remain in the central linear region, making the root unique. By comparison, the sample mean is , and the sample median, using the midpoint of the two middle observations, is . Agreement with the sample median is a feature of these data, rather than an identity between the two estimators.
The geometry explains both existence and possible nonuniqueness. The Huber loss is a convex function, so is a convex function of and its derivative is . For , tends to infinity as grows, hence attains a minimum; its zero derivative characterizes every minimizer. Between clipping transitions, the summed score has slope , where is the number of observations strictly within of . A root with is unique. If , a flat interval is possible: for data with , every is a minimizer. A complete single-valued estimator then needs a selection rule, such as the interval's midpoint.
A bounded Huber score limits one observation's contribution to the estimating equation. The influence function of a Huber location estimator additionally divides by the population's central mass, so the size of its bound depends on the reference probability distribution. Clipping does not by itself make the bias of an estimator zero or prove a universal breakdown point; the separate local influence versus replacement breakdown argument specifies what fixed scale permits. Estimating from the same data changes the procedure and requires separate analysis.
Hold fixed and move only the sixth observation . For , the sample mean is , the sample median is , and the Huber location estimator with fixed stays at . Once , its Huber score is already ; moving it farther changes the Huber loss but leaves the root unchanged.
For a closer view of the transition, the exact Huber location estimator over is
To verify the first branch, when the score of is saturated and the other five scores sum with it to . When , the score of is saturated instead, giving the same expression. At , the moving observation saturates too, and the equation becomes . The piecewise formula is continuous at the transition.
Figure 1. . Original deterministic data with . The inset resolves the region , where the three estimators differ; the Huber location estimator saturates at . For , it coincides with the sample median, while the sample mean continues to rise. Details.
The rising sample mean comes from an unbounded linear score, the flat distant-outlier response from a bounded Huber score. This is a finite-data response curve with a specified scale and threshold, rather than a population influence function or a general claim about arbitrary numbers of outliers.
Huber loss Created 2026-09-24 Updated 2026-10-18
The Huber loss is quadratic near zero and linear beyond a fixed cutoff; its derivative is the clipped Huber score.
For threshold , the Huber loss is the loss function
The subtraction makes the values meet at ; the slopes also meet, so the Huber loss is continuously differentiable with Huber score as its derivative. It is a convex function, since that derivative is a monotone function. These quadratic and linear pieces define the original clipped location criterion.[ref]
Figure 1.
Huber loss and Huber score for threshold
. Original curves compare the Huber loss with and , then compare the Huber score with the linear score and . The dashed vertical lines mark . Details.
For , , , and , whereas the squared criterion at is . Increasing a standardized difference from to raises the Huber loss by , but raises the squared criterion by . The compromise preserves quadratic sensitivity to small differences while limiting the slope for large ones. This makes the Huber loss useful when ordinary observations should retain their detailed distances yet isolated outliers should exert limited pull.
For a fixed finite dataset and scale, taking large enough that every difference from the sample mean lies within recovers that sample mean. Toward the other extreme, for each fixed , as , connecting the criterion to median minimizes expected absolute loss. The normalization is essential: putting into the unscaled Huber loss gives zero everywhere, not a usable median criterion.
Huber score Created 2026-09-28 Updated 2026-10-18
The Huber score clips a residual at a fixed threshold:
For , the Huber score is the derivative of the Huber loss:
It is a continuous odd function and a monotone function, with Lipschitz continuity and . In a Huber location estimator, its argument is the standardized difference . Its derivative is inside the clipping interval and outside; that derivative is undefined at the two endpoints. The score itself remains continuous there. This estimating score need not be the score function of a separately specified statistical model, nor is it already a normalized influence function.
Fix a scale and cutoff . Define the population Huber location estimator by the root
Here is the Huber score. It has Lipschitz continuity, so dominated convergence justifies differentiation when puts no mass at . Then , and the nonzero derivative identifies the local population root. The implicit function theorem applies away from the contaminating score's kinks; its Lipschitz continuity also gives the first-order expansion at those kinks. Differentiating its contaminated equation yields
The normalization matters: the Huber score alone is not the influence function. The gross-error sensitivity is , while the rejection point of an influence function is infinite because the clipped tails stay nonzero. The original clipped estimating criterion and its derivative normalization also appear in the population analysis of M-estimators.[ref]
Scale sets what counts as a large residual. For a normal distribution with fixed , symmetry gives and , where is the standard normal distribution function. If the scale is instead a statistical functional , differentiation of the joint equation adds the scale contribution:
Under a symmetric baseline and an odd Huber score, , so scale estimation drops out at first order. This cancellation needs regularity of and does not protect finite contamination changes: an inflated standard deviation enlarges the physical cutoff . A robust choice, such as a suitable Scale M-estimator, needs its own influence function and breakdown point checked. Fixing a numeric cutoff in raw units also sacrifices scale equivariance when units change.[ref]
The influence function describes an infinitesimal change at a specified reference probability distribution. The replacement breakdown point asks how many observations in a particular finite sample can be replaced before an estimator becomes unbounded. The finite-sample maximum bias records the intervening changes. These are different questions: a bounded influence function at one baseline is not a general bound over all epsilon-contamination neighborhoods, nor a proof of a positive replacement breakdown point.[ref]
The mean illustrates agreement between local and global fragility: its gross-error sensitivity is infinite and one replacement can send the sample mean arbitrarily far. The median has finite gross-error sensitivity under the stated positive-density assumptions, while its sample median withstands fewer than about half the observations being replaced under ordinary tie conventions. Its population contamination bias above still diverges as when the atom remains beyond the shifted median. Here must also move outward; taking that limit with a fixed finite atom would invalidate the displayed quantile formula.
For scalar location with a fixed positive scale, the Huber score has a direct global argument: if strictly more than half of the sample stays fixed, then beyond every retained observation by more than , their saturated scores outweigh all possible replaced scores. Every root therefore stays in a bounded interval. This is a separate finite-replacement argument; estimating scale changes its premises. A smooth bounded influence function is valuable local protection, but global robustness also depends on the full estimating rule, scale choice, and root selection.
For standard normal distribution location estimation, an influence function obeys . Under , minimize by projecting onto , choosing to meet that identity. For this gives the displayed Huber score normalized by , with . Pointwise minimality of proves global optimality after integration. At the only feasible normalized function is almost everywhere, the influence function of the sample median. The endpoint is a limit of rescaled clipped scores, not the identically zero score obtained by substituting literally.
An M-estimator based on an estimating equation chooses a consistent root of
Its population target solves . For a scalar parameter, suppose the root is locally unique and
For the contaminated distribution , differentiate its population equation at zero contamination. The influence function satisfies
Consequently
The constant of proportionality is independent of . A local expansion of the sample estimating equation similarly gives
The central limit theorem yields asymptotic normality with the sandwich variance of an M-estimator
Thus the first-order variance of the unscaled estimator is . For a vector parameter the same differentiation gives and , with and .
For the location problem, take the target location to be zero and let have the standard normal distribution, with density and distribution function . An odd score has . For a differentiable score, integration by parts gives
The last expression also gives the appropriate derivative of the population equation for bounded monotone scores with jumps, by differentiating the shifted normal density. Assume and put . Then
Multiplying a score by a positive constant changes neither its estimator nor this normalized influence function.
First establish feasibility. The bound implies
so necessarily . For , let solve
This solution is unique: the ratio tends to as , tends to infinity as , and has positive derivative because
Take the Huber score . Its derivative is one on and zero outside, so . Hence
It is odd, nondecreasing, meets the bound, and satisfies .
To prove optimality, put . For each fixed , the minimum of over is attained by projecting onto , which is exactly . Therefore every competing normalized influence function satisfies
Taking expectations, the right-hand side vanishes because both functions satisfy . Thus . This proves the optimal bounded influence function for normal location, even over the larger class of all bounded normalized functions, and hence over the required odd nondecreasing class. Its minimum asymptotic variance is
The numerator is .
At the included boundary , equality in the feasibility bound forces almost everywhere. This is the influence function of the sample median, with . It is obtained from the rescaled scores as . The boundary solution is the sign score, or equivalently the median estimator. Literal substitution of in the clipped score gives the identically zero function and no identifiable estimating equation; the printed clipped formula therefore requires this limiting interpretation at equality.
A functional statistic has the form , where is the empirical distribution and is a statistical functional on a class of distributions. It separates the population quantity from its sample estimate. Fisher consistency for a model means for every model parameter; it does not alone establish consistency of the empirical estimate without continuity and probabilistic conditions.
The influence function measures infinitesimal contamination at a point:
when this derivative exists. A bounded influence function limits first-order sensitivity to an arbitrarily remote observation.
An M-estimator is a minimizer of an empirical loss, or a chosen consistent solution of an estimating equation . Its population functional solves . Put and , assumed finite and nonzero. Differentiating the contaminated population equation gives
since the unperturbed expected score is zero. Hence
Under differentiability, consistency and the uniform local laws needed for expansion of the empirical equation,
The central limit theorem now yields asymptotic normality with sandwich variance of an M-estimator
Thus the leading variance of itself is the displayed variance divided by . For a vector parameter, replace by the derivative matrix and use .
In a location model with known scale , choose . For a symmetric reference distribution, an odd score is Fisher consistent. With and positive , the formulas become
The Gaussian likelihood score gives the efficient sample mean under normality, but its unbounded influence is vulnerable to large outliers. The Huber score is linear centrally and bounded in the tails, balancing normal-model efficiency against contamination sensitivity. Its denominator is for a continuous law. The sign score gives the median and needs a nonsmooth derivation using the density at the median, rather than incorrectly setting its ordinary derivative to zero. Redescending scores can reject very extreme observations, but may have multiple roots and require a consistent root-selection rule.
Thus appropriate choices seek Fisher consistency, a nonzero stable derivative, finite variance, reasonable reference-model efficiency and bounded influence. Robust scale estimation may be needed for the tuning constant; joint location-scale estimation uses the matrix influence calculation rather than treating an estimated scale as known. Bounded influence describes local robustness and is not by itself a global breakdown point theorem.
At the standard normal distribution, symmetry and the odd Huber score give population root zero. For , the derivative of the clipped score is except at its two corners, which have zero normal probability. Put and write for the standard normal density. The sandwich variance of an M-estimator has numerator
Using and integration by parts,
Therefore
As checks, it tends to as , the sample mean limit, and to as , the sample median limiting variance. The estimator variance for a sample of size is approximately this quantity divided by .
A scalar M-estimator is a selected root of , or equivalently a minimizer of a differentiable empirical objective whose derivative is this estimating equation. Its population statistical functional solves . Assume local uniqueness, consistency of the sample root, a valid differentiable local expansion, finite , and
These conditions include domination sufficient to differentiate under the integral and the required local uniform control of the sample derivative.
For , differentiate the population estimating equation at . Since its uncontaminated integral is zero,
Thus the influence function is , with a proportionality constant independent of .
Expanding the sample equation at its population root gives
The summands have mean zero. The central limit theorem and Slutsky's theorem therefore yield the scalar sandwich variance of an M-estimator
This is the limiting variance of the -scaled error; the estimator's variance is approximately . In a correctly centred location family with , let . Then , so the influence function is and . The minus sign from differentiating is essential.
The clipped Huber score in the subsequent subparts requires . The PDF only displays an upper bound: at the estimating function vanishes identically, and at it is a constant with no root. A positive clipping threshold is the regular interpretation.
Put and . Symmetry gives . Differentiating the trimmed mean functional along gives
Under the substitution , symmetry implies
while
Evaluating the last integral in the three regions , , and yields
This is the influence function of a trimmed mean, namely the Huber score with clipping parameter , divided by .
The normal location score is . Under a bound on gross-error sensitivity, the variance-minimizing influence curve clips this score. For , define the Huber score
The optimal B-robust estimator is the Huber location estimator defined by
Equivalently, it has the explicit optimization form
where the Huber loss is
At its normalized influence function is