Quantile forecasting is a forecasting approach that predicts selected quantiles of the future distribution of a variable, such as the 10th, 50th and 90th percentiles, instead of a single point value. In time series & forecasting, it is the most common practical form of probabilistic forecasting, because it tells planners not only what is likely but also how wide the plausible range is.
The method is also called quantile regression forecasting, since most models are trained by minimizing the pinball loss, the objective that turns ordinary regression into quantile regression. Retail demand planning, energy load forecasting and cloud capacity planning rely on it because their decisions depend on asymmetric costs of over- and under-prediction.
What a quantile forecast states
A quantile forecast states a threshold that the future value should fall below with a given probability. A 0.9 quantile forecast of 500 units means that demand is expected to be at or below 500 units in 90 percent of comparable situations. Pairs of quantiles form prediction intervals: the 0.05 and 0.95 quantiles together define a central 90 percent interval.
The median, the 0.5 quantile, is a robust point forecast that minimizes absolute error rather than squared error. It differs from the mean whenever the distribution is skewed, which is typical for sales, web traffic and failure counts. The table below shows how common quantile levels are interpreted and used.
| Quantile level | Interpretation | Typical use |
|---|---|---|
| 0.1 | Value exceeded 90 percent of the time | Lower bound, minimum commitment |
| 0.5 | Median outcome | Robust central estimate |
| 0.9 | Value exceeded 10 percent of the time | Safety stock, capacity buffer |
| 0.95 to 0.99 | Rare high outcomes | Service level targets, peak planning |
How models learn quantiles with pinball loss
Models learn quantiles by minimizing the pinball loss, also called the quantile loss. For a target quantile level tau, the loss penalizes under-prediction by tau times the error and over-prediction by one minus tau times the error. At tau equal to 0.9, an under-forecast costs nine times more than an over-forecast of the same size, so the optimal prediction shifts upward until about 90 percent of observations fall below it.
This property makes quantile forecasting distribution-free: the model does not have to assume a Gaussian or any other parametric shape. Gradient boosting libraries, linear quantile regression, and neural forecasters such as the Temporal Fusion Transformer, MQ-RNN and many time series foundation models produce several quantiles at once from shared hidden features, with one output head per quantile level.
A known technical issue is quantile crossing, where an independently estimated 0.8 quantile ends up below the 0.7 quantile for some inputs. Common remedies include sorting the outputs, predicting non-negative increments between adjacent quantiles, or using monotone spline parameterizations of the full quantile function.
Quantile forecasts compared with other probabilistic outputs
Quantile forecasting is one of several ways to express forecast uncertainty, and each output format suits different decisions. The table compares the main options.
| Output type | What the model produces | Strength | Weakness |
|---|---|---|---|
| Point forecast | One value per time step | Simple to use and evaluate | No uncertainty information |
| Quantile forecast | Selected quantiles per step | Distribution-free, decision-ready | No joint information across steps |
| Parametric distribution | Parameters such as mean and variance | Full density, any quantile | Wrong shape assumption biases tails |
| Sample paths | Many simulated trajectories | Captures dependence over time | Costly, needs many samples |
| Conformal intervals | Calibrated bands around a base model | Coverage guarantees under exchangeability | Weaker under distribution shift |
A key limitation follows from this comparison: marginal quantiles for each step cannot simply be summed across a forecast horizon. The 0.9 quantile of weekly demand is not the sum of seven daily 0.9 quantiles, because daily errors are correlated. Aggregated decisions therefore need sample paths, a separate model trained at the aggregate level, or careful forecast reconciliation.
Evaluating quantile forecasts
Quantile forecasts are evaluated on two properties: calibration, meaning that the stated probabilities hold in practice, and sharpness, meaning that intervals are as narrow as possible while remaining calibrated. A model that always predicts extremely wide intervals is calibrated but useless.
| Metric | What it measures | Interpretation |
|---|---|---|
| Mean pinball loss | Accuracy at each quantile level | Lower is better, comparable across models |
| Empirical coverage | Share of actuals below each quantile | Should match the nominal level |
| Interval width | Distance between paired quantiles | Narrower is better at equal coverage |
| Weighted quantile loss | Pinball loss scaled by actual volume | Used in many retail benchmarks |
| CRPS approximation | Average pinball loss over many levels | Summary of the whole distribution |
Evaluation should use time series cross-validation with rolling origins, because coverage that looks correct on one test window can fail in another season. Checking coverage separately for high-volume and low-volume series is essential, since global averages often hide miscalibration in the long tail.
Choosing quantile levels for decisions
The right quantile level follows from the cost ratio of errors. In the classic newsvendor problem, the cost-minimizing order quantity is the quantile at underage cost divided by the sum of underage and overage costs. If a lost sale costs four times as much as an unsold unit, the optimal order is the 0.8 quantile.
| Situation | Recommended level | Reason |
|---|---|---|
| Perishable goods | 0.5 to 0.7 | Overstock spoils, costs are balanced |
| High-margin items | 0.8 to 0.95 | Stockouts cost more than surplus |
| Grid reserve planning | 0.95 to 0.99 | Shortfalls are very expensive |
| Staff scheduling | 0.6 to 0.8 | Moderate buffer for peaks |
Limitations and common mistakes
Quantile forecasting has practical pitfalls that experienced teams watch for. Extreme quantiles are data-hungry: estimating a 0.99 quantile reliably requires many observations of rare events, so tail forecasts are often unstable. Intermittent demand series with many zeros make low quantiles collapse to zero, which is correct but uninformative.
- Treating a 90 percent interval as covering 90 percent of the whole horizon jointly, when it holds only per time step.
- Training on one set of quantiles and interpolating distant levels without checking calibration.
- Ignoring distribution shift after promotions, holidays or regime changes, which breaks coverage.
- Reporting only pinball loss without coverage diagnostics, which hides systematic bias.
A non-technical view
A normal forecast gives one number, such as 300 customers tomorrow. A quantile forecast gives a range with odds attached. It might say there is a 10 percent chance of fewer than 250 customers. It might also say there is a 10 percent chance of more than 380.
Think of a weather report that says how likely rain is. You decide what to do based on how much getting wet would bother you. Businesses use these ranges in the same way. They pick the number that matches the cost of being wrong in each direction.
A concrete example
A grocery chain forecasts daily demand for fresh bread in 400 stores. A gradient boosting model trained with pinball loss predicts the 0.1, 0.5 and 0.75 quantiles for each store and day, using lag features, calendar features and local weather.
Because unsold bread is discarded at night while a missed sale loses a modest margin, planners order at the 0.75 quantile instead of the median. After a quarter of use, back-testing shows that actual demand stayed below the 0.75 forecast on about 74 percent of store-days, which confirms good calibration. Compared with the earlier point forecast plus a fixed 20 percent buffer, the chain reduced waste while keeping stockouts at a similar level, because the buffer now varies with each store’s uncertainty.