Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Calibrated Probabilities: Making Model Scores Mean Something
AI & Machine Learning

Calibrated Probabilities: Making Model Scores Mean Something

Many models output confident-looking numbers that are not real probabilities. Why that matters for any decision involving money, and how to fix it.

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

A model score is not automatically a probability. If you multiply the score by a value to decide an action, it must be calibrated - meaning that among cases scored 70%, roughly 70% actually occur. Calibration is easy to check and usually easy to correct.

Ranking well is not the same as being right

Most classification models output a number between zero and one, and everyone treats it as a probability. Often it is not. It is a score that ranks cases correctly while being systematically too high or too low in absolute terms.

For ranking-only uses - call the top 200 leads - that is fine. The moment the number is multiplied by anything, it stops being fine.

Where uncalibrated scores cost money

Any expected-value calculation uses the probability directly. Expected value equals probability times value, so an error in the probability flows straight into the decision.

  • Deciding whether to chase an invoice based on recovery probability times amount
  • Setting a credit limit from default probability
  • Choosing whether to send an engineer based on failure probability times downtime cost
  • Pricing anything where risk is a component
  • Deciding whether a human should review a case

Illustrative arithmetic: if a model says 30% but the true rate among such cases is 10%, every expected value built on it is roughly three times too high, and the decisions that follow are wrong in a consistent direction.

Checking calibration

The check is straightforward. Group predictions into bands, and for each band compare the average predicted probability against the actual observed rate.

Predicted bandAverage predictionActual rateReading
0-20%0.100.09Well calibrated
20-40%0.300.18Over-confident
40-60%0.500.35Over-confident
60-80%0.700.52Badly over-confident

Plotted, this is a reliability diagram, and a perfectly calibrated model sits on the diagonal. Deviations show where the numbers cannot be taken at face value.

Fixing it

Calibration is corrected by fitting a simple adjustment from raw score to true probability, learned on data the model did not train on. It does not change the ranking, so nothing about the model's discrimination is lost - only the scale is corrected.

Some model families are better calibrated out of the box than others. Ensembles of trees are often over-confident at the extremes; models trained with heavy class rebalancing are almost always miscalibrated, because the training distribution no longer matches reality.

That last case is worth remembering. If you rebalanced your data to handle rare events, your probabilities need correcting back before they mean anything.

Say what the number means

Where a score is shown to staff, state plainly whether it is a probability or a rank. People reasonably assume 80% means eighty per cent, and will make decisions accordingly.

If it is only a ranking, present it as a band - high, medium, low - rather than a number that invites arithmetic nobody should be doing.

If a number is going to be multiplied by money, it had better be a real probability.

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 do I know if my model is calibrated?

Group predictions into bands and compare the average predicted rate against the observed rate in each. Do it on held-out data, not training data.

Does calibration improve accuracy?

Not in terms of ranking or classification accuracy. It corrects the meaning of the numbers, which is what expected-value decisions depend on.

Which models are worst affected?

Anything trained on rebalanced data, and tree ensembles at the extremes. Check rather than assume.

Does calibration drift over time?

Yes, along with everything else. Re-check it as part of routine monitoring, not only at launch.

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 →