CalcWorldHub
Free online calculator · no signup

Maximum Calibration Error (MCE) Calculator

Calculate maximum calibration error from empirical accuracy and confidence in matched bins.

4,000 tools
Maximum Calibration Error (MCE) Calculator — Mean confidence per bin (%), Empirical accuracy per bin (%) and calculation method
Maximum Calibration Error (MCE) Calculator: inputs and calculation method.

How to use this calculator

Calculate maximum calibration error from empirical accuracy and confidence in matched bins.

  1. Enter Mean confidence per bin (%), Empirical accuracy per bin (%). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Data science calculation

How this calculation works

Enter the mean confidence and empirical accuracy for each nonempty prediction bin, in the same order, as percentages from 0% to 100%. This calculator reports the largest absolute bin gap and does not choose bin edges or weights.

Inputs and units

confidencePct — Mean confidence per bin (%)
One mean predicted confidence percentage for each nonempty bin, in order.
accuracyPct — Empirical accuracy per bin (%)
Observed accuracy percentage for each matching confidence bin, in the same order.

Formula

Displayed formula

MCE (percentage points) = maxᵢ |accuracyᵢ - confidenceᵢ| across the supplied nonempty bins.

Method

Find the absolute difference between empirical accuracy and mean confidence in each bin, then select the largest difference. The result is the worst bin-level calibration gap for the binning supplied.

Worked example

For mean confidence [55%, 70%, 90%] and accuracy [60%, 64%, 85%], the absolute bin gaps are 5, 6, and 5 percentage points, so MCE is 6 percentage points.

Assumptions and limits

MCE depends on the selected bins and can be sensitive to sparse data. Enter only nonempty bins from the same evaluation set; this calculator does not select binning, estimate uncertainty, or replace other calibration and discrimination metrics.

Frequently asked questions

How is MCE different from ECE?

MCE reports the largest absolute confidence-accuracy gap among bins; ECE averages bin gaps using bin weights.

Should empty bins be entered as zero?

No. Include only nonempty bins with an empirical accuracy and mean confidence.

Does MCE depend on binning?

Yes. Changing the bin edges or number of bins can change the largest measured gap.

How do I use the Maximum Calibration Error (MCE) Calculator?

Enter Mean confidence per bin (%), Empirical accuracy per bin (%). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Maximum Calibration Error (MCE)?

For mean confidence [55%, 70%, 90%] and accuracy [60%, 64%, 85%], the absolute bin gaps are 5, 6, and 5 percentage points, so MCE is 6 percentage points.