← Visualization gallery
Prediction · Reporting

Calibration Plot

Validation diagnostic for a risk model: observed event frequency versus predicted probability across risk strata, against the 45° line of perfect calibration.

Calibration Plot: Validation diagnostic for a risk model: observed event frequency versus predicted probability across risk strata, against the 45° line of perfect calibration.
When to use it

When validating a probabilistic prediction model — calibration (are predicted risks correct in magnitude?) is distinct from discrimination (ROC/AUC). A model can discriminate well yet be poorly calibrated and unsafe for decision thresholds.

How to read it

Points on the 45° line are well-calibrated; above the line means under-prediction, below means over-prediction. A consistent slope departure signals a need for recalibration (intercept/slope) before deployment.

Worked example

A risk model's predictions for 5,000 patients are grouped into deciles of predicted probability; within each decile the mean predicted risk (x) is plotted against the observed event frequency (y), with 95% binomial error bars.

Predicted risk ~ Beta(2,5); true event probability ≈ 0.92×predicted + 0.01 (mild over-prediction).

Result: The decile points track just below the 45° line, indicating slight over-prediction (observed ≈ 0.92 × predicted); discrimination is unaffected, but a recalibration slope of ~0.92 would bring predictions onto the diagonal.

Produced by

Reference: Gatto NM, Wang SV, Murk W, et al. Visualizations throughout pharmacoepidemiology study planning, implementation, and reporting. Pharmacoepidemiol Drug Saf. 2022;31(11):1140-1152.