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 functionThe 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]
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.
Laplace location and scale maximum likelihood Created 2026-10-18 Updated 2026-10-25
Suppose , , are independent and identically distributed with Laplace distribution , where . For realized values , the likelihood function and log-likelihood function areFor fixed , maximum likelihood estimation of the location therefore minimizes the sum of absolute losses. This connects the Laplace distribution to robust statistics: each observation contributes a cost growing linearly with its distance, whereas squared-error loss grows quadratically.
Why does a sample median minimize ? Between successive order statistics, moving a little to the right increases each distance to a value on the left and decreases each distance to a value on the right. Hence the slope is the number on the left minus the number on the right. It changes from negative to positive at the middle. More precisely, if , all minimizing locations areFor an even sample size, the objective is flat throughout the interval between the two central order statistics. The midpoint convention for the sample median selects one solution; it does not prove uniqueness. [ref]
Laplace (Double Exponential, Bilateral Exponential) Distribution. SciPy 1.18.0 documentation; SciPy reference guide, Laplace distribution, ML location estimator and the even-N interval between the two central order statistics
This is the finite-sample counterpart of median minimizes expected absolute loss.If , maximizing over givesThe derivative is positive below this value and negative above it. Moreover the maximized likelihood function is proportional to wherever , so the same minimizing locations give the joint maximum-likelihood estimates. [ref]
1.3.6.6.12. Double Exponential Distribution. NIST and SEMATECH e-Handbook of Statistical Methods; NIST/SEMATECH e-Handbook, Section 1.3.6.6.12, Parameter Estimation; median and average absolute deviation formulas
The scale estimate divides by ; this formula is not an assertion that it is an unbiased estimator.The boundary case matters: if all observations equal , choose . Then and as . There is no finite joint maximum-likelihood estimate in the parameter space . In particular, this always occurs for . Writing does not produce an admissible Laplace distribution.
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 2 3F Solution Created 2026-09-24 Updated 2026-10-07
Expand around the expectation :Thus variance as the minimum mean squared error of a constant givesThe finite second moment also guarantees the finite first absolute moment needed below.
For a probability density function , splitting at givesLet be the cumulative distribution function. Since a density gives no mass at a singleton, differentiating under this integral yields . This derivative is nondecreasing, so is convex andThis is the median minimizes expected absolute loss property. The minimizer need not be unique: a gap in the density can give an interval of medians, all with the same loss.
