Alphabeta Math
Pipeline-generated
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.

✓ 3 results · all verified · 3 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs; all 3 also cleared it.

Cross-validation risk, model selection, and comparison uncertainty

1 · Prerequisites

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 Rn−m. 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

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Cross-validation splits and training-size risk targets

Definition

Let (Z,F) be a measurable sample space with probability law P. For each training size k≥1, a learning rule is a measurable map Ak:Zk→(H,G), where (H,G) is a measurable predictor space. This is a statistic in the sense of Statistics and estimators. Let L:H×Z→R be jointly measurable and assume L(Ak(Z1,…,Zk),Zk+1) is integrable under P⊗(k+1) 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 k is

Rk:=EP⊗(k+1) ⁣[L(Ak(Z1,…,Zk),Zk+1)],

where Zk+1 is independent of the training sample. A split of [n]:={1,…,n} is a pair (T,V) of disjoint nonempty sets with T∪V=[n]; T is the training index set and V is the validation index set. For a fixed partition I1,…,IK of [n] into nonempty folds with K≥2, the equal-observation-weight cross-validation score is

R^CV:=1n∑j=1K∑i∈IjL(An−∣Ij∣(ZIjc),Zi),

where each training tuple ZIjc is ordered by increasing index and Ijc=[n]∖Ij. The risk corresponding to this design is the weighted training-size target ∑j=1K(∣Ij∣/n)Rn−∣Ij∣. For equal folds of size m, this target is Rn−m; it is not automatically Rn, the risk after training on all n observations.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Risk estimation versus model identification

Definition

Let (Z,F) be an observation space, let M be a nonempty finite set of candidate labels, and for each m∈M let Pm be a probability law on (Z,F). For each m∈M and training size k≥1, let Am,k:Zk→(H,G) be a measurable learning rule into a common measurable predictor space. For a data law P and loss L satisfying the measurability and integrability hypotheses of Cross-validation splits and training-size risk targets, write

Rm,k(P):=EP⊗(k+1) ⁣[L(Am,k(Z1,…,Zk),Zk+1)]

for its risk at training size k; when P is fixed, write Rm,k. A risk-minimizing selector chooses a label minimizing the specified risk criterion, such as Rm,k or its cross-validation estimate; a fixed ordering of M may be used to resolve ties. This objective compares expected predictive loss.

For each n≥1, a data-based selector is a measurable map m^n:Zn→M, where M has its discrete sigma-algebra. A true model label at sample size n is a specified m0∈M when the observations are IID with law Pm0. The selector sequence (m^n) is model-consistent at m0 when Pm0⊗n(m^n=m0)→1 as n→∞. 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.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Holdout, leave-out, V-fold, and repeated cross-validation

Definition

Input: observations z1,…,zn, learning rules Ak, a loss L, and a finite split schedule ((Tr,Vr,wr))r=1B. Each (Tr,Vr) is a split as in Cross-validation splits and training-size risk targets, wr≥0, and ∑r=1Bwr=1. A randomized schedule is admissible only when its law is specified and is independent of the observations.

Output: the cross-validation estimate

R^:=∑r=1Bwr1∣Vr∣∑i∈VrL(A∣Tr∣(zTr),zi),

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 T the chosen training set, V=Tc, and weight 1.
  • Leave-one-out: for n≥2, use n splits Ti=[n]∖{i}, Vi={i}, with weights 1/n.
  • Leave-p-out: for n≥2 and 1≤p<n, use one split for every p-element subset J⊆[n], with TJ=Jc, VJ=J, and weight 1/(np).
  • K-fold: for 2≤K≤n and a partition I1,…,IK into nonempty folds, use Tj=Ijc, Vj=Ij, and wj=∣Ij∣/n; for equal folds this is 1/K.
  • Repeated K-fold: for n≥2, 2≤K≤n and R≥1, apply the K-fold schedule to each of R declared partitions and give fold Irj weight ∣Irj∣/(Rn). 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

Cross-validation estimates risk at its training sizes

Statement

Let Z1,…,Zn be IID with law P. Let Ak and L satisfy the measurability and integrability hypotheses of Cross-validation splits and training-size risk targets at every schedule training size and also at size n. For a fixed finite schedule ((Tr,Vr,wr))r=1B as in Holdout, leave-out, V-fold, and repeated cross-validation, let R^ be its cross-validation estimate. Then

