Skip to main content
QUICK REVIEW

[Paper Review] Metrics of calibration for probabilistic predictions

Imanol Arrieta-Ibarra, Paman Gujral|arXiv (Cornell University)|May 19, 2022
Leaf Properties and Growth MeasurementAgricultural and Biological Sciences8 citations
TL;DR

This paper proposes empirical cumulative calibration errors (ECCEs) as a superior alternative to traditional binning-based metrics for evaluating probabilistic prediction calibration. By analyzing cumulative differences between observed and predicted probabilities, ECCEs avoid arbitrary binning or kernel bandwidth choices, offering greater statistical reliability and power without trade-offs between resolution and noise, with rigorous theoretical guarantees and strong empirical performance across diverse datasets.

ABSTRACT

Predictions are often probabilities; e.g., a prediction could be for precipitation tomorrow, but with only a 30% chance. Given such probabilistic predictions together with the actual outcomes, "reliability diagrams" help detect and diagnose statistically significant discrepancies -- so-called "miscalibration" -- between the predictions and the outcomes. The canonical reliability diagrams histogram the observed and expected values of the predictions; replacing the hard histogram binning with soft kernel density estimation is another common practice. But, which widths of bins or kernels are best? Plots of the cumulative differences between the observed and expected values largely avoid this question, by displaying miscalibration directly as the slopes of secant lines for the graphs. Slope is easy to perceive with quantitative precision, even when the constant offsets of the secant lines are irrelevant; there is no need to bin or perform kernel density estimation. The existing standard metrics of miscalibration each summarize a reliability diagram as a single scalar statistic. The cumulative plots naturally lead to scalar metrics for the deviation of the graph of cumulative differences away from zero; good calibration corresponds to a horizontal, flat graph which deviates little from zero. The cumulative approach is currently unconventional, yet offers many favorable statistical properties, guaranteed via mathematical theory backed by rigorous proofs and illustrative numerical examples. In particular, metrics based on binning or kernel density estimation unavoidably must trade-off statistical confidence for the ability to resolve variations as a function of the predicted probability or vice versa. Widening the bins or kernels averages away random noise while giving up some resolving power. Narrowing the bins or kernels enhances resolving power while not averaging away as much noise.

Motivation & Objective

  • To address the critical limitation of binning-based calibration metrics (e.g., ECE) that rely on arbitrary bin selection, which can drastically alter results and hinder reproducibility.
  • To develop a calibration evaluation method that avoids the inherent trade-off between statistical confidence and resolution power present in histogram- or kernel-based approaches.
  • To establish a theoretically grounded, parameter-free method for measuring miscalibration that is both statistically reliable and practically easy to implement.
  • To demonstrate through theory and empirical examples that ECCEs outperform traditional metrics in detecting miscalibration, especially at finite sample sizes.

Proposed method

  • Construct a cumulative plot by computing the cumulative sum of differences between observed outcomes and predicted probabilities across ordered predictions.
  • Define two key metrics: ECCE-MAD (maximum absolute deviation from zero) and ECCE-R (range of deviations), which quantify miscalibration directly from the cumulative plot.
  • Use asymptotic theory to derive P-values for ECCEs via methods from [17], enabling statistical significance testing without relying on resampling or bootstrapping.
  • Replace histogram-based binning and kernel density estimation with a non-parametric, continuous cumulative difference function that preserves all data without discretization.
  • Apply the cumulative approach to real-world datasets (e.g., ImageNet-1000, wild boar, sunglasses) and synthetic data to compare performance against ECE under varying binning schemes.
  • Demonstrate that ECCEs are invariant to binning choices and maintain consistent performance across different sample sizes and data distributions.

Experimental results

Research questions

  • RQ1How does the choice of binning scheme affect the reliability and consistency of traditional calibration metrics like ECE?
  • RQ2Can a calibration metric be developed that avoids the trade-off between resolution and statistical confidence inherent in binned or kernel-based methods?
  • RQ3What are the theoretical and empirical advantages of using cumulative differences between observed and predicted probabilities for calibration assessment?
  • RQ4How do ECCEs compare to ECE in detecting miscalibration across diverse datasets and sample sizes?
  • RQ5Can ECCEs provide asymptotically valid P-values for statistical significance testing without requiring additional tuning or resampling?

Key findings

  • ECCEs eliminate the need for arbitrary binning or kernel bandwidth selection, which otherwise lead to inconsistent and unreliable ECE values across different configurations.
  • The ECCE-MAD and ECCE-R metrics are statistically more powerful than ECEs, requiring significantly fewer observations to detect the same level of miscalibration due to the absence of a resolution-confidence trade-off.
  • For the ImageNet-1000 dataset (n = 1,281,167), ECCE-MAD and ECCE-R both reached 111.7 / σₙ, with asymptotic P-values of zero to double-precision accuracy, indicating profound statistical significance of miscalibration.
  • In the wild boar (n = 1,300) and sunglasses (n = 1,300) datasets, ECCE-MAD and ECCE-R were 10.14 and 8.004 / σₙ respectively, again yielding P-values of zero, confirming strong statistical evidence of miscalibration.
  • The ECCE approach is invariant to data ordering and does not require tuning parameters, making it more robust and easier to apply than ECE-based methods.
  • Theoretical analysis proves that ECCEs achieve consistency and power with fewer samples than ECEs, especially in the limit of large samples, due to the absence of binning-induced bias and variance trade-offs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.