Applied AI Vol. 1 · 5 min read
You predict delivery time, and you want an interval that is wide for hard cases and narrow for easy ones, with a coverage guarantee you can trust.
Start with the problem
A basic split conformal interval for regression adds and subtracts one fixed amount, the calibrated residual quantile, around every prediction. That gives valid average coverage but ignores the fact that some inputs are noisier than others.
The two-step recipe
First, train a model to predict a lower and an upper quantile, for instance the 5th and 95th percentiles. Those quantile estimates already vary in width with the input, but they carry no guarantee.
Second, on a held-out calibration set, compute for each example how far the true value falls outside the predicted interval, counting negative when it is inside, and take the appropriate quantile of those scores. Widen, or even shrink, every interval by that amount.
What you get
Under exchangeability of calibration and test data, the final intervals cover the true value with probability at least the target level on average, and they keep the adaptive width from the quantile model. If the quantile regressor is poor, the intervals stay valid but become wide or uneven.
Checks to run
- Coverage overall and by slice, such as input range or customer segment.
- Average interval width, since an interval covering everything is valid but useless.
- Whether the width rises where error actually rises.
- Calibration data that match deployment conditions.
