How a learning rule can approach Bayes risk for every fixed IID distribution, why growing k matters, and why this gives no universal finite-sample deadline.
Universal consistency of learning rules
Universal consistency means that a learning rule approaches the best attainable prediction risk for every fixed data distribution within a stated setting as its training sample grows. For a quant using historical analogues, this answers an asymptotic question about learning a stable relationship; it does not establish that today's dataset is large enough or that tomorrow's market follows the same law.
The destination is Bayes risk
Consider binary classification. Training data Dn contain n independent, identically distributed pairs (Xi,Yi) from a fixed distribution P, where Xi∈Rd, d is fixed and finite, and Yi∈{0,1}. A fresh test pair follows the same law independently of training. For the fitted classifier gn, define
The infimum runs over measurable classifiers using these features. RP∗ is Bayes risk under zero–one loss: the lowest possible error probability, which can remain positive when labels are noisy. Universal describes which distributions the guarantee covers, not perfect prediction. Collins, Kumari and Pestov, §1.
Here, weak universal consistency means
for every fixed P,EDn[RP(gn)]⟶RP∗.
The expectation also averages over training samples. Because zero–one risk is bounded, this is equivalent to convergence of the conditional risk in probability. Strong consistency instead requires almost-sure convergence along the growing training sequence. We use the weak statement below. Biau and Devroye, §17.2.
Two requirements that pull in different directions
For unweighted k-nearest neighbors, use ordinary Euclidean distance, break equal distances by the smaller original training index, and predict class 1 only when its vote exceeds one half; a class-vote tie predicts 0. With this convention, a deterministic integer schedule 1≤kn≤n is weakly universally consistent if
With k equal to floor square root n, 100 training records select 10 neighbors, or 10 percent; 10,000 records select 100 neighbors, or 1 percent. Separate axes show counts and sample shares; no prediction risk is plotted.
More labels enter each vote, while the selected fraction of the training sample shrinks. These are schedule values, not measured prediction results.
The two rows illustrate the schedule; the limit claim follows from n−1<kn≤n, so kn grows without bound while kn/n≤1/n→0. Neither row specifies an accuracy. Nor is this schedule a practical tuning recommendation. The curse of dimensionality still matters at finite sample sizes; the theorem holds dimension fixed.
Why keeping one neighbor differs. Suppose all features equal zero and independent labels equal 1 with probability 0.8. Under the index tie rule, 1NN always copies the first training label. Its expected test error is 0.8(0.2)+0.2(0.8)=0.32 for every sample size. Always predicting 1 attains Bayes risk 0.20. Collecting more records does not close this gap when the rule still copies one noisy label. This exact example separates fixed-1NN behavior from consistency with growing k; a bound on fixed-1NN risk is not a claim of convergence to Bayes risk.
For weak consistency, the sample size needed to make excess risk small with high probability may depend on P. The statement does not supply one distribution-independent accuracy deadline. By comparison, agnostic PAC learning specifies a hypothesis class H and a sample threshold depending on the class, error tolerance and confidence, valid across distributions. Its benchmark is the best risk within that class, which can exceed Bayes risk. The quantifiers and benchmarks differ. Shalev-Shwartz and Ben-David, Definition 3.3 and §7.4.
For market prediction, serial dependence and concept drift need separate analysis. Merely calling a process stationary does not make its observations IID. Adding older observations from a changing regime does not reproduce the fixed-distribution experiment above. Even in that experiment, minimum classification error is a different objective from trading profit after costs.