Maximize over . The maximizer is , giving the displayed Huber loss. The indicator functional of a constraint set is zero on the interval and infinity outside; it is not the zero-one indicator used in measure theory.
A Huber loss applied to a discrete gradient combines quadratic penalization of small slopes with linear penalization of large slopes. This interpolates between squared-gradient smoothing and total variation denoising, allowing smooth regions while retaining an edge-preserving large-gradient regime. The threshold should be chosen consistently with the signal's units and discretization. It can reduce staircasing in total variation denoising without guaranteeing its elimination.
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.
Infimal convolution Created 2026-10-05 Updated 2026-10-14
An infimal convolution is the cheapest way to split a prescribed total between two costs. Suppose two activities contribute and to a required total , costing and . Their combined cost is optimized over all splits , rather than charging both activities for the entire total.
For proper extended-real functions on a real vector space , define
The definition does not require convexity. An infinite cost forbids that contribution, as with an indicator functional of a constraint set. If no split has two finite costs, set ; if the costs of admissible splits are unbounded below, . Thus proper inputs need not produce a proper extended-real function. The notation denotes the same operation. See Parikh and Boyd, Proximal Algorithms, §3.1 for the standard convex analysis definition and its connection to the Moreau envelope.
An infimum is a best lower bound, whereas a minimum is a value realized by some split. Writing in place of requires an attaining pair . For convex functions, mixing two nearly optimal splits and applying convexity to each cost proves that their infimal convolution is convex whenever it is proper; one must use nearly optimal splits because exact minimizers need not exist. Its convex conjugate is whenever the extended real number arithmetic is well defined; see conjugate of an infimal convolution for the precise identity. This turns the optimization over splits into addition in the conjugate variables.
Two quadratic costs: share the load according to its price. Let and let the convex quadratic functions be
For fixed , eliminate . The derivative of the total cost is , so equal marginal costs give
The cheaper activity receives more of a positive total: when and , . Completing the square gives an exact certificate for every competing split:
Consequently the infimum is a unique minimum, and
The effective quadratic coefficient is , with . It is smaller than either or : allowing both activities reduces the cost compared with assigning everything to either one. If , each receives half the total and . This is a simple quadratic optimization problem whose answer preserves the form of the original costs.
Figure 1.
Optimizing the split of two quadratic costs gives a cheaper quadratic total cost
. An exact illustrative calculation, not measured data: , and give and cost , compared with cost for an equal split. The right panel compares the optimized cost with assigning the whole total to either activity. Details.
Smoothing a corner by splitting its cost. Take the absolute value function and the convex quadratic function , with . This infimal convolution is the Moreau envelope of the absolute value function:
Here is the sign function, with . The optimal is soft thresholding. In the central region, the quadratic function carries the whole total; outside it, stays at and the absolute value function carries the excess. At the result is the Huber loss in the normalization near zero and outside. Its derivative is for and outside, so the corner becomes a continuous change of slope. Parikh and Boyd's [ref] uses twice this normalization for the Huber loss; the explicit formula here fixes the convention. This is also the one-dimensional case of the existing Moreau envelope of the Euclidean norm.
Figure 2.
Splitting absolute-value and quadratic costs produces a smooth Huber loss
. Exact illustrative curves with , not measured data. The left panel compares with its Moreau envelope; the right shows the optimal contributions and , whose sum is . Beyond the cutoffs , the quadratic contribution remains clipped while the absolute-value contribution grows. Details.
M-estimator 2026-09-28
An M-estimator minimizes an empirical objective or, when differentiable, solves an estimating equation .
The conjugate of an infimal convolution is the sum of the conjugates:
Here , and , the indicator functional of the unit infinity-norm ball. Thus
The infimal convolution is finite convex and continuous, so the Fenchel-Moreau theorem applies without a closure defect. By equality in the Fenchel–Young inequality and the subdifferential sum rule,
This is precisely the variational characterization of projecting onto the cube. Consequently
For the primal split, and . These directly minimize the two scalar terms. The Huber loss is continuously differentiable, including at , but its second derivative changes there. The one-dimensional sketch shows a quadratic center joined tangentially to linear tails:
Figure 1.
The scalar Huber function with quadratic center and linear tails joined at minus one and one
. Details.
Applied to a discrete gradient, the Huber gradient regularizer penalizes small slopes quadratically and large slopes linearly. Compared with pure squared-gradient smoothing it preserves large edges better; compared with pure total variation denoising it encourages small smooth variations and reduces the strong preference for piecewise-constant plateaus. It can therefore be useful for denoising signals or images containing both smooth regions and sharp transitions. It still penalizes edges and can bias their amplitude, and it does not guarantee complete elimination of staircasing in total variation denoising. The unit threshold must be scaled appropriately for data units and grid spacing.
The indicator functional of a constraint set restricts the conjugate supremum to . Complete the square:
Its maximizer is when , and the nearer endpoint otherwise. The convex conjugate of a constrained quadratic is therefore
This is the unit-threshold Huber loss; both branches and their first derivatives agree at the transition points. The original PDF constrains , including both signs; the damaged TeX loses that absolute value.
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
For residual , minimize
over . Soft thresholding gives , and the minimized value is
This is for the usual Huber loss. Multiplication by the positive constant does not change the minimizing , proving equivalence.