Expected Calibration Error
Definition
ECE summarizes how strongly predicted confidences differ from observed hit frequencies.
Predictions are usually divided into bins according to their confidence. For each bin, the absolute difference between mean confidence and observed accuracy is calculated and weighted by the number of his cases. Result and statement depend on binning and variant.
Simply explained
If a model says 80 percent, it should be about eight out of ten times right in the long run.
Why it matters in practice
Calibration supports thresholds, risk communication and manual escalation.
Example from business
Hypothetical example: A classifier is recalibrated on a separate calibration data set and then evaluated on independent test data.
Limits and pitfalls
- Interpret low ECE as a good classification; choose bins at will; ignore subgroups and distribution shift.
Origin & history
Calibration measures are based on probabilistic prediction; ECE has been disseminated in modern deep learning literature.
Use in mid-sized companies
- SMEs should use ECE alongside discrimination metrics, reliability diagrams and business consequences.
Frequently asked questions
Can an inaccurate model be well calibrated?
Yes. Is ECE clearly defined? No, variants differ.
Sources
Source verification: 10.10.2026. Definition and documented classification checked; examples describe possible applications.
Editorially reviewed on: