Quantile Loss
Quantile loss, also called pinball loss, trains or evaluates a forecast for a chosen quantile. It is useful when underforecasting and overforecasting have different costs.
For quantile level , observation , and quantile forecast , the loss is:
Underforecasting is penalized more when is high. Overforecasting is penalized more when is low.
Interpretation
For , the forecast should be high enough that about 90 percent of observations fall below it. If the model predicts too low and , the error receives weight . If it predicts too high, the error receives weight .
The median forecast minimizes expected absolute error and corresponds to .
Crossing quantiles
When models estimate several quantiles independently, they can produce invalid ordering such as . This is called quantile crossing. It can be reduced with monotonic constraints, joint models, post-processing, or careful calibration.
Worked example
For , use where :
| 0.9-quantile forecast | Error | Pinball loss | |
|---|---|---|---|
| 2 | 4 | -2 | 0.2 |
| 5 | 6 | -1 | 0.1 |
| 8 | 9 | -1 | 0.1 |
| 10 | 13 | -3 | 0.3 |
The mean 0.9-quantile loss is . For the median forecasts , the mean pinball loss is . At , underpredicting is penalized nine times as much as overpredicting by the same amount, which is why high quantiles are useful for service-level decisions.
Connections
Quantile loss trains and evaluates conditional quantiles for probabilistic forecasting. It underlies prediction intervals, business-cost-aware forecasting losses, and conformalized interval methods in conformal prediction for forecasting.
References
- Romano, Patterson, and Candes, Conformalized Quantile Regression
- Hyndman & Athanasopoulos, FPP3: Evaluating distributional forecast accuracy
Nav