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 — Examples
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
- Cross-validation risk, model selection, and comparison uncertainty
- 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
Examples
- A holdout estimate targets a smaller training sample calculates a nonzero holdout bias for a sample-mean predictor.
- Paired K-fold comparison retains correlated fold errors computes the covariance terms in a paired two-fold comparison and checks them on all 16 binary samples.
- Random row splits leak repeated-group information shows why repeated observations must be split by group when the target is a new group.
- Equal predictive risks do not identify a model label gives two observationally equivalent labels with equal predictive risks.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
A holdout estimate targets a smaller training sample
Example
Take IID observations , squared loss , and the learning rule . Hold out and train on . The expected holdout score estimates , while training on all four observations has risk .
Facts & Assumptions
Given: The four IID Bernoulli observations, the sample-mean rule, squared loss, and holdout split above. Compute the training-size risks and their difference.
Cross-validation estimates risk at its training sizes: the expected holdout score with training observations is .
Cross-validation splits and training-size risk targets: for an independent test observation.
Identical distribution and IID families: the observations are mutually independent and have one common law.
Moments, variance, and covariance on a probability space: variance is for square-integrable .
Expectations factor over finite products of independent random variables: expectations of products of integrable functions of independent variables factor.
Holdout, leave-out, V-fold, and repeated cross-validation: a holdout score averages losses on the validation indices after training on their complement.
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 .
Verification
For , [F7] gives and the two-point expectation gives . Expanding the variance of , the diagonal terms sum to and each cross covariance vanishes by [F3] and [F5]; hence .
The independent test variable has mean and variance . Expanding around the common mean , the centered cross term is zero by independence, so [F2] gives .
At , and . The split in [F6] holds out one observation, so [F1] gives expected holdout score ; its bias for full-sample risk is .
Paired K-fold comparison retains correlated fold errors
Example
Let , , , , and . Compare with the zero predictor under loss , using the same folds for both procedures. Write for the paired difference of their cross-validation scores.
Facts & Assumptions
Given: The two-fold partition, IID Bernoulli observations, product and zero rules, and loss above. Compute the covariance terms and the variance of the paired difference.
Cross-validation splits and training-size risk targets: the equal-fold score is the average of the four held-out losses.
Holdout, leave-out, V-fold, and repeated cross-validation: paired comparison applies the same split schedule and averages within-fold loss differences.
Identical distribution and IID families: the four observations are mutually independent with a common Bernoulli law.
Expectations factor over finite products of independent random variables: expectations of products of functions of distinct observations factor.
Moments, variance, and covariance on a probability space: variance and covariance are the centered second moments.
The covariance decomposition of a fixed K-fold score: for equal folds, the average-error variance 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 .
Verification
Since the zero rule has zero loss, the four paired errors are , , , and , and .
Each is a product of three independent Bernoulli variables, so [F3]–[F5] and [F7] give and . For any distinct , the product equals because ; hence and . Thus .
Substituting into [F6] gives . Treating the four errors as independent would keep only , omitting the two positive covariance contributions.
Directly, if all four observations are one then ; if exactly three are one then ; with at most two ones it is zero. By [F7] these events have probabilities , , and , respectively, so , , and the direct variance is , confirming step 3.1.
Random row splits leak repeated-group information
Example
There are groups, each with two repeated rows , where are IID Bernoulli. Choose uniformly a balanced two-fold partition of the rows, independently of the labels. The learner memorizes the majority label for any group ID present in training (ties are resolved as zero) and predicts zero for a previously unseen ID. Use zero-one loss. This grouped design is not an IID row sample: the two rows in a group share a label and fixed group IDs.
Facts & Assumptions
Given: The repeated-group data, balanced random row partition, memorizing rule, and zero-one loss above. Compare the expected row-split score with prediction risk for a new group.
Holdout, leave-out, V-fold, and repeated cross-validation: a K-fold schedule trains on each fold's complement and weights held-out rows equally when folds have equal size.
Identical distribution and IID families: IID requires mutual independence; repeated rows sharing violate this row-level condition.
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 .
Verification
For a fixed group , if its two rows fall in different folds, then each validation row's group ID appears in training and its memorized prediction is , so both losses are zero. If both rows fall in one fold, neither is in the training set for that fold; both losses are . Therefore the full row-split score is .
In a uniformly chosen balanced partition, the probability both rows of a fixed group lie in fold 1 is ; the same probability holds for fold 2. Thus the probability they share a fold is .
The split is independent of , and [F3] gives , so step 1.1 and the probability in step 1.2 give . For a new group ID no training row has that ID, so the learner predicts zero and its error probability is . Row-split CV is therefore estimating an easier within-group prediction target than new-group prediction.
The example violates the independent-row premise in [F2], so it is a warning about choosing the resampling unit to match deployment; it is not a counterexample to the IID risk identity.
Equal predictive risks do not identify a model label
Example
Let the candidate model labels be with identical observation laws . Associate with each label the constant learning rule for every , where and , and use squared loss. The labels describe distinct candidate specifications but make the same observable data law.
Facts & Assumptions
Given: The two candidate labels, their common data law, and the two constant predictors. Compare their risks and show that observations cannot recover the label.
Risk estimation versus model identification: risk minimization chooses a label by predictive loss, whereas identification asks to recover the true data-generating label.
Cross-validation splits and training-size risk targets: risk is expected loss on an independent test observation after training.
Identical distribution and IID families: an IID sample has mutually independent coordinates with the common law.
Independent random elements have product joint law: the joint law of an IID finite sample is the product of its common marginal law.
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 .
Verification
Under either label, . By [F5], the two prediction risks are and , since and . Thus the predictive-risk objective ties the labels and any fixed tie rule selects one without separating them.
For every sample size , [F3]–[F4] give the same data law . Therefore every measurable data-based selector has the same output distribution under labels 0 and 1. If it were model-consistent at label 0, then , and equality of the sample laws would give . Consistency at label 1 would also give , impossible because these disjoint events have probabilities summing to at most one.
The example has equal predictive risk but no observable information that distinguishes the two labels, so risk minimization alone does not identify a true model.
Sources
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §5.1.1
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5 §5.1.1
- 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, §5.2
- Sylvain Arlot and Alain Celisse, A survey of cross-validation procedures for model selection, §8.3
- 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, §§2.2–2.4 and 6.1
- Gareth James, Daniela Witten, Trevor Hastie, and Robert Tibshirani, An Introduction to Statistical Learning, 7th printing, Chapter 5 introduction