E[R^]=∑r=1BwrR∣Tr∣.

In particular, a holdout split trained on k observations has expected score Rk. For a fixed K-fold partition, this gives E[R^CV]=∑j=1K(∣Ij∣/n)Rn−∣Ij∣, and for equal folds of size m it gives Rn−m. For every fixed schedule, the bias for the full-sample risk Rn is exactly ∑rwr(R∣Tr∣−Rn); it need not have a fixed sign without an additional monotonicity hypothesis on k↦Rk.

If a schedule S 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.

[F1]

Identical distribution and IID families: IID means the variables have one common law and the whole family is mutually independent.

[F2]

Independent random elements have product joint law: a finite independent family has joint law equal to the product of its marginal laws.

[F3]

Cross-validation splits and training-size risk targets: Rk is the expected loss from training on k IID observations and evaluating on an independent test observation; the fixed-partition score averages held-out losses with weight 1/n per observation.

[F4]

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.

[F5]

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.

[A1]

Cross-validation splits and training-size risk targets: in addition to schedule training sizes, assume the full-sample loss L(An(Z1,…,Zn),Zn+1) is integrable, so Rn is finite.

[F6]

Holdout, leave-out, V-fold, and repeated cross-validation: in K-fold validation, Tj=Ijc, Vj=Ij, and wj=∣Ij∣/n.

Proof

1.1F1F2F3F4

Fix a split r and an index i∈Vr. Since Tr and Vr are disjoint by [F4], i∉Tr. By [F1], the ∣Tr∣ training observations (Zℓ)ℓ∈Tr and the test observation Zi are independent, each with law P. By [F2], their joint law is P⊗(∣Tr∣+1). Hence [F3] gives E[L(A∣Tr∣(ZTr),Zi)]=R∣Tr∣.

2.1F4step 1.1algebra

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 E[R^]=∑r=1B(wr/∣Vr∣)∑i∈VrR∣Tr∣=∑r=1BwrR∣Tr∣.

3.1A1step 2.1algebra

By [A1], the full-sample target Rn is finite. Subtracting it from step 2.1 yields E[R^]−Rn=∑rwr(R∣Tr∣−Rn). This expression has no fixed sign in general; if k↦Rk is nonincreasing, then each difference is nonnegative because ∣Tr∣<n.

3.2F5givenstep 2.1algebra

Let the schedule be independently randomized with finite range. Conditional on any realized schedule s, the sample remains IID with law P by [F5], so step 2.1 applies and gives E[R^∣S=s]=∑rwr(s)R∣Tr(s)∣. Averaging this identity over the finite schedule law gives the stated unconditional expectation.

4.1F6step 2.1algebra∎

In a fixed K-fold partition, [F6] gives Tj=Ijc, Vj=Ij, and wj=∣Ij∣/n. Substituting these values in step 2.1 gives the displayed fold-size formula; equal folds of size m give Rn−m. The holdout claim is the one-split case B=1, w1=1.

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.

LemmaStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

The covariance decomposition of a fixed K-fold score

Statement

Let n=Km with integers K≥2 and m≥1. Let Z1,…,Zn be IID, let I1,…,IK be a fixed partition into folds of size m, and let Ak be a permutation-symmetric measurable learning rule with a measurable loss. For i∈Ij, write ei=L(An−m(ZIjc),Zi) and assume E[ei2]<∞. For a paired comparison, ei 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 σ2:=Var⁡(ei), ω:=Cov⁡(ei,ei′) for distinct indices in one fold, and γ:=Cov⁡(ei,ei′) for indices in different folds. When m=1, set ω=0 because there is no within-fold pair. These values are well-defined, and

Var⁡ ⁣(1n∑i=1nei)=σ2n+m−1nω+n−mnγ.

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.

[F1]

Identical distribution and IID families: IID observations are mutually independent with a common law.

[F2]

Independent random elements have product joint law: the joint sample law is P⊗n, whose rectangle probabilities are products of marginal probabilities.

[F3]

Moments, variance, and covariance on a probability space: for square-integrable real variables, variance is E[(X−EX)2] and covariance is E[(X−EX)(Y−EY)].

