The recipe has four steps, and none of them touches the predictor’s internals.
- Split the labelled data into a training set, a calibration set and a test set.
- Train any model on the training set.
- Compute scores on the calibration set and take the corrected quantile.
- Form the interval for each new input.
Both models reach the target coverage of 0.90 (0.898 and 0.897), even though one is a linear fit and the other a 50-tree forest. The forest’s intervals are a little wider, 191.6 against 185.8 on this data, which says that on a dataset this small the forest is not a better predictor: conformal prediction turned the difference in accuracy into a difference in interval width, which is exactly the right place for it to show up. Width, not coverage, is what you optimize once the guarantee is in hand.
Continue with the book
Explore the full treatment, worked examples, and exercises in Applied AI Under Uncertainty.
Companion article for Applied AI Under Uncertainty, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.
