Skip to content
AI & Machine Learning Medium #calibration#reliability#probability

Calibration: Are Probabilities Honest?

A 70%-confident model should be right 70% of the time. The reliability diagram shows it.

A free, animated calibration: are probabilities honest? you can read here or embed on any website, from Scrollchart.

Calibration: Are Probabilities Honest?

Calibration: Are Probabilities Honest?Reliability diagram: a 70%-confident model should be right 70% of the time00.20.40.60.81.000.20.40.60.81.0Mean predicted probabilityObserved frequencyPerfect

Predicted probability bins on x-axis, observed frequency on y. The diagonal is perfectly calibrated. An overconfident model bows below; an underconfident one above. Temperature scaling and Platt scaling shown straightening the curve.

Good for

  • Probabilistic classification tutorials explaining why accuracy alone is insufficient
  • Healthcare and credit-risk AI articles where confidence estimates drive decisions
  • ML engineering content covering post-hoc calibration methods and production monitoring

Source & accuracy

This calibration: are probabilities honest? is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

Mapping confidence to accuracy

A well-calibrated classifier's predicted probabilities match reality. If a model predicts 70% confidence on 1000 samples, approximately 700 should be correct and 300 incorrect. A poorly-calibrated model might predict 70% on samples where only 50% are actually correct. The reliability diagram (calibration curve) plots predicted probability on the x-axis against actual frequency of the positive class on the y-axis. A perfect diagonal line indicates perfect calibration.

Calibration is different from accuracy. A model can be 95% accurate but poorly calibrated, and vice versa. For applications where you act on predicted probabilities (setting confidence thresholds, cost-weighted decisions), calibration matters as much as raw accuracy.

Diagnosing and correcting miscalibration

The reliability diagram reveals overfitting and underfitting. If the curve bulges above the diagonal, the model is overconfident (predicts high probability but is wrong more often than it thinks). If it stays below, the model is underconfident. Tree-based methods (Random Forest, Gradient Boosting) are often overconfident; logistic regression is usually well-calibrated.

Calibration can be improved post-hoc without retraining. Platt scaling (fitting a logistic regression on the model's predictions) or isotonic regression (a non-parametric calibration) can map predicted probabilities to true frequencies. For critical applications, a held-out calibration set is mandatory: never use the same test set for both model evaluation and calibration, or the calibration will be optimistic.

Embed this diagram

Add this animated calibration: are probabilities honest? to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated calibration: are probabilities honest? for any website.
Who uses it
AI/ML blogs, CS educators.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="calibration-curve-ml" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "Calibration: Are Probabilities Honest?" for my website?
Scrollchart provides "Calibration: Are Probabilities Honest?" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a calibration: are probabilities honest? in a developer or tech blog?
Copy the one-line snippet from the Scrollchart diagram page and paste it into your post HTML. It works in any static site generator, CMS, or hand-coded HTML page. The embed is a thin loader, not an iframe, so the content is fully in your DOM.