Quantile loss weights underestimates and overestimates by the requested quantile. At the 80th percentile, each unit of underprediction costs 0.8, each unit of overprediction costs 0.2 and an exact match costs zero.
A forecasting contest took Walmart's sales history and turned it into a set of questions. Teams had to say how many items would sell and wait for the real figures to come in.
Two forecasts could miss by four items and earn different scores. Quantile Loss charges one rate for each item you miss by underestimating and another for each item you miss by overestimating.
In a stockroom, four items left over are a different problem from four items you can't sell because they're gone. Let's work through the contest's scorecard and see which part of that decision it can help with.
How it works
In the uncertainty track of the M5 forecasting competition, the organizers handed out Walmart's earlier sales figures. They asked teams to turn in nine quantiles for future sales. The forecasts included a middle figure and numbers out toward either end.
Take the seventy-fifth percentile. You want a number that actual sales have at least a three-in-four chance of staying at or below, given what you know when you forecast. With whole items, choose the smallest number that meets that target.
- 01 · Name both costs Compare the cost of one unit too little and too much.
- 02 · Choose the quantile Use underprediction cost divided by both unit costs combined.
- +1 more mechanism steps & animation in the app
When it fails & limits
The judges were settling a contest, and you've still got a stockroom to run. Before using those scores to place an order, make sure the scoring rule looks enough like the way your bills arrive.
Unlock the full Quantile Loss lesson in ConceptFlow
You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.
- ▸5-minute English & Mandarin audio lesson
- ▸5 more deep-dive case & mechanism insights
- ▸All 4 failure boundaries & counter-examples
- ▸3-point decision checklist + 6-step practice
Tap a store button on mobile, or scan with your phone camera on desktop.