Conformal Prediction for Forecasting

Conformal prediction constructs prediction sets with finite-sample coverage guarantees under exchangeability assumptions. In forecasting, it is commonly used to calibrate prediction intervals from residuals on a validation window.

The core idea is simple: measure recent forecast errors, choose a high quantile of those errors, and widen future predictions by that amount.

Split conformal intervals

For point forecasts and validation observations , define absolute residual scores:

Let be an appropriate empirical quantile of the scores. A conformal interval for a new point forecast is:

This symmetric form is easy to understand. Variants use asymmetric residuals, quantile models, horizon-specific scores, or locally weighted scores.

Time-series caveats

Standard conformal guarantees rely on exchangeability. Time series observations are ordered and often autocorrelated, so the assumption is not automatic. Practical forecasting variants use rolling calibration windows, horizon-specific residual pools, blocked calibration, or weighted residuals that emphasize recent errors.

The calibration period must follow the same feature availability rules as the final forecast. It should not include future outcomes relative to the forecast origin being simulated.

Calibration workflow

Run rolling-origin backtests and store point forecasts. On a calibration portion, compute absolute residuals by horizon. For each horizon, take the residual quantile matching the desired miscoverage level, then add and subtract that quantile from future point forecasts. Empirical coverage must be checked on later untouched origins.

If horizon 1 has residual quantile 8 and horizon 14 has residual quantile 31, the interval should usually be wider at horizon 14.

Practical guidance

  • Use separate calibration and evaluation periods.
  • Calibrate by horizon when error grows with horizon.
  • Consider segment-specific calibration when uncertainty differs by volume, season, or lifecycle stage.
  • Track both coverage and interval width.
  • Recalibrate when drift changes residual behavior.

Common failure modes

  • Assuming conformal coverage holds unchanged under strong temporal dependence or drift.
  • Calibrating on the final evaluation period.
  • Pooling residuals across horizons with very different error scales.
  • Building symmetric intervals for targets with strong lower bounds or skew.
  • Ignoring feature leakage in the backtests used for calibration.

Worked example

For six calibration forecasts, the absolute residuals are:

ObservationForecastAbsolute residual
1091
12111
13141
15141
18162
21221

With , the conformal rank is , so the selected residual radius is the largest calibration score, . Future point forecasts of 20 and 25 become intervals and . Time-series use needs calibration windows that respect temporal ordering.

Connections

Conformal forecasting wraps prediction intervals around residual or quantile scores. It pairs naturally with quantile loss, but its guarantees must be checked through forecast calibration and time-aware backtesting.

References