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.
Calibration, proper losses, and surrogate classification
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Complete Metrizability, Čech-Completeness, and Baire Category
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- 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
- Convex and Semicontinuous Functions on Rⁿ
- Convexity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Countability Axioms and Cardinal Functions
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Equivalent Forms of Completeness
- Estimators and Randomized Procedures
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite Probability Spaces and Random Variables
- Foundations of the Real Numbers for Analysis
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Independence Borel Cantelli and Zero One Laws
- Infinite Product Measures and Kolmogorov Extension
- Lebesgue-Stieltjes Measures and Distribution Functions
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Modes of Convergence for Random Variables
- 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
- Outer Measure and the Caratheodory Extension Theorem
- Pointwise Extended-Real Function Products
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Prediction problems, risks, and empirical minimization
- 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
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Separation Axioms: the Hierarchy
- 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
- Standard-Borel Real Codings and Determining Classes
- Statistical Experiments, Models and Identifiability
- Strong Laws of Large Numbers
- Subspaces, Products, and Quotients
- Suprema and Infima
- The Cantor Set, Baire Category, and Measure Zero in ℝ
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Lᵖ Spaces Holder Minkowski and Riesz Fischer
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The Riemann Integral in Rᵐ and Jordan Content
- The Riemann Integral: Definition and Integrability
- The Topology of Euclidean Space
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
- Weak Laws and Series of Independent Random Variables
2 · Logical flowchart
3 · Definitions, theorems and proofs
Strictly proper scoring rules on a finite label set
Definition
For an integer , let the label set be and let . A finite-label score loss is a function whose section is Borel measurable for every label . If the true label distribution is and the reported forecast is , its expected score loss is , where a term with contributes zero even when . The loss is proper if for every , and strictly proper if it is proper and equality implies . The logarithmic loss is , with , where is the natural logarithm; the Brier loss is .
Definition references
Loss functions and risk: a loss is nonnegative and measurable in its action for each fixed parameter; no measurability on the parameter space is required, and its risk is the corresponding extended nonnegative integral.
The natural logarithm as the inverse of the exponential function: is the inverse of the exponential function on positive reals.
The Borel sigma-algebra of a topological space: Borel subsets are the sets in the sigma-algebra generated by the open subsets of a topological space.
Wikipedia, Scoring rule: Definitions and Proper scoring rules specify forecasts, expected score, loss orientation, properness, and strictness; Categorical variables gives the finite-label logarithmic and Brier examples. The measurable extended nonnegative-loss conventions are stated explicitly here; the logarithmic reward example is negated.
Jensen's inequality for pairs of simplex-valued forecasts
Statement
For an integer , let with its subspace Borel sigma-algebra, and let with its subspace Borel sigma-algebra. Let be a probability space, let be measurable, and let be continuous and jointly convex, meaning for all and . Define coordinatewise. Then and
Statement references
Durrett, Theorem 1.6.2: scalar Jensen inequality for an integrable random variable.
Vaicenavicius et al., supplementary Theorem 2: applies convexity to the pair of conditional mean forecasts in each fixed bin.
Facts & Assumptions
Given: A probability space, a measurable -valued random vector , and a continuous jointly convex function .
is convex, closed, and bounded in finite-dimensional Euclidean space; it is therefore compact by Heine–Borel. Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line
A continuous map from a compact metric space to a metric space is uniformly continuous. Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous
Probability is total mass one, expectation is integration, and the integral of a nonnegative simple function is the finite weighted sum of its values. Probability measures and probability spaces Expectation of a nonnegative or integrable random variable The integral of a nonnegative simple function
A measurable sequence converging almost everywhere under one integrable majorant has convergent integrals. Dominated convergence
A measurable map is one whose preimages of measurable sets are measurable. A measurable function between measurable spaces
Proof
If has finite range with probabilities , then each coordinate of is a nonnegative simple function, so [F3] gives , a convex combination in . The real finite-range random variable is integrable. Its positive and negative parts are nonnegative simple functions, so applying [F3] to each and subtracting their finite expectations gives . Joint convexity now proves by induction on the number of positive weights: combine the first points into their normalized convex average, apply the induction hypothesis, then apply two-point convexity with weights and .
For set . This is a finite set with a canonical lexicographic order. For , put for and . Then , the coordinates sum to , and the first coordinate errors are below while the last is below . Thus some has . The product grid therefore approximates every point of within . List its finitely many points canonically as . Their relative open balls of radius cover , and the cells obtained by removing all earlier balls from each ball are Borel in the stated subspace sigma-algebra. Assign each point to its first covering ball; replacing on each cell by its center defines a measurable finite-range with everywhere. The grid, order and assignment are explicit, so no choice axiom is used.
Step 1.1 gives for every . Each coordinate of and is bounded by , so dominated convergence [F4] gives coordinatewise; because the coordinate constraints defining are closed, .
By [F2], is uniformly continuous on . Choose so that points within distance have -values within , and then choose with . The finite grid in step 1.2 is a -net, so for every . This is a common finite bound. Since , continuity gives pointwise; [F4] then gives .
Applying step 1.1 to each gives . By continuity of and steps 2.1 and 2.2, taking limits proves .
The negative reciprocal-power function is convex
Statement
For every real , the function defined by , with , is convex.
Statement references
Real powers for positive bases, with the zero-base positive-exponent convention: defines positive-base real powers and the zero-power convention used here.
Facts & Assumptions
Given: A real number and the stated real-power convention.
For and real , is continuous and differentiable with derivative . Continuity and derivatives of positive-base real powers
A twice differentiable function on an open interval with nonnegative second derivative is convex there. A twice-differentiable function on an open interval is convex if and only if its second derivative is nonnegative
For positive real and , , and . Real powers for positive bases, with the zero-base positive-exponent convention
Positive-base real powers satisfy . The exponent, product, quotient, and iterated-power laws for positive real bases and real exponents
A differentiable function with nonnegative derivative on an interval is nondecreasing there. On an interval , for continuous on and differentiable at every interior point: throughout gives nondecreasing, gives increasing, and give the two decreasing forms; conversely a nondecreasing has and a nonincreasing has wherever it is differentiable, and no strict converse is claimed
Proof
Put , so . If , then is affine and hence convex. If , on the derivative formula [F1] gives . Thus [F2] makes convex on .
In the second case as . Indeed, for put . The derivative is positive on , so [F5] makes increasing there; if , then by [F4]. Thus is continuous at zero with the stated value. For and , apply the convexity inequality on to and , then let ; continuity at zero and on positive inputs gives the inequality on . In the affine case the same inequality holds directly.
Source notes
This elementary lemma is derived locally from the published positive-real-power derivative and second-derivative convexity suppliers cited in its facts; no external source claim is imported.
Probability calibration and calibration error
Definition
Let , let be a random variable into the finite label set with its full power-set sigma-algebra on a probability space , and let be a measurable forecast, where . The forecast is fully reliable if for every label and every Borel set , It is classwise calibrated if for every and every Borel set , For the top-confidence calibration condition, define and , so ties go to the smallest label. The forecast is top-confidence calibrated if for every Borel set , A measurable function is a calibration function for if for every and every Borel set , When such a function is supplied and is measurable, the expected calibration error with discrepancy is .
Definition references
Supervised prediction problems: fixes the measurable instance and label spaces, the joint law, and measurable predictors.
Conditional expectation given a sigma algebra: the event-integral identities in this definition are the conditional-expectation characterization when the indicated versions exist.
Probability measures and probability spaces: a probability law is a measure of total mass one.
The Borel sigma-algebra of a topological space: Borel subsets are generated by the open sets of the simplex's Euclidean subspace topology.
Vaicenavicius et al., full paper PDF: reliability, calibration functions, and expected miscalibration are defined in Sections 2, 3.1, and 3.2.
A finite label has a conditional probability function
Statement
Assume AC. Let a supervised prediction problem have a measurable instance space , finite label set with distinct labels, the full power-set sigma-algebra on , and , and joint probability law on ; let and be its coordinate random variables and let , the sigma-algebra generated by . There is a measurable function , where has its subspace Borel sigma-algebra, such that for every label index and ,
Statement references
Supervised prediction problems: supplies measurable instance and label spaces, the joint law, and the coordinate random variables; here the finite label sigma-algebra is explicitly the full power set.
Conditional expectation given a sigma algebra: a conditional-expectation version is measurable with respect to the conditioning sigma-algebra and has the same integrals on its events.
Conditional expectation exists by radon nikodym: under AC, an integrable real random variable has a conditional-expectation version given any sub-sigma-algebra.
Durrett, Section 4.1: defines conditional expectation by event integrals and constructs it from Radon–Nikodym derivatives.
Facts & Assumptions
Given: AC; a finite-label supervised prediction problem with joint law and full power-set label sigma-algebra; the instance coordinate ; and the sub-sigma-algebra .
Assume AC, the choice principle used by the published conditional-expectation existence theorem. The Axiom of Choice
Each indicator is integrable because it is bounded by on a probability space; under AC, its conditional-expectation version exists and has the defining event integrals. Probability measures and probability spaces Conditional expectation given a sigma algebra Conditional expectation exists by radon nikodym
Conditional expectation preserves order and constants almost surely. Basic algebra and order properties of conditional expectation
A conditional-expectation version is unique almost surely. Conditional expectation is unique almost surely
Integrable functions equal almost surely have identical integrals over every measurable event. Two integrable functions are equal almost everywhere exactly when all of their indefinite integrals agree
Measurability is determined by preimages of measurable sets. A measurable function between measurable spaces
The family of all inverse images is a sigma-algebra because inverse images preserve complements and countable unions; by definition it is .
Finite sums, products by indicators, and level sets of measurable real functions are measurable. Closure properties of measurable functions used by the integral A measurable function between measurable spaces
Proof
For each , choose a version of , which exists by [A1,F1]. Order preservation and preservation of constants give almost surely by [F2]. Set and define to equal on and on . Since both pieces are -measurable, is -measurable; it takes values in everywhere and equals almost surely. By [F3], it has the same event integrals, so it remains a conditional-expectation version. Linearity shows that is a version of the conditional expectation of ; the constant 1 is another version, so [F6] gives almost surely. Hence almost surely.
For each label and rational , the event equals for some by [F5]. AC permits choosing these sets for the countable family of label-rational pairs. Define . For , ; for this sublevel set is empty and for it is all of . Thus each is measurable and takes values in by [F4,F7].
For every and , the rationals satisfying are exactly those with . Their infimum is when this value is below ; at value the rational set is empty and the filler gives the same value. Thus everywhere. The measurable set is well-defined by [F7]. Define on and off . Its coordinates are measurable. The inverse image of an open rational box in is a finite intersection of coordinate preimages, and these boxes form a countable basis, so is Borel measurable into and hence measurable into the subspace . It takes values in everywhere, and almost surely because almost surely.
For every and label index , the event belongs to . The conditional-expectation identity [F1] and almost-sure equality [F3] therefore give This is the claimed event identity for every class.
Log and Brier losses are strictly proper
Statement
For every and , the logarithmic and Brier losses in the definition of finite-label score loss satisfy , with equality only when . The expected logarithmic loss at the truthful forecast is finite, including when some coordinates of vanish.
Statement references
Strictly proper scoring rules on a finite label set: defines the simplex, expected loss, logarithmic loss, Brier loss, and propriety conventions.
The natural logarithm as the inverse of the exponential function: fixes the natural logarithm used in the logarithmic score.
Facts & Assumptions
Given: An integer and .
For , the expected-score term is zero even if the corresponding score is infinite; the logarithmic and Brier losses are the two functions in the definition. Strictly proper scoring rules on a finite label set
The expected score is the finite sum . Strictly proper scoring rules on a finite label set
Proof
If , then for , so [F2] gives . If , then for , so . At equality holds. Therefore for every , with equality exactly at .
If and for some , then [F1] gives , while because this is a finite sum of finite terms. Thus propriety is strict in this case.
Otherwise for every with . The truthful risk is finite, and cancellation on the support of gives Applying step 1.1 to yields If the displayed difference is zero, both nonnegative gaps in this chain are zero. Equality in step 1.1 then forces on the support of , and the second gap forces to have no mass outside that support. Hence . This proves strict propriety for the logarithmic loss.
Expanding the Brier loss and using gives whereas . Subtraction yields , with equality exactly when every . Thus the Brier loss is strictly proper as well.
Source notes
The distinct encyclopedia treatment gives the scoring-rule conventions and categorical formulas (with the logarithmic reward negated). Strictness is proved locally from the declared logarithm supplier, rather than imported from a representation theorem. The displayed finite-sum arguments above separately verify the boundary cases and under this library's nonnegative-loss convention.
Conditioning on a feature induces a calibrated forecast
Statement
Assume AC. Let a finite-label supervised prediction problem have measurable instance space and finite labels with the full power-set sigma-algebra, where . Identify label with its index when applying numbered-label calibration, so forecast coordinate always represents the event . For every measurable feature , there is a measurable such that is a conditional class-probability forecast given and is fully reliable. This includes the identity feature and a constant feature.
Statement references
A finite label has a conditional probability function: supplies the measurable simplex-valued conditional probability function and its event identities under AC.
Probability calibration and calibration error: full reliability is the event-integral identity for every Borel subset of the forecast simplex.
Facts & Assumptions
Given: AC, a finite-label supervised prediction problem with coordinate random variables , and a measurable feature .
Assume AC, as used in the finite-label conditional-probability lemma. The Axiom of Choice
There is a measurable such that for every measurable and label . A finite label has a conditional probability function
Full reliability means for every Borel and each label . Probability calibration and calibration error
A measurable map has measurable preimages of measurable sets. A measurable function between measurable spaces
Proof
Apply [F1] to the joint law of on , which is a measurable joint probability law because is measurable. Equip this law with simplex-valued constant predictors and the zero loss to obtain a supervised prediction problem; [F1] only uses its joint law. It supplies a measurable with for every . Set . For a Borel set , [F3] makes measurable; the event identity then gives . This is precisely the reliability identity [F2].
Since and were arbitrary, all label and Borel-event identities hold, so is fully reliable.
Source notes
Vaicenavicius et al. Proposition 1 states the reliability of a conditional class-probability forecast. The event-integral proof above makes the version and measurable-event hypotheses explicit.
The posterior forecast minimizes strictly proper scoring risk
Statement
Assume AC. Let and a finite label with the full power-set sigma-algebra, , have a joint probability law on standard-Borel spaces. For a proper finite-label score loss , a measurable posterior forecast minimizes the expected score loss among all measurable forecasts. If is strictly proper and the posterior forecast has finite expected score loss, equality of risk for another forecast implies almost surely.
Statement references
Strictly proper scoring rules on a finite label set: defines a proper or strictly proper nonnegative score loss on the finite label simplex.
Standard Borel spaces: standard-Borel spaces are measurably isomorphic to Polish spaces.
A posterior-risk minimizer minimizes prior risk: a measurable posterior-risk minimizer minimizes prior-integrated risk.
Disintegration of a joint law on standard borel spaces: supplies a measurable posterior kernel for the standard-Borel joint law.
Facts & Assumptions
Given: AC, a standard-Borel feature and finite label with joint law, and a proper score loss .
Assume AC, as required by standard-Borel disintegration and the Bayes-risk interface. The Axiom of Choice
A standard-Borel joint law disintegrates into a measurable posterior probability kernel given the feature. Standard Borel spaces Regular conditional distribution Existence of regular conditional distributions for standard borel targets Disintegration of a joint law on standard borel spaces
Properness says that for every class distribution , reporting minimizes over forecast actions . Strict propriety makes this minimizer unique. Strictly proper scoring rules on a finite label set
A finite-label score loss is jointly measurable on the finite label space and forecast simplex; its expected score is the nonnegative risk of the associated decision problem. Strictly proper scoring rules on a finite label set Loss functions and risk
Conditional risk integrals against the posterior kernel are measurable functions of the feature. Measurability of integration against a kernel
A nonnegative measurable function with integral zero is zero almost surely. A nonnegative measurable function has integral exactly when it vanishes almost everywhere
A measurable posterior-risk minimizing rule minimizes prior-integrated risk among deterministic and randomized decision rules under the stated standard-Borel model hypotheses. A posterior-risk minimizer minimizes prior risk
A nonnegative measurable function with finite integral is finite almost everywhere. A nonnegative measurable function with finite integral is finite almost everywhere
The nonnegative integral is additive for nonnegative measurable functions, and its integral over a measurable null set is zero. Additivity of the nonnegative Lebesgue integral A nonnegative integral over a null set vanishes
The Lebesgue integral is linear on integrable real functions. The Lebesgue integral is linear on
Defined arithmetic operations on measurable extended-real functions preserve measurability. Arithmetic and lattice operations preserve measurability whenever they are defined
Proof
By [F1], choose a measurable posterior probability kernel on the finite label set; identify it with the measurable vector . For each , the posterior expected score of reporting is , which is minimized at by [F2]. The posterior risk of this rule is measurable by [F4], so the rule meets the measurable-minimizer hypothesis in [F6].
To apply the Bayes-risk interface to the original joint law, let . For , define on feature events ; for , set . Each is a probability measure, and the finite map is a probability kernel. The joint prior-data law built from prior and kernel agrees with the original joint law because for every and its mass is , including zero-prior labels. Consequently the Bayes-risk theorem [F6] states that the posterior rule minimizes the original expected score risk over all measurable randomized forecasts, hence over deterministic forecasts.
Now suppose is strictly proper and another measurable forecast has the same risk as , whose risk is finite by hypothesis. Write and . They are nonnegative measurable functions by [F3,F4], and posterior disintegration gives their integrals as the two risks, so both integrals are finite. By [F7], the measurable set is null. Set and off , and set both to zero on ; these modified functions are measurable by [F10]. By [F8], the changes preserve their integrals: each original function is the sum of its restriction to and its restriction to the null set . The functions are finite and integrable. By propriety, is nonnegative, and it is measurable by [F10]; [F9] gives . Thus [F5] makes almost surely. Off this is equality of the finite posterior risks, so strict propriety in [F2] gives almost surely.
Source notes
The local definition supplies pointwise propriety; this proof integrates that defining inequality against the posterior law and does not import any scoring-rule representation theorem. The standard-Borel and Bayes-risk suppliers provide the measurable posterior and its prior-risk interpretation. Finite posterior risk is stated explicitly because equality of two infinite extended risks alone cannot yield uniqueness.
Binary surrogate classification risk
Definition
Let be the label in a supervised prediction problem with the full power-set sigma-algebra on this binary label set, and choose the finite-label conditional probability function ordered as ; write . Let be finite, convex and nondecreasing. It is continuous on ; extend it to by its one-sided monotone limits, which may equal . The resulting extended function is Borel measurable. For define the conditional margin risk using at endpoints. A measurable extended-real conditional minimizer is a measurable satisfying for every and every . For a measurable real-valued score , its margin loss is , its surrogate risk is , and its conditional-minimum risk is . Under the zero-score-is-error convention, its classification risk is , and the Bayes classification risk is . Write for the centered conditional class probability.
Definition references
Supervised prediction problems: fixes the measurable instance and label spaces and joint law.
A finite label has a conditional probability function: the chosen is a measurable version whose event integrals give the conditional label probabilities.
Population and empirical risk: population risk is an extended nonnegative integral of the loss under the joint law.
Loss functions and risk: fixes the loss and risk conventions used for the margin loss.
A measurable function between measurable spaces: a function is measurable when preimages of measurable sets are measurable.
A convex function on an open convex set is continuous: every finite convex function on the open convex set is continuous.
Fixed-bin calibration limits underestimate for jointly convex discrepancies; refining bins can be consistent
Statement
Let be a random variable into with its full power-set sigma-algebra, , and let be a random forecast with measurable calibration function . Let be continuous and satisfy . For a finite data-independent Borel partition of , draw an iid sequence from the joint law of , let be the corresponding standard basis vector, and form the empirical estimator where and, when , and are the sample averages in bin ; when , set both to any fixed . Define For each fixed , almost surely. If is additionally jointly convex, then . Without requiring convexity, if is a sequence of finite data-independent Borel partitions whose mesh tends to zero, where , and is Lipschitz with respect to the Euclidean metric on , then . Thus the iterated limit equals the expected calibration error almost surely; no diagonal rate is asserted.
Statement references
Probability calibration and calibration error: defines a calibration function, the event-integral identity, and expected calibration error.
The Borel sigma-algebra of a topological space: Borel sets are generated by the open sets in the forecast simplex topology.
Kolmogorov iid l1 strong law: gives almost-sure convergence of averages of iid integrable real random variables.
Jensen's inequality for pairs of simplex-valued forecasts: gives Jensen's inequality for the pair of mean label and forecast vectors in each bin.
Facts & Assumptions
Given: A finite-label random forecast with calibration function , a continuous discrepancy (additionally jointly convex for the underestimation conclusion), and the iid sample and finite partition specified above.
For every label and Borel bin , . Probability calibration and calibration error
A measurable simplex-pair random vector and continuous jointly convex function satisfy , and the mean pair lies in . Jensen's inequality for pairs of simplex-valued forecasts
Measurable coordinate functions of independent observations remain independent; applying the same measurable map to identically distributed observations gives identically distributed outputs by the preimage identity. Averages of iid integrable real variables converge almost surely to their means. Identical distribution and IID families Measurable coordinatewise functions preserve independence Kolmogorov iid l1 strong law
The simplex and its product are compact subsets of finite-dimensional Euclidean spaces, and a continuous function on a compact metric space is uniformly continuous. Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line Heine-Cantor: a continuous map from a compact metric space to any metric space is uniformly continuous
The Euclidean distance is a metric on ; its formula gives . as the set of functions , and , , are metrics on it
Proof
Fix a partition . For every bin and each coordinate, the variables , , and are bounded iid real variables: the same measurable coordinate map is applied to each iid pair, so the outputs have the same law by taking preimages, and their independence follows from [F3]. Their sample averages therefore converge almost surely to their expectations. On the event , division by gives convergence of the bin means to and . On a zero-probability bin every sample has count zero almost surely. Since the partition and label set are finite, these convergences hold together almost surely; continuity of then gives . By [F1], coordinatewise.
Let be the maximum Euclidean diameter of a cell of . For any fixed , the function is continuous and jointly convex: the metric triangle inequality gives continuity in , and for by the triangle inequality and homogeneity in [F5]. For a positive-probability bin , define . If , apply [F2] under to the simplex pair . It gives . Apply the same argument to to obtain . Thus the Euclidean distance between the ordered pairs is at most . By [F4], is uniformly continuous on the compact product simplex, so the absolute difference between the bin value and is bounded by a modulus tending to zero with , uniformly over all bins and . Integrating over bins yields .
For the underestimation conclusion assume additionally that is jointly convex. For each positive-probability bin define the conditional probability measure . Under , the pair takes values in . Apply [F2] to and multiply by to obtain Summing over the partition proves .
For each fixed , step 1.1 gives the almost-sure limit in . There are countably many , so the intersection of these probability-one events still has probability one; step 1.2 then gives the iterated limit as stated. This order takes the sample-size limit before the partition refinement and makes no claim about a jointly chosen diagonal sequence.
Source notes
Vaicenavicius et al. Theorems 1–2 and Appendix A.2 provide the fixed-bin Jensen lower bound and the iterated refining-bin consistency route. The proof here explicitly handles empty bins, zero-mass bins, and the order of limits.
Binary zero-one excess risk with a zero-score error convention
Statement
For a binary supervised problem with the full power-set sigma-algebra on , conditional positive-label probability , and any measurable real-valued score , use and . Then
Statement references
Binary surrogate classification risk: fixes , , and , including the zero-score-is-error convention.
Mohri et al., Lemma 4.5, printed pp. 74–75 (PDF pp. 91–92): the source predicts at zero, and its displayed equality overcounts when and ; the corrected zero-score-is-error identity above is proved here.
Facts & Assumptions
Given: A binary supervised problem, its conditional probability function , and a measurable real-valued score .
For every measurable feature event , . A finite label has a conditional probability function
is the population risk of the indicator loss , and . Population and empirical risk Binary surrogate classification risk
A measurable real-valued function has measurable preimages of Borel intervals, including its sign sets and the threshold set . A measurable function between measurable spaces
Proof
Put and , which are measurable by [F3]. The event is the disjoint union of and . Applying [F1] to and using gives Subtracting [F2]'s Bayes-risk integrand reduces the identity to a pointwise comparison for each .
Fix and abbreviate . If , then on the conditional risk is and the excess is zero; on it is , so the excess is ; on it is , so the excess is . If , the same three cases , , and give excesses , , and , respectively. If , every nonzero score has excess zero and a zero score has excess . In each case the excess equals .
Integrating the pointwise equality in step 2.1 and using step 1.1 proves the displayed risk identity.
The right side of the identity is nonnegative, so every measurable score has risk at least . Define when and otherwise. Its two level sets are measurable by [F3]; at each , its conditional zero-one risk is , including equality at . Thus , verifying that the stated Bayes risk is the attained infimum.
The unadjusted surrogate-regret bound has the wrong scale and tie convention
Statement
The following proposed implication is false. In the binary-surrogate setup, take , so zero scores count as errors. If and for every , then every measurable real-valued score with finite surrogate risk satisfies Even replacing by does not make this zero-remainder implication true under the stated zero-score-is-error convention.
Statement references
Binary surrogate classification risk: specifies the full convex nondecreasing nonnegative margin-loss setup, extended conditional minimizer, and both risks.
Facts & Assumptions
Given: The proposed implication and the zero-score-is-error convention in the statement.
The conditional risk is and . Binary surrogate classification risk
Refutation
Give the one-point feature space its power-set sigma-algebra and take surely. Let , a finite nonnegative nondecreasing convex function: each affine term is nondecreasing and their maximum satisfies the convexity inequality by bounding each affine term at a convex combination by the corresponding convex combination of the two maxima. Here , , and the constant minimizer has risk zero. With , the margin premise is , an equality. For , classification excess is and surrogate excess is , whereas the claimed bound is since its square is . All scores and risks are measurable and finite. Thus the proposed coefficient is false even without zero scores and with a finite conditional minimizer.
Independently use the same one-point feature space and hinge loss, but let each label have probability . Then , with equality at , so take . For the premise is and surrogate excess is zero. But while , so classification excess is . Both and times the zero surrogate excess vanish. This refutes the uncorrected tie convention independently of the scale defect and completes the refutation.
Source notes
The displayed false implication preserves the controlling ML-07 formula exactly. Mohri et al. Theorem 4.7 instead puts in its premise and predicts at a zero score. Its regret theorem remains sound using an upper bound in place of its Lemma 4.5 equality at zero. The two witnesses here use the same approved class of losses and do not rely on any endpoint, selection, or limiting assumption.
Surrogate regret controls classification regret with explicit tie and scale terms
Statement
Assume AC and the binary-surrogate setup, including a measurable extended-real conditional minimizer . Let and . Suppose for every , Then every measurable real-valued score with finite surrogate risk satisfies the sound zero-score-is-error bound
In particular, if , the correction vanishes. Define instead the label classifier for and for , and write . For all scores covered above, including scores with zeros, Equivalently, parameterizing the same margin premise by gives coefficient in both inequalities, with the same zero-score correction when using .
Statement references
Binary surrogate classification risk: defines , the conditional margin risk, its minimizer, and the surrogate and classification risks.
Binary zero-one excess risk with a zero-score error convention: gives the exact classification-risk excess under the convention that zero scores are errors.
The negative reciprocal-power function is convex: supplies the convexity needed for the reciprocal-power Jensen step.
Facts & Assumptions
Given: AC, a binary supervised problem with , the selected conditional probability function , a finite convex nondecreasing margin loss , its measurable extended-real conditional minimizer , , , the displayed margin hypothesis, and a measurable real-valued score with .
Assume AC; it supplies the conditional-probability version used to define . The Axiom of Choice A finite label has a conditional probability function
The conditional class probabilities satisfy the event-integral identities for all measurable feature events. A finite label has a conditional probability function
The conditional loss is ; minimizes it over the extended real line; uses and is the population risk of . Binary surrogate classification risk Population and empirical risk
A nonnegative measurable function admits increasing simple approximations, and monotone convergence passes their integrals to the limit. Every nonnegative measurable function is the increasing limit of simple measurable functions Monotone convergence for the integral
A finite convex real function on is continuous. A convex function on an open convex set is continuous
For nonnegative integrable and convex on , Jensen gives . The negative reciprocal-power function is convex Jensen's inequality for expectation
The exact binary classification-risk excess is the sum of the wrong-sign term and the zero-score correction displayed in the risk-excess lemma. Binary zero-one excess risk with a zero-score error convention
Measurability is preserved by composition with Borel maps and by defined arithmetic operations on measurable extended-real functions. A measurable function between measurable spaces Arithmetic and lattice operations preserve measurability whenever they are defined
The nonnegative integral is additive on nonnegative measurable functions. Additivity of the nonnegative Lebesgue integral
A nonnegative measurable function with finite integral is finite almost everywhere. A nonnegative measurable function with finite integral is finite almost everywhere
The nonnegative integral of a measurable function over a null set is zero. A nonnegative integral over a null set vanishes
The nonnegative integral is monotone for pointwise ordered nonnegative measurable functions and homogeneous under positive finite real scalars. Monotonicity and nonnegative homogeneity of the nonnegative integral
Proof
Under AC [A1], the event identities [F1] imply, first for indicators and finite nonnegative simple functions and then by [F3] for every nonnegative measurable , that For simple this follows by finite additivity of the event identities; increasing simple approximation and monotone convergence give the general case.
The function is continuous by [F4], hence Borel; its endpoint extension by one-sided limits is Borel on the extended real line. Since is measurable, the measurable-map definition [F7] makes and measurable and nonnegative. Applying step 1.1 to these functions gives This identity also verifies measurability of the conditional-risk integrand used below.
Put and . Minimality gives and for every , so . Here is measurable: for the endpoint-valued minimizer, each weighted term is the limit of the measurable functions or , respectively; this also implements . For the score , put and . By step 2.1, , while pointwise because is finite. Additivity [F8] gives . By [F9], is measurable and null. Set on and on ; [F7] makes this finite representative measurable. Additivity [F8] and [F10] show that it has .
Fix , write , and let be a real score satisfying . For all real , convexity gives . If then , so monotonicity gives ; if then , so . The identity therefore shows whenever and . When , the same identity has zero second term and proves for every , so the conditional minimum is at and . Consequently, on one has ; the excluded set is null.
Almost surely on the event , we are outside the null set from step 3.1, so the margin hypothesis and step 4.1 give , hence . For nonnegative measurable integrands, [F8] and [F10] identify each full expectation with its integral on ; on that set the displayed inequality is pointwise, so monotonicity and positive-scalar homogeneity [F11] pass it to expectations and extract the factor . Apply the exact excess identity [F6], bound its first integrand in this way, and use to obtain
Put . For , , while for , ; hence . Monotonicity [F11] and additivity [F8] give by step 3.1, so is integrable. By [F5], Jensen applied to the integrable convex function gives by step 3.1. Substitution in step 5.1 proves the zero-score-is-error bound.
Under the correction has expectation zero. For the label classifier , at each its conditional excess over is on and zero elsewhere. This follows by comparing the conditional error for prediction and for prediction . This adverse-sign set is contained in the event of step 5.1, so steps 5.1 and 6.1 bound its expectation by without a tie correction. Finally, replacing by makes and proves the equivalent source parameterization.
Source notes
Mohri et al. Theorem 4.7 assumes the margin right-hand side is to obtain coefficient . The controlling plan instead has there, which yields . The source classifier predicts at zero, while the plan counts zero as an error; the exact local risk identity therefore requires the displayed zero-score correction. The original planned zero-remainder formula with coefficient is false: a deterministic positive label with natural-log logistic loss, , , and score satisfies its premise but has excess classification error . Independently, at the zero score has surrogate excess zero and zero-score-is-error excess , so changing only the coefficient cannot repair that convention. The corrected general bound and both clean specializations above retain the complete planned surrogate scope. Mohri Lemma 4.5 overcounts at zero under its own tie rule; only its valid upper bound is used here, proved directly in step 7.1.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Wikipedia contributors, Scoring rule: Definitions; Proper scoring rules; Categorical variables (logarithmic and Brier examples)
- Rick Durrett, Probability: Theory and Examples, 5th ed., Theorem 1.6.2
- Vaicenavicius et al., Evaluating Model Calibration in Classification, supplementary material, Theorem 2 and proof
- J. Lebl, Basic Analysis, Section 5.4, Logarithm and Exponential
- Vaicenavicius, Widmann, Andersson, Lindsten, Roll, and Schön, Evaluating Model Calibration in Classification, PMLR 89 (2019), Sections 2–4
- Rick Durrett, Probability: Theory and Examples, 5th ed., Section 4.1, pp. 205–207
- J. Lebl, Basic Analysis, Logarithm and Exponential
- Vaicenavicius et al., Evaluating Model Calibration in Classification, PMLR 89 (2019), Proposition 1
- Rick Durrett, Probability: Theory and Examples, 5th ed., Section 4.1
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 4, Section 4.7, printed pp. 75–77 (PDF pp. 92–94)
- Vaicenavicius et al., Evaluating Model Calibration in Classification, PMLR 89 (2019), Theorems 1–2 and Supplementary Appendix A.2
- Vaicenavicius et al., Evaluating Model Calibration in Classification, supplementary material, Theorems 1–2 and proofs
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 4, Section 4.7, Lemma 4.5, printed pp. 74–75 (PDF pp. 91–92)
- Mohri, Rostamizadeh, and Talwalkar, Foundations of Machine Learning, 2nd ed., §4.7, Theorem 4.7 (the source uses c^s and a +1 decision at zero; this item refutes the different planned formula)
- Mehryar Mohri, Afshin Rostamizadeh, and Ameet Talwalkar, Foundations of Machine Learning, 2nd ed., Chapter 4, Theorem 4.7 and proof, printed pp. 76–77 (PDF pp. 93–94)
- Rick Durrett, Probability: Theory and Examples, 5th ed., Sections 1.6.1 and 4.1