Expected calibration error calculator

Probability and confidence are not interchangeable. Inspect the bins behind a calibration summary, then switch interpretations to see what your forecast record actually shows.

Make the bins and meaning visible.

Enter recorded probability of Yes as a percent, then the resolved outcome: 1 for Yes or 0 for No. The example is fictional. Changing the interpretation changes what the diagram compares.

Bins include their lower bound and exclude their upper bound; the last includes 100%. A 50% tie predicts Yes in confidence mode. Empty bins have zero weight and no plotted point.

Top-label ECE
3.333 percentage points
Largest occupied-bin gap
5.000 percentage points
Records scored
6
Occupied bins
2 of 10

Confidence is max(P(Yes), P(No)); observed accuracy is the fraction of predicted labels that were correct.

0%0%25%25%50%50%75%75%100%100%Mean predicted-label confidenceObserved label accuracy
Dots summarize occupied bins; lines show the vertical gap from the diagonal reference. Bin counts are listed below. No uncertainty bands are estimated.
Occupied bins under the selected interpretation
Bin rangeCountMean inputObservedGap (pp)Weight
[50%, 60%)250.00%50.00%0.00 pp33.33%
[80%, 90%)480.00%75.00%5.00 pp66.67%

This is an equally weighted binary sample summary, not a fitted calibrator, validation of market resolutions, or proof of future accuracy. Report the interpretation, bin count, boundaries and sample-selection rule with a result.

Expected calibration error: the confidence definition

Guo and colleagues’ 2017 paper describes an empirical ECE that groups predicted-label confidence and weights each bin’s absolute accuracy-confidence gap by its fraction of samples. In symbols, ECE = Σ (nᵦ / N) × |accuracyᵦ − confidenceᵦ|. The paper’s experiments do not measure prediction-market or Alphascope performance.

This binary lesson predicts Yes at probability at least 50%, otherwise No. Confidence is max(p, 1 − p). A 20% Yes forecast therefore predicts No with 80% confidence; its correctness depends on whether No occurred. The tool’s lower-inclusive bin convention is declared above and differs from the paper’s upper-inclusive intervals. Specify your convention when comparing results.

A reliability diagram for Yes probabilities

In the alternate interpretation, keep p as the probability of Yes and compare each bin’s mean p with its observed Yes frequency. This view can reveal which side of an event forecast is off. It does not replace p with confidence in the predicted label.

For an original two-record example, enter 20,0 and 80,0 with ten bins. Confidence mode pools both 80%-confident labels: one correct and one incorrect. Its gap is 30 percentage points. Yes-probability mode separates 20% and 80% forecasts, with observed Yes frequency zero in each. Its weighted gap is 50 percentage points. The difference is a change in the question, not a calculation error.

Why the number of bins matters

Consider 40,1 and 60,0 in Yes-probability mode. With one bin, the mean probability and observed Yes frequency are both 50%, so the summary gap is zero. With two bins, each contains one record and the weighted gap is 60 percentage points. A zero coarse-bin result can hide large opposing errors.

Choose and report the bin rule before using a score to compare models. Do not search for whichever bin count makes your model look best. Empty bins provide no evidence; a one-record bin is also a weak basis for claims about a population. The chart plots occupied-bin means rather than fabricating points for empty ranges.

Interpret percentage points correctly

A mean confidence of 80% and observed accuracy of 75% differ by five percentage points. If that bin contains two thirds of the records, it contributes about 3.333 percentage points to the weighted summary. This is an absolute probability gap, not a 3.333% trading return or a guarantee about the next forecast.

The default fictional six-row example has top-label ECE of about 3.333 percentage points and a Yes-probability gap of about 16.667 percentage points with ten bins. Inspect its table rather than treating either total as a complete assessment of forecast quality.

What this calculator does not establish

It does not fit a new forecasting model, validate resolutions, estimate confidence intervals or prove that repeated observations are independent. Preserve timestamps, market IDs, outcome definitions and the forecast horizon. Keep losing forecasts, report exclusions and compare the same resolved sample.

To evaluate probability performance from a different angle, use the log-loss calculator and Brier score calculator. Neither score alone isolates calibration. Forecast quality also differs from trading profitability after prices, fees and execution.

Calibration diagnosis versus calibration fitting

For a worked fitting workflow, read our Platt scaling and isotonic calibration guide and run its synthetic Python example.

Platt scaling and isotonic regression are ways to fit a probability mapping, not synonyms for ECE. The scikit-learn calibration guide distinguishes evaluating reliability from fitting calibrated classifiers. Keep fitting and evaluation data separate when assessing an improvement; this tool applies no fitted transformation.

Sources reviewed October 13, 2026. These calculations are descriptions of entered binary records, not claims that a particular platform or AI model is calibrated.

Frequently asked questions

What is expected calibration error?

The binned confidence formulation averages absolute differences between observed label accuracy and mean predicted-label confidence, weighting each bin by its share of records.

Why does this tool offer two interpretations?

Predicted-label confidence and fixed Yes probability answer different questions. Confidence is compared with correctness; Yes probability is compared with observed Yes frequency. The tool labels each separately.

Does zero ECE prove my model is calibrated?

No. A finite binned sample can hide errors, especially with coarse or sparse bins. Zero in this summary does not establish population calibration or future accuracy.

Does this tool fit Platt scaling or isotonic regression?

No. It summarizes entered forecasts. Fitting a calibration model requires a separate procedure and appropriate training, calibration and evaluation data.