📉  Pinball Loss (a.k.a. Quantile Loss)

Pinball Loss (a.k.a. Quantile Loss)#

The loss minimised by an accurate quantile forecast.

Important

✨ AI-generated content. This page was written with the assistance of an AI language model and is provided as a learning aid. Despite careful review, it may still contain mistakes, omissions, or out-of-date information. Whether you are new to the topic, a team lead, or a senior practitioner, treat it as a starting point rather than an authoritative reference: read it critically and independently verify anything you act on (code, commands, figures, and factual claims) against official documentation and primary sources before relying on it.

What it is#

Pinball loss (a.k.a. quantile loss) scores a quantile forecast by penalizing errors asymmetrically — under- and over-prediction get different weights set by the target quantile \(\tau\):

\[L_\tau(y, \hat{y}) = \max\big(\tau(y - \hat{y}),\ (\tau - 1)(y - \hat{y})\big).\]

Minimizing it makes \(\hat{y}\) approach the true \(\tau\)-quantile.

Why asymmetry#

For a high quantile (say \(\tau = 0.9\)), under-predicting is penalized far more than over-predicting, pushing the forecast up to cover the upper tail — exactly what you want for a 90% prediction interval. At \(\tau = 0.5\) the two weights match and pinball loss reduces to (half) the MAE.

Where it’s used#

It trains and evaluates quantile regressors and probabilistic models that output intervals rather than points, without assuming any distribution. A caveat: fitting several quantiles independently can cause quantile crossing, where a lower quantile’s forecast exceeds a higher one’s.


Theme: Risk & Probabilistic Forecasting  ·  All terminology



See also

Source article Adapted (context, re-expressed) in our own words from: Pinball Loss (a.k.a. Quantile Loss) (insightful-data-lab.com).

Tags: purpose: reference topic: terminology level: advanced