Predicted confidence and observed correctness agree on average. The points should sit close to the ideal diagonal.
Fit a two-parameter logistic calibrator on the training half, then measure its reliability on predictions it has not seen.
The expected mapping is logit(correctness) = Δ + τ × logit(reported confidence).
Differences are relative to the stated reference. The Brier check uses a six-standard-error Monte Carlo tolerance.
UNDER THE HOODThe science+
Governing equations TEXTBOOK
The logistic function maps a real-valued log-odds quantity to a probability:
For each synthetic example, the latent score is s. The reported confidence and the probability of a correct prediction are:
Combining the two gives the exact calibration relationship:
The experiment estimates an intercept a and slope b from training outcomes using logistic regression. In this constructed model, the theoretical values are a = Δ and b = τ.
How to read the exhibit
A reliability diagram groups predictions by reported confidence. Each point compares the average confidence in a bin with the fraction that were correct. Perfect calibration lies on the diagonal.
Expected calibration error (ECE) is the bin-size-weighted average absolute gap between those two quantities. The Brier score is the mean squared difference between a reported probability and its binary outcome.
What is simplified
Illustrative: the score distribution, domain shift, sample size and generated outcomes are synthetic. A single intercept and slope describe the entire environment. Real models can be miscalibrated differently across classes, groups, time, or score ranges.
Illustrative: the fit uses one random train/test split and a fixed number of confidence bins. ECE depends on bin choice and sample size; it is not a universal measure of model quality. Calibration does not establish discrimination, causal validity, fairness, or safety.
Textbook: the logistic equations, Brier expectation and probability accounting are standard mathematical identities. No external service or network data is used.