Valid prediction intervals for regression problems

Nicolas Dewolf, Bernard De Baets, Willem WaegemanArtif. Intell. Rev 2023 · DOI · OpenReview

Abstract

In high-stakes regression tasks, point predictions are often insufficient for decision-making. This study provides a comprehensive comparative analysis of four major classes of methods for generating prediction intervals (PIs): Bayesian methods, ensemble methods, direct estimation, and conformal prediction. Our findings highlight a widespread issue with calibration in modern machine learning models, particularly when faced with skewed real-world data. We demonstrate that conformal prediction (CP) acts as a "universal fix," providing mathematical guarantees of validity across diverse datasets.

Introduction

Standard regression typically focuses on minimizing error to produce a single "best guess." However, in domains like medical diagnostics or autonomous driving, understanding the uncertainty of a prediction is critical. Prediction intervals (PIs) address this by providing a range that contains the true value with a specified probability (e.g., 90%).

The primary challenge is calibration: ensuring that the model's claimed confidence matches the empirical frequency of the true value falling within the interval. Many modern models are either "overconfident," producing narrow intervals that miss the target, or "conservative," producing intervals too wide to be useful. This paper investigates how to achieve valid, well-calibrated intervals that remain as narrow as possible.

Methodological Framework

The study evaluates and compares four distinct families of uncertainty estimation:

1. Bayesian Methods

Bayesian approaches use probability theory to update prior beliefs with observed data. The study specifically examines Gaussian Processes (GP) and their scalable counterparts, Stochastic Variational GPs (SVGP).

Algorithm 1: The Bayesian modelling framework used for uncertainty estimation.

2. Ensemble Methods

These methods estimate uncertainty by aggregating multiple models and measuring their disagreement. Techniques evaluated include Dropout Ensembles, Mean-Variance Estimators (MVE), and Deep Ensembles.

3. Direct Interval Estimation

Unlike standard models, these are trained specifically to output interval bounds. Quantile Regression (QR) is the primary example, utilizing a specialized "pinball loss" to target specific percentiles of the distribution.

4. Conformal Prediction (CP)

CP is a post-hoc framework applicable to any underlying model. It utilizes a small "calibration" dataset to adjust intervals, providing a mathematical guarantee of "marginal validity" (correct average coverage) as long as the data is exchangeable.

Experimental Evaluation

The methods were benchmarked against 10 diverse UCI repository datasets, ranging from engineering tasks (concrete, naval, turbine) to social and economic data (crime2, fb1, blog). These datasets vary in size from 135 to over 50,000 samples. Notably, datasets like fb1 and blog are highly skewed, serving as a "stress test" for methods that assume errors follow a standard bell curve.

Key Insights and Results

The "Gaussian Trap"

A significant finding is that many popular methods, such as Deep Ensembles or MVE, rely on the assumption that prediction errors follow a Gaussian (normal) distribution. On skewed real-world data, these methods often fail significantly, producing intervals that are either orders of magnitude too wide or completely miss the target coverage.

Predictive Power vs. Uncertainty Quality

The authors observed that a model’s accuracy in predicting the mean (e.g., $R^2$ score) is often decoupled from the quality of its uncertainty estimates. A model can be highly accurate at point prediction yet terrible at estimating its own uncertainty.

Conformalization as a Universal Fix

The most impactful result is that conformalization ensures valid coverage regardless of the underlying model's initial calibration. Once the CP framework was applied, every single method achieved the nominal 90% coverage across all 10 datasets. Without it, coverage fluctuated wildly, sometimes dropping as low as 30-60%.

Top Performers

Conformalized Quantile Regression (CQR) emerged as a standout approach, consistently yielding the narrowest (most informative) intervals while maintaining strict validity. While exact Gaussian Processes were naturally well-calibrated, they lacked the scalability required for larger datasets.

Conclusion and Future Work

While conformal prediction provides a robust solution for marginal validity, achieving "conditional validity"—where the interval is accurate for specific subgroups or "hard" cases—remains an open challenge. Future research should also address the breakdown of i.i.d. assumptions in time-series data and the impact of heavy-tailed outliers in modern digital datasets.

Summary updated

Abstract

Over the last few decades, various methods have been proposed for estimating prediction intervals in regression settings, including Bayesian methods, ensemble methods, direct interval estimation methods and conformal prediction methods. An important issue is the validity and calibration of these methods: the generated prediction intervals should have a predefined coverage level, without being overly conservative. So far, no study has analysed this issue whilst simultaneously considering these four classes of methods. In this independent comparative study, we review the above four classes of methods from a conceptual and experimental point of view in the i.i.d. setting. Results on benchmark data sets from various domains highlight large fluctuations in performance from one data set to another. These observations can be attributed to the violation of certain assumptions that are inherent to some classes of methods. We illustrate how conformal prediction can be used as a general calibration procedure for methods that deliver poor results without a calibration step.
BibTeX
@article{dewolf2023valid,
  author = {Nicolas Dewolf and Bernard De Baets and Willem Waegeman},
  title = {{Valid prediction intervals for regression problems}},
  journal = {Artif. Intell. Rev.},
  year = {2023},
  doi = {10.1007/s10462-022-10178-5},
}
Figure