[F4]

Cross-validation splits and training-size risk targets: a fixed partition score is the average of the held-out fold losses.

[F5]

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

1.1F1F2

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 P⊗n, so the sample distribution is invariant under every coordinate permutation.

2.1F1F4F5step 1.1algebra

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 (e1,…,en) 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 σ2, all within-fold covariances equal ω, and all between-fold covariances equal γ.

3.1F3step 2.1algebra∎

By [F3], the variance of the average is n−2∑i=1n∑i′=1nCov⁡(ei,ei′). There are n diagonal ordered pairs, Km(m−1)=n(m−1) within-fold off-diagonal ordered pairs, and n(n−m) ordered pairs from different folds. Substitution of the three covariance values from step 2.1 gives 1n2{nσ2+n(m−1)ω+n(n−m)γ}=σ2n+m−1nω+n−mnγ. For m=1, the within-fold count is zero, so the declared value ω=0 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.

TheoremStatement: Literature-sourcedProof: AI-adaptedprecheck passjudge pass (gpt-6-luna)Open item page →

No universal unbiased estimator of K-fold cross-validation variance

Statement

Fix K≥2, m≥1, n=Km, and a fixed equal-fold partition of [n]. 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 P; any auxiliary random seed must be independent of both P 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 P=Bernoulli⁡(p), 0<p<1, 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.

[F1]

Identical distribution and IID families: IID means a common marginal law and mutual independence.

[F2]

Independent random elements have product joint law: the joint law of a finite independent sample is its finite product law.

[F3]

Expectations factor over finite products of independent random variables: expectations of products of integrable functions of independent real variables factor into products of expectations.

[F4]

Cross-validation splits and training-size risk targets: for a fixed equal-fold partition, R^CV is the average of the held-out losses, with training sample size n−m.

[F5]

Holdout, leave-out, V-fold, and repeated cross-validation: K-fold evaluation uses the declared common partition and averages its held-out losses.

[F6]

The covariance decomposition of a fixed K-fold score: when the fold errors have common variance σ2, common within-fold covariance ω, and common between-fold covariance γ, the variance of their average is σ2/n+(m−1)ω/n+(n−m)γ/n.

[F7]

Bernoulli random variables and binomial random variables as sums of independent Bernoulli trials: For p∈[0,1], a Bernoulli(p) random variable takes the value 1 with probability p and 0 with probability 1−p.

Proof

1.1F6

By [F6], the K-fold score variance separates diagonal, within-fold, and between-fold covariance terms.

1.2F1F2F3F4F5F7construct

To test universality, take Z={0,1}, Zi∼IIDBernoulli⁡(p), predictor class H={0,1}, and loss L(h,z)=hz. By [F7], each Zi is one with probability p and zero otherwise. For every training size k, let the symmetric rule Ak(z1,…,zk)=∏q=1kzq. If i∈Ij, its fold error is ei=Zi∏ℓ∈IjcZℓ, a product of r:=n−m+1 distinct Bernoulli variables. By [F1]–[F3], E[ei]=pr, so E[R^CV]=pr.

2.1F1F2F7step 1.2algebra

For each fixed data vector x∈{0,1}n, R^CV(x) is a finite real number. Hence g(p):=Ep[R^CV2]=∑x∈{0,1}nR^CV(x)2ps(x)(1−p)n−s(x), where s(x) is the number of ones in x, is a polynomial of degree at most n. It follows that Var⁡p(R^CV)=g(p)−p2r. Since 2r−n=m(K−2)+2>0, the term −p2r has degree higher than g, so the variance polynomial has degree 2r>n.

3.1F7givenstep 2.1algebra∎

Any proposed estimator T based on this sample, with no dependence on p, has conditional mean t(x):=E[T∣Z=x] for each x∈{0,1}n; this is finite if T is unbiased with finite expectation for every 0<p<1, since [F7] gives every such x positive probability. The auxiliary random seed has a fixed law independent of p, so t(x) is fixed. Therefore Ep[T]=∑xt(x)ps(x)(1−p)n−s(x) is a polynomial of degree at most n. It cannot equal the degree-2r variance polynomial on the whole interval (0,1), 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