How does quantile (pinball) loss allow a supervised model to produce prediction intervals instead of single point predictions?

Last updated 14 November 2026

  • Pinball loss penalizes under- and over-prediction asymmetrically (weights τ and 1−τ), so its minimizer is the conditional τ-quantile of y given x.

  • Training models at a low and high τ (e.g. 0.05 and 0.95) gives an input-dependent interval that captures heteroscedastic noise.

  • Watch for quantile crossing (sort or train jointly). Coverage is not guaranteed, so use conformalized quantile regression (CQR) to recalibrate.

  • https://scikit-learn.org/stable/auto_examples/ensemble/plot_hgbt_regression.html
  • https://scikit-learn.org/stable/auto_examples/ensemble/plot_gradient_boosting_quantile.html
  • https://scikit-learn.org/stable/modules/generated/sklearn.metrics.mean_pinball_loss.html
All Supervised Learning interview questions