Quantile forecasting

Also known as: quantile regression forecasting

On this page 8

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 levelInterpretationTypical use
0.1Value exceeded 90 percent of the timeLower bound, minimum commitment
0.5Median outcomeRobust central estimate
0.9Value exceeded 10 percent of the timeSafety stock, capacity buffer
0.95 to 0.99Rare high outcomesService level targets, peak planning
Common quantile levels and their uses

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 typeWhat the model producesStrengthWeakness
Point forecastOne value per time stepSimple to use and evaluateNo uncertainty information
Quantile forecastSelected quantiles per stepDistribution-free, decision-readyNo joint information across steps
Parametric distributionParameters such as mean and varianceFull density, any quantileWrong shape assumption biases tails
Sample pathsMany simulated trajectoriesCaptures dependence over timeCostly, needs many samples
Conformal intervalsCalibrated bands around a base modelCoverage guarantees under exchangeabilityWeaker under distribution shift
Ways to represent forecast uncertainty

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.

MetricWhat it measuresInterpretation
Mean pinball lossAccuracy at each quantile levelLower is better, comparable across models
Empirical coverageShare of actuals below each quantileShould match the nominal level
Interval widthDistance between paired quantilesNarrower is better at equal coverage
Weighted quantile lossPinball loss scaled by actual volumeUsed in many retail benchmarks
CRPS approximationAverage pinball loss over many levelsSummary of the whole distribution
Metrics for quantile forecast evaluation

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.

SituationRecommended levelReason
Perishable goods0.5 to 0.7Overstock spoils, costs are balanced
High-margin items0.8 to 0.95Stockouts cost more than surplus
Grid reserve planning0.95 to 0.99Shortfalls are very expensive
Staff scheduling0.6 to 0.8Moderate buffer for peaks
Decision situations and suitable quantile levels

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.