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.
Cross-validation risk, model selection, and comparison uncertainty
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Conditional Distributions and Regular Conditional Probability
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Estimators and Randomized Procedures
- 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
- limsup, liminf, and Subsequential Limits
- Loss, Risk and Decision Theory
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- 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
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sigma Algebras and Borel Sets
- Simple Field Extensions and the Construction of the Complex Numbers
- Statistical Experiments, Models and Identifiability
- Suprema and Infima
- The Lebesgue Integral and the Convergence Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Weak Laws and Series of Independent Random Variables
2 · Summary
Summary
For IID observations, a fixed weighted split schedule estimates the weighted risks at its training sizes; an independent randomized schedule averages those targets over its randomization law. In particular, a holdout estimate targets its smaller training sample, and equal-fold K-fold CV targets . The expectation identity does not make fold losses independent: a fixed balanced K-fold score has diagonal, within-fold, and between-fold covariance terms. We define common holdout and leave-out schedules, distinguish risk minimization from true-model identification, and prove the training-size target. Under a fixed, balanced K-fold design and symmetric learning rules, a finite-support argument shows that no variance estimator based on one observed sample is unbiased for every IID law where that variance is finite. The theorem leaves model-specific, asymptotic, and biased methods open and does not apply to dependent data without a design-matched split.
Items
- Cross-validation splits and training-size risk targets defines split, risk, and training-size target conventions.
- Risk estimation versus model identification separates predictive-risk selection from recovering a true model label.
- Holdout, leave-out, V-fold, and repeated cross-validation specifies holdout, LOO, LPO, V-fold, repeated, and paired procedures.
- Cross-validation estimates risk at its training sizes proves the expected score is the schedule-weighted risk at its training sizes, including holdout and fixed K-fold special cases.
- The covariance decomposition of a fixed K-fold score derives the three covariance components for fixed balanced folds.
- No universal unbiased estimator of K-fold cross-validation variance proves a universal unbiased variance estimator cannot exist under its stated setup.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Cross-validation splits and training-size risk targets
Definition
Let be a measurable sample space with probability law . For each training size , a learning rule is a measurable map , where is a measurable predictor space. This is a statistic in the sense of Statistics and estimators. Let be jointly measurable and assume is integrable under for every size used. The convention that risk is expected loss agrees with Loss functions and risk for nonnegative losses; the integrable real-valued case is used here as well. The product law is the joint law of independent observations by Independent random elements have product joint law.
The risk at training size is
where is independent of the training sample. A split of is a pair of disjoint nonempty sets with ; is the training index set and is the validation index set. For a fixed partition of into nonempty folds with , the equal-observation-weight cross-validation score is
where each training tuple is ordered by increasing index and . The risk corresponding to this design is the weighted training-size target . For equal folds of size , this target is ; it is not automatically , the risk after training on all observations.
Risk estimation versus model identification
Definition
Let be an observation space, let be a nonempty finite set of candidate labels, and for each let be a probability law on . For each and training size , let be a measurable learning rule into a common measurable predictor space. For a data law and loss satisfying the measurability and integrability hypotheses of Cross-validation splits and training-size risk targets, write
for its risk at training size ; when is fixed, write . A risk-minimizing selector chooses a label minimizing the specified risk criterion, such as or its cross-validation estimate; a fixed ordering of may be used to resolve ties. This objective compares expected predictive loss.
For each , a data-based selector is a measurable map , where has its discrete sigma-algebra. A true model label at sample size is a specified when the observations are IID with law . The selector sequence is model-consistent at when as . This identification objective is distinct from minimizing predictive risk: risk minimization alone does not assert that the family is identifiable, that one candidate is true, or that the minimum-risk label is the true label. The distinction between risk estimation/model selection for prediction and model identification follows Cross-validation splits and training-size risk targets's risk target and the source treatments cited below.
Holdout, leave-out, V-fold, and repeated cross-validation
Definition
Input: observations , learning rules , a loss , and a finite split schedule . Each is a split as in Cross-validation splits and training-size risk targets, , and . A randomized schedule is admissible only when its law is specified and is independent of the observations.
Output: the cross-validation estimate
with each training tuple ordered by increasing index.
Instructions: fit the rule on each training set, evaluate its loss on every observation in that split's validation set, average within that validation set, then combine the split averages using the declared weights. To compare two or more candidate rules, apply the same schedule and subtract their validation losses within each split before averaging; this is the paired comparison.
The following choices give standard procedures:
- Holdout: one split, with the chosen training set, , and weight .
- Leave-one-out: for , use splits , , with weights .
- Leave--out: for and , use one split for every -element subset , with , , and weight .
- -fold: for and a partition into nonempty folds, use , , and ; for equal folds this is .
- Repeated -fold: for , and , apply the -fold schedule to each of declared partitions and give fold weight . If partitions are randomized, record their independent randomization law and average under that law or over the declared finite repetitions.
These instructions define estimates only. Their validity as estimates of a deployment target depends on matching the split, sampling unit, training size, and averaging law to that target.
Cross-validation estimates risk at its training sizes
Statement
Let be IID with law . Let and satisfy the measurability and integrability hypotheses of Cross-validation splits and training-size risk targets at every schedule training size and also at size . For a fixed finite schedule as in Holdout, leave-out, V-fold, and repeated cross-validation, let be its cross-validation estimate. Then
In particular, a holdout split trained on observations has expected score . For a fixed -fold partition, this gives , and for equal folds of size it gives . For every fixed schedule, the bias for the full-sample risk is exactly ; it need not have a fixed sign without an additional monotonicity hypothesis on .
If a schedule is randomized independently of the observations and takes values in a finite set of such schedules, then, conditional on each realized schedule, the same formula holds; the unconditional expectation is the corresponding average of these training-size risks.
Facts & Assumptions
Given: The IID sample, measurable learning rules and integrable losses in the statement, and a finite split schedule. Prove the displayed expectation formula.
Identical distribution and IID families: IID means the variables have one common law and the whole family is mutually independent.
Independent random elements have product joint law: a finite independent family has joint law equal to the product of its marginal laws.
Cross-validation splits and training-size risk targets: is the expected loss from training on IID observations and evaluating on an independent test observation; the fixed-partition score averages held-out losses with weight per observation.
Holdout, leave-out, V-fold, and repeated cross-validation: each finite schedule consists of nonempty disjoint training and validation sets, nonnegative weights summing to one, and the score is the weighted average of within-validation-set loss averages.
Holdout, leave-out, V-fold, and repeated cross-validation: a randomized split schedule is admissible when its law is declared and independent of the observations.
Cross-validation splits and training-size risk targets: in addition to schedule training sizes, assume the full-sample loss is integrable, so is finite.
Holdout, leave-out, V-fold, and repeated cross-validation: in -fold validation, , , and .
Proof
Fix a split and an index . Since and are disjoint by [F4], . By [F1], the training observations and the test observation are independent, each with law . By [F2], their joint law is . Hence [F3] gives .
For a fixed schedule, its score is a finite sum of the integrable terms from step 1.1, so linearity of expectation and [F4] give .
By [A1], the full-sample target is finite. Subtracting it from step 2.1 yields . This expression has no fixed sign in general; if is nonincreasing, then each difference is nonnegative because .
Let the schedule be independently randomized with finite range. Conditional on any realized schedule , the sample remains IID with law by [F5], so step 2.1 applies and gives . Averaging this identity over the finite schedule law gives the stated unconditional expectation.
In a fixed -fold partition, [F6] gives , , and . Substituting these values in step 2.1 gives the displayed fold-size formula; equal folds of size give . The holdout claim is the one-split case , .
Remarks
The calculation uses linearity of expectation only; the fold losses may be dependent because their training sets overlap. It does not assert that a smaller training sample always has higher risk.
The covariance decomposition of a fixed K-fold score
Statement
Let with integers and . Let be IID, let be a fixed partition into folds of size , and let be a permutation-symmetric measurable learning rule with a measurable loss. For , write and assume . For a paired comparison, may instead be the difference of the two rules' losses evaluated using the same fold; assume both rules are symmetric and the differences are square-integrable. Define , for distinct indices in one fold, and for indices in different folds. When , set because there is no within-fold pair. These values are well-defined, and
Facts & Assumptions
Given: The fixed equal-fold design, IID data, symmetric learning rule(s), and finite second moments in the statement. Prove the covariance classes and variance formula.
Identical distribution and IID families: IID observations are mutually independent with a common law.
Independent random elements have product joint law: the joint sample law is , whose rectangle probabilities are products of marginal probabilities.
Moments, variance, and covariance on a probability space: for square-integrable real variables, variance is and covariance is .
Cross-validation splits and training-size risk targets: a fixed partition score is the average of the held-out fold losses.
Holdout, leave-out, V-fold, and repeated cross-validation: paired comparison uses the same split schedule for both rules and averages their foldwise loss differences.
Proof
By [F1], reordering the sample coordinates preserves their common law and mutual independence: the probability of any coordinate rectangle is the product of the same marginal probabilities in either order. Applying [F2] to the original and permuted tuples therefore gives the same joint law , so the sample distribution is invariant under every coordinate permutation.
Consider a permutation of indices that maps every fold onto a fold. The product law is invariant under it by step 1.1. Because each learning rule is symmetric, permuting a training tuple within or between folds leaves its fitted predictor unchanged, while the held-out observation is relabelled with its fold loss. Thus the vector is invariant in law under all such block permutations. These permutations act transitively on single indices, on ordered distinct pairs in one fold, and on ordered pairs from different folds. Therefore all marginal variances equal , all within-fold covariances equal , and all between-fold covariances equal .
By [F3], the variance of the average is . There are diagonal ordered pairs, within-fold off-diagonal ordered pairs, and ordered pairs from different folds. Substitution of the three covariance values from step 2.1 gives . For , the within-fold count is zero, so the declared value contributes nothing.
Remarks
The formula includes the within-fold dependence from a common training set and the between-fold dependence from overlapping training sets. It applies to foldwise paired differences under the same symmetry and moment hypotheses.
No universal unbiased estimator of K-fold cross-validation variance
Statement
Fix , , , and a fixed equal-fold partition of . A universal variance estimator is a measurable procedure based on the observed sample and the known rule, loss, and split, but not the unknown law ; any auxiliary random seed must be independent of both and the sample. No such procedure is unbiased for the K-fold score variance on every IID law and every symmetric learning rule with measurable loss whenever that variance is finite. More strongly, even if an estimator is tailored to one fixed symmetric rule, no such estimator is unbiased for all , , for the explicit rule and loss in the proof.
Facts & Assumptions
Given: The fixed equal-fold design and the universal-estimator meaning above. Prove the nonexistence claim.
Identical distribution and IID families: IID means a common marginal law and mutual independence.
Independent random elements have product joint law: the joint law of a finite independent sample is its finite product law.
Expectations factor over finite products of independent random variables: expectations of products of integrable functions of independent real variables factor into products of expectations.
Cross-validation splits and training-size risk targets: for a fixed equal-fold partition, is the average of the held-out losses, with training sample size .
Holdout, leave-out, V-fold, and repeated cross-validation: K-fold evaluation uses the declared common partition and averages its held-out losses.
The covariance decomposition of a fixed K-fold score: when the fold errors have common variance , common within-fold covariance , and common between-fold covariance , the variance of their average is .
Bernoulli random variables and binomial random variables as sums of independent Bernoulli trials: For , a Bernoulli random variable takes the value with probability and with probability .
Proof
By [F6], the K-fold score variance separates diagonal, within-fold, and between-fold covariance terms.
To test universality, take , , predictor class , and loss . By [F7], each is one with probability and zero otherwise. For every training size , let the symmetric rule . If , its fold error is , a product of distinct Bernoulli variables. By [F1]–[F3], , so .
For each fixed data vector , is a finite real number. Hence , where is the number of ones in , is a polynomial of degree at most . It follows that . Since , the term has degree higher than , so the variance polynomial has degree .
Any proposed estimator based on this sample, with no dependence on , has conditional mean for each ; this is finite if is unbiased with finite expectation for every , since [F7] gives every such positive probability. The auxiliary random seed has a fixed law independent of , so is fixed. Therefore is a polynomial of degree at most . It cannot equal the degree- variance polynomial on the whole interval , because two polynomials equal on an interval must be identical. This contradiction proves the claim.
Remarks
This finite-support argument does not assume that a candidate variance estimator is analytic and applies even when it may use the full observed sample. The theorem does not rule out biased, asymptotic, or law-specific procedures, and it does not apply to an estimator supplied with fresh independent data.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §§2–8, author version arXiv:0907.4728
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5 §§5.1.1–5.1.4
- Yoshua Bengio and Yves Grandvalet, No Unbiased Estimator of the Variance of K-Fold Cross-Validation, JMLR 5 (2004), §§2–3
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §§2.2–2.4, 6.1, and 7.1
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §4
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5 §5.1
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §5.1.1, author version arXiv:0907.4728
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5 §§5.1.1–5.1.3
- Yoshua Bengio and Yves Grandvalet, No Unbiased Estimator of the Variance of K-Fold Cross-Validation, JMLR 5 (2004), §§2.5–3, pp. 1094–1096
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §§5.2–5.2.2
- Yoshua Bengio and Yves Grandvalet, No Unbiased Estimator of the Variance of K-Fold Cross-Validation, JMLR 5 (2004), §§2–4 and Theorem 6, pp. 1090–1098
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §§5.2–5.2.3