{
  "slug": "confidence-calibration",
  "term": "Confidence calibration",
  "aliases": [],
  "definition": "Confidence calibration requires predictions sharing a reported confidence to have a matching frequency of correct class predictions.",
  "note": "For predicted class C, confidence S and observed label Y, the population condition is P(Y=C | S)=S, almost surely. For a class-probability vector, C is an argmax chosen with a declared tie rule and S is its probability. Confidence ECE groups S and compares accuracy with mean confidence. [guo]\n\nPooling different predicted classes can conceal opposite errors; retaining the predicted label gives a different calibration requirement. [gupta-ramdas]\n\nConsider twenty synthetic binary observations: ten forecasts p=0.1 with no positive outcomes, and ten forecasts p=0.9 with eight positive outcomes. With class 1 predicted for p>=0.5, every confidence is 0.9 and 18/20 decisions are correct. Exact-confidence ECE is therefore 0. Yet the two predicted-label groups have accuracies 1 and 0.8; their count-weighted absolute confidence error is 0.1. Grouping by event probability also gives 0.1. [worked]\n\nA drive-failure probability and confidence that the chosen class is correct answer different questions. Specify which one a calibration chart evaluates. Finite sample agreement alone cannot establish a population property. [vaicenavicius]",
  "related": [
    "probability-calibration",
    "expected-calibration-error",
    "brier-score",
    "top-label-calibration"
  ],
  "citations": [
    {
      "id": "guo",
      "title": "Guo, Pleiss, Sun and Weinberger. On Calibration of Modern Neural Networks. ICML 2017, section 2 equations 1-3.",
      "url": "https://proceedings.mlr.press/v70/guo17a/guo17a.pdf",
      "accessed": "2026-11-23"
    },
    {
      "id": "gupta-ramdas",
      "title": "Gupta and Ramdas. Top-label calibration and multiclass-to-binary reductions. ICLR 2022; arXiv v4, section 2 equations 1-4 and Remark 2.",
      "url": "https://arxiv.org/pdf/2107.08353v4",
      "accessed": "2026-11-23"
    },
    {
      "id": "vaicenavicius",
      "title": "Vaicenavicius et al. Evaluating model calibration in classification. AISTATS 2019, sections 3.1-3.2 and 4.1.",
      "url": "https://proceedings.mlr.press/v89/vaicenavicius19a/vaicenavicius19a.pdf",
      "accessed": "2026-11-23"
    },
    {
      "id": "worked",
      "title": "Hesela: exact synthetic confidence, top-label and binary-event calibration example; model.py, test_model.py and results.json.",
      "url": "https://hesela.dev/research/calibration-conditioning/results.json",
      "accessed": "2026-11-23"
    }
  ],
  "provenance": [
    "Reviewed 2026-11-23: full primary-source sections identified in citations; terminology follows Gupta and Ramdas, not papers that use top-label as a synonym for pooled confidence.",
    "The twenty observations are a synthetic arithmetic example, not measured drive failures or a reproduction of neural-network benchmarks. Public code uses exact fractions and explicit positive-class tie breaking."
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [
    {
      "text": "A low pooled score need not imply reliable probabilities within each predicted class.",
      "citationIds": [
        "gupta-ramdas"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-23"
}
