Lably
Skip to content

Huber loss

Loss function used in robust regression

  • 2 min read
  • 5 chapters

Related on Lably

Through Statistics, Loss function and Outlier

Definition

The Huber loss function describes the penalty incurred by an estimation procedure f. Huber (1964) defines the loss function piecewise by Lδ(a)={12a2for |a|≤δ,δ⋅(|a|−12δ),otherwise.

This function is quadratic for small values of a, and linear for large values, with equal values and slopes of the different sections at the two points where |a|=δ. The variable a often refers to the residuals, that is to the difference between the observed and predicted values a=y−f(x), so the former can be expanded to

Lδ(y,f(x))={12(y−f(x))2for |y−f(x)|≤δ,δ⋅(|y−f(x)|−12δ),otherwise.

The Huber loss is the convolution of the absolute value function with the rectangular function, scaled and translated. Thus it "smoothens out" the former's corner at the origin.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Applied mathematics