Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Conformal Prediction: Uncertainty You Can Rely On
AI & Machine Learning

Conformal Prediction: Uncertainty You Can Rely On

Most confidence intervals rest on assumptions that do not hold. A method that gives coverage guarantees with almost no assumptions, and where it helps.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Conformal prediction wraps an existing model to produce intervals with a guaranteed coverage rate, using a held-out calibration set and almost no distributional assumptions. It is cheap to add and produces ranges that are honest about which cases are genuinely hard.

Confidence intervals that are not

Many models can output an interval, and most of those intervals rest on assumptions - a particular error distribution, constant variance - that business data rarely satisfies. The result is an interval that sounds rigorous and does not cover what it claims.

That matters when someone plans against it. An interval claiming 90% coverage that delivers 60% is worse than no interval, because it invites false confidence.

How conformal prediction works

The idea is simple enough to state in a paragraph. Train the model as usual, then set aside a calibration set the model has not seen. Measure how wrong the model was on each calibration case. To predict on a new case, use the distribution of those past errors to set the interval width.

  1. Train on the training set.
  2. Predict on a separate calibration set and record the errors.
  3. Choose a coverage level, say 90%.
  4. Find the error value below which 90% of calibration errors fall.
  5. For a new prediction, the interval is the point prediction plus or minus that value.

Under mild assumptions, that interval covers the true value about 90% of the time - and the guarantee does not depend on the model being correct, only on new data resembling the calibration data.

Where it is genuinely useful

  • Deciding what to review. Wide intervals mark cases the model finds hard - a better routing rule than confidence scores from the model itself.
  • Planning against a range. An interval with real coverage can be used for stock or capacity decisions.
  • Telling people the truth. Showing a range rather than a point sets expectations correctly and survives an inevitable miss.
  • Detecting drift. If observed coverage falls below the target, something has changed.

That last one is a useful by-product. Coverage is measurable as outcomes arrive, so the guarantee doubles as a monitoring signal.

Adaptive intervals

The basic version gives every prediction the same width, which is honest but blunt. Adaptive variants scale the interval by how difficult each case looks, giving narrow intervals on easy cases and wide ones on hard ones.

That is usually what you want operationally, because it separates cases worth a human look from cases that can proceed automatically - and it does so on a principled basis rather than an arbitrary score threshold.

What it does not do

The guarantee assumes new data resembles the calibration data. Under genuine distribution shift it degrades like everything else, so it is not protection against the world changing.

It also does not make the model better. A poor model produces wide intervals - correctly so. That is arguably its most useful property: it makes model weakness visible rather than hiding it behind a confident point estimate.

A wide interval is not a failure. It is the model telling you it does not know, which is worth a great deal.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

How much data does the calibration set need?

Enough that the chosen percentile of the error distribution is stable - typically several hundred cases at minimum for a 90% level.

Does it work with any model?

Yes, that is its appeal. It wraps an existing model without changing how it was trained.

Does it slow anything down?

Barely. The calibration is computed once and applying it at prediction time is trivial.

Is it suitable for classification too?

Yes, producing sets of possible labels rather than intervals, with the same coverage guarantee.

Keep reading

More on AI & Machine Learning

Start here

Want machine learning project details from us?

Tell us what you are trying to predict and roughly what data you hold. We will come back with an honest view on whether machine learning is the right tool, what the work would involve and a realistic cost range. If a spreadsheet would do the job, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →