Improving forecasting by learning quantile functions

Youngsuk Park, Francois-Xavier Aubet31 Mar 2022

Problem

Statisticians usually approximate the quantile function one level at a time, for example the 95th percentile. A different level means a new regression and, for neural networks, a new training run. Because each model sees different local data, the predicted value at a higher probability can come out lower than the one at a lower probability (quantile crossing), so the forecast is invalid.

Example from the article: to guarantee that 95% of customers get orders within 24 hours, how much inventory is needed, and what changes if the guarantee drops to 94%? One learned function answers both without a new model.

Solution in brief

Train one network that outputs the quantile function at several evenly spaced probability levels, where each level is the previous one plus a non-negative increment. Values between levels come from linear interpolation, with a nonlinear extrapolation for the tails. For several variables at once, a second method defines the quantile function as the derivative of a convex function learned by a convexity-preserving network.

Questions this case answers
  • How to produce a full predictive distribution from a single model so that any quantile can be read off without retraining and without predicted quantiles contradicting each other
  • How to model dependence between several predicted variables when a multivariate quantile function is not uniquely defined
  • How to get a demand forecast at any quantile level without training a separate model for each level?
  • How to avoid quantile crossing when several quantiles are predicted by different models?

Tools and methods

  • Incremental quantile function (IQF) — univariate network whose quantile outputs cannot cross
  • Quantile regression — the standard single-level approach it replaces
  • Multivariate quantile function as a derivative of a convex function — joint forecast over several horizons or products
  • GluonTS — open-source library that contains these methods
Continue reading — it's free

Google or a one-time email code. No password.