arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.14463stat.MLcs.LGmath.STstat.TH
收藏

交叉验证方差理论

A Theory of Cross-Validation Variance

Nathaniel S. O'Connell, Jaime L. Speiser

AI总结:

该研究提出交叉验证方差的精确有限样本恒等式,证明K折交叉验证一阶方差最优、留一法方差最小,为交叉验证性能推断提供理论基础并确立最优设计选择原则。

摘要:

交叉验证通过将数据反复划分为训练集和验证集,在前者上拟合模型并在后者上评估,来估计预测性能。每个观测值通过两种角色影响估计值:一是作为留出样本时的自身评估,二是作为训练样本时帮助拟合模型。随机划分决定了其在每种角色中的权重。基于此表示,我们证明了交叉验证估计量方差的精确有限样本恒等式。对于具有固定训练集大小的给定划分方案,方差是这些权重的函数,包含模型、度量和总体的常数。该恒等式适用于对观测值求平均的度量(如均方误差),以及对病例-对照对求平均的度量(如AUC)。该恒等式指明了应使用的方案:方差可分解为仅依赖训练集大小的抽样方差,以及因随机折划分导致的方差(源于不同划分抽取下权重的变化)。K折交叉验证的权重按设计对所有观测值相等,因此在一阶上是方差最优的;蒙特卡洛交叉验证和自助法交叉验证则不是。K折的一阶方差不依赖K值,且在模型的合理条件下,留一法在所有K折方案中方差最小。对于AUC,留对法(评估每对病例-对照)也满足该性质。最后,我们证明交叉验证估计量渐近服从正态分布,方差为该恒等式给出的完整方差。这些结果共同为交叉验证性能的推断提供了通用理论基础,并确立了选择方差最优交叉验证设计的原则。

英文摘要:

Cross-validation estimates predictive performance by repeatedly splitting the data into training and validation sets, fitting the model on the first and evaluating it on the second. Every observation influences the estimate in two roles, through its own evaluation when it is held out and through the models it helps fit when it trains. The random splits determine its weight in each role. From this representation, we prove an exact finite-sample identity for the variance of the cross-validated estimate. For a given splitting scheme with a common training set size, the variance is a function of these weights, with constants of the model, the metric, and the population. It covers metrics averaged over observations, such as mean squared error, and over case--control pairs, such as the AUC. The identity shows which schemes to use. The variance decomposes into sampling variance, which depends only on the training size, and variance due to the random fold splitting, which arises when the weights change from one draw of the splits to the next. K-fold cross-validation, whose weights are equal across observations by design, is therefore variance optimal at first order; Monte Carlo and bootstrap cross-validation are not. The first-order variance of K-fold does not depend on K, and under reasonable conditions on the model leave-one-out has the smallest variance of any K-fold scheme. For the AUC the same holds for leave-pair-out, which evaluates every case--control pair. Finally, we show the cross-validated estimate is asymptotically normal with the identity's full variance. Together, these results provide a general theoretical foundation for inference on cross-validated performance and establish principles for selecting variance-optimal cross-validation designs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