How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Predictive calibration and uncertainty under shift — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Calibration, proper losses, and surrogate classification
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- Conformal Prediction and Exchangeable Ranks
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Distribution shift and domain adaptation
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Estimators and Randomized Procedures
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Prediction problems, risks, and empirical minimization
- Predictive calibration and uncertainty under shift
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Signed and Complex Measures Hahn and Jordan
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
None yet.
4 · Examples, counterexamples and false statements
Calibration examples under validation and distribution shift
Example
Four finite cases separate probability calibration, accuracy, empirical calibration summaries, conformal coverage, and performance under a changed test law.
First, on a one-point probability space let and let the forecast be . Its top prediction is always correct, but its top confidence is . On any nonempty sample from this law, the one-bin ECE and MCE are both .
Second, take four validation labels and give every example logits . Fit temperature scaling on the finite candidate set . At temperature the forecast is ; at temperature it is . The validation NLL rule chooses temperature . Both temperatures predict class , while their one-bin ECE values are respectively and .
Third, let the feature be rare with probability and common with probability , let the true label always be , and use labels . Take one calibration pair and the test pair as independent draws from this same law, with trivial training information and fixed score . At miscoverage level , the split conformal set has marginal coverage but coverage conditional on the test feature being rare.
Fourth, let a source law put probability one on feature clean with label , and let a distinct target law put probability one on feature corrupted with label . Use the fixed score values , , , and . With one calibration example from the source law and , the split conformal threshold is , so the prediction set at a target feature is empty and target coverage is .
Example references
Top-label calibration: gives the event-integral condition used to check the first finite model.
Binned expected and maximum calibration error: gives the one-bin ECE and MCE calculations.
Validation temperature scaling: defines the finite-candidate validation NLL selection in the second model.
Positive temperature scaling preserves the maximizing class: proves that both temperatures keep the same maximizing class.
Split conformal prediction set for classification: defines the adjusted split score threshold and classification set.
Split conformal marginal coverage: gives the conditional-on-training exchangeable-coverage guarantee used in the third model.
Regular conditional distribution: specifies the conditional-kernel identity used for the finite constant kernel.
Exchangeable random elements: exchangeability means invariance of the joint law under every coordinate permutation.
Source and target joint laws, risks, and covariate shift: defines distinct source and target joint laws.
Log and Brier losses are strictly proper: strict propriety selects the forecast matching the empirical validation label law.
The natural logarithm as the inverse of the exponential function: gives for the exact softmax calculations.
The exponential addition formula : gives .
Lei et al., full paper, Section 2.2 and Appendix A.1: supplies the split conformal order-statistic construction and rank argument in an iid regression setting.
Tibshirani, full lecture notes, Sections 1.2–2.3: derives the adjusted score rank, conditional-on-training coverage, and the distinction from feature-conditional coverage.
Facts & Assumptions
Given: The four finite models in the Example, the stated deterministic score rules, and the finite validation and calibration samples.
Top-label calibration requires for every Borel . Top-label calibration
Binned ECE is the sample-size-weighted absolute accuracy-confidence gap, and MCE is the largest such gap over occupied bins. Binned expected and maximum calibration error
Validation temperature scaling minimizes the finite-sample mean negative log probability over a finite nonempty set of positive temperatures and returns the smallest minimizer. Validation temperature scaling
For every positive temperature, softmax has the same maximizing index set as its logit vector. Positive temperature scaling preserves the maximizing class
The split classification set uses , the th calibration score when , and when . Split conformal prediction set for classification
If the example tuple has a regular conditional distribution given the training sigma-field whose sections are exchangeable, the split set has conditional coverage at least ; this is not a subgroup-conditional assertion. Split conformal marginal coverage
A regular conditional distribution is an everywhere probability kernel whose evaluations satisfy the conditional-event integral identity. Regular conditional distribution
Exchangeability means that the joint law is invariant under every coordinate permutation. Exchangeable random elements
The logarithmic score is strictly proper on the finite probability simplex. Log and Brier losses are strictly proper
For positive , is the inverse of ; the exponential obeys . The natural logarithm as the inverse of the exponential function The exponential addition formula
A source-target pair consists of two probability laws on the feature-label product space, and they may be distinct. Source and target joint laws, risks, and covariate shift
In the rare-feature model, calibration and test examples are independent draws from the same finite joint law on feature-label pairs, and the training sigma-field is trivial. The score rule is fixed and measurable on the finite feature-label space.
In the clean/corrupted model, the calibration example is drawn from the source law and the test example from the distinct target law.
Verification
In the first model, and almost surely. For , the left side of [F1] is and the right side is , so top-label calibration fails despite accuracy . In the single occupied bin, [F2] gives both errors as .
By [F10], temperature gives first-class probability , while temperature gives . The empirical NLL is the log-score risk under the validation label frequencies . Strict propriety [F9] therefore makes the value at strictly smaller than at , so [F3] selects . By [F4], both temperatures predict class . Their one-bin gaps from the observed accuracy are and .
In the rare-feature model, and give , so the threshold is the single calibration score: it is for a rare calibration feature and for a common one. Write for the finite joint law of the calibration and test pairs; by [A1], , which is unchanged by swapping coordinates. For the trivial training sigma-field, whose only events are and the whole space, the constant kernel with value satisfies [F7]: the conditional-event integral is zero for and is the ordinary law identity for the whole space. By [F8] its section is exchangeable. The finite score rule is measurable, so [F6] applies and yields conditional-on-training marginal coverage at least .
If the test feature is common, its true-label score is for either possible threshold, so coverage is . If it is rare, its true-label score is , which is included exactly when the independent calibration feature is rare, an event of probability . Thus subgroup coverage is , while marginal coverage is .
In the clean/corrupted model, the calibration score is always , so gives . At the target feature, both candidate labels have scores or , hence neither belongs to and target coverage is . The calibration/test pair law assigns mass one to (clean, corrupted) and zero to (corrupted, clean), so it is not invariant under swapping; the exchangeability hypothesis in [F6] fails.
Remarks
Ovadia et al. report an empirical benchmark, not a general theorem. For their MNIST rotations and translations, their 80 corruption/intensity combinations on CIFAR-10 and ImageNet, their 20 Newsgroups class shift, and their Criteo categorical-token randomization, the reported behavior depends on the method and shift. In particular, temperature-scaling ECE rises with increasing corruption on CIFAR-10 and ImageNet, and its Brier score is worse than the vanilla method for the reported Criteo shift. Their method ordering differs between MNIST and the image benchmarks, so no universal ensemble ranking or calibration guarantee under shift follows. For fully out-of-label-set inputs, Ovadia et al. note that no ground-truth class lies in the model's label set; they report prediction-confidence and predictive-entropy histograms for those inputs rather than ECE. Their text experiments also plot confidence versus accuracy for mixtures of in-distribution and OOD examples.
Remarks references
Ovadia et al., full paper, Sections 2–5: specifies the evaluated models, datasets, shift families, metrics, and empirical conclusions summarized here.
Sources
- Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q. Weinberger, On Calibration of Modern Neural Networks, ICML 2017
- Yaniv Ovadia et al., Can You Trust Your Model's Uncertainty? Evaluating Predictive Uncertainty Under Dataset Shift, NeurIPS 2019
- Jing Lei et al., Distribution-Free Predictive Inference for Regression, JASA 113(523) (2018)
- Ryan Tibshirani, Conformal Prediction, Advanced Topics in Statistical Learning, Spring 2024