What does the quantile (pinball) loss measure?
hardAnswer
- For quantile tau in (0, 1), pinball loss(r) = tau * r if r > 0 else (tau - 1) * r, where .
- Minimizing it fits the conditional tau-quantile of y given x. → median (equivalent to MAE). → 90th percentile prediction — great for delivery-time SLAs, inventory sizing, risk quantiles.
- Fit multiple quantiles to construct prediction intervals: e.g., 0.05 and 0.95 give a 90% interval.
- Used by quantile regression, LightGBM's quantile objective, and neural nets with pinball loss.
Check yourself — multiple choice
- Same as MSE
- Asymmetric loss that fits the τ-quantile of the conditional distribution
- Only defined for τ = 0.5
- Not related to quantile regression
Pinball loss fits any conditional quantile — median at τ=0.5, tails at τ=0.05/0.95.
#metrics-regression#regression
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- What is Huber loss and why is it a compromise between MAE and MSE?
- When would you use quantile regression instead of predicting the mean?
- Adding a feature raised R^2. Does that mean the model improved?
- Can R^2 be negative? What does that mean?
- When is quantile regression more useful than mean (OLS) regression?
- What criterion does a regression tree use to choose splits?