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 forecastError Pinball loss
24-20.2
56-10.1
89-10.1
1013-30.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