When would you use quantile regression instead of predicting the mean?
mediumAnswer
- When the decision needs a range rather than a point.
- Inventory planning cares about the 90th percentile of demand, not the average, because stocking to the mean stocks out half the time.
- Delivery estimates quote a pessimistic quantile so most promises are kept.
- Quantile regression minimizes the pinball loss, which weights under- and over-prediction asymmetrically, and gives you an interval by fitting several quantiles.
- It is also robust to outliers, since the median is not pulled by extreme values the way the mean is.
- Available natively in LightGBM and scikit-learn.
Check yourself — multiple choice
- Never, the mean is always best
- When the decision needs a quantile or interval — pinball loss weights errors asymmetrically and is robust to outliers
- Only for classification
- Only when data is Gaussian
Quantile regression targets a percentile via the pinball loss, matching asymmetric decisions.
#regression#metrics-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?
- What does the quantile (pinball) loss measure?
- 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?