LIVE EXHIBITPrediction inspection line
BASELINE

Predicted confidence and observed correctness agree on average. The points should sit close to the ideal diagonal.

TUNE THE MODELChange one condition at a time
PRESETS
MEASURE, THEN COMPAREHeld-out calibration experiment
TRAIN / TEST SPLIT

Fit a two-parameter logistic calibrator on the training half, then measure its reliability on predictions it has not seen.

Test ECE before illustrative—
Test ECE after fit illustrative—
Measured slope vs textbook τ—
Measured intercept vs textbook Δ—

The expected mapping is logit(correctness) = Δ + τ × logit(reported confidence).

MODEL SANITY CHECKSIndependent numerical checks
4 / 4 PASS
✓
Brier expectationMonte Carlo score vs analytic expectation
—
✓
Outcome accountingCorrect + incorrect equals test count
—
✓
Reliability-bin accountingAll test cases assigned exactly once
—
✓
Logistic round-tripσ(logit(score)) recovers the score
—

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:

σ(z) = 1 / (1 + e−z)

For each synthetic example, the latent score is s. The reported confidence and the probability of a correct prediction are:

c = σ(logit(s) / τ)
q = σ(logit(s) + Δ)

Combining the two gives the exact calibration relationship:

logit(q) = Δ + τ · logit(c)

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.