基于核的条件双样本检验使用最近邻(及其在校准、回归曲线和基于模拟的推断中的应用)
A Kernel-Based Conditional Two-Sample Test Using Nearest Neighbors (with Applications to Calibration, Regression Curves, and Simulation-Based Inference)
AI总结:
本文提出一种基于核和最近邻图的条件双样本检验方法,具有近乎线性计算复杂度、渐近高斯极限和普遍一致性,并成功应用于模型校准、回归曲线评估及基于模拟的推断验证。
摘要:
在本文中,我们引入了一种基于核的度量,用于检测两个条件分布之间的差异。利用“核技巧”和最近邻图,我们提出了该度量的一种一致估计,其计算时间近乎为线性(对于固定数量的最近邻)。此外,当两个条件分布相同时,该估计具有高斯极限,且其渐近方差具有易于从数据中估计的简单形式。由此得到的检验达到了精确的渐近水平,并且在检测两个条件分布差异方面具有普遍一致性。我们还提供了一种基于重采样的检验,使用我们的估计,适用于条件拟合优度问题,该检验在有限样本中控制第一类错误,并且仅需有限次重采样即可达到渐近一致。此外,还提出了一种去随机化重采样检验的方法。所提出的方法可广泛应用于从经典非参数统计到现代机器学习的各类问题。具体而言,我们探讨了三个应用:检验模型校准、回归曲线评估,以及基于模拟的推断中模拟器模型的验证。我们在模拟和真实数据上均展示了该方法在这些任务中的优越性能。特别地,我们将方法应用于:(1) 评估在CIFAR-10数据集上训练的神经网络模型的校准;(2) 比较两台不同风力发电机的风力发电回归函数;(3) 在具有不可解后验的基准示例上验证模拟器模型,并生成与星系图像相关的合成“红移”。
英文摘要:
In this paper we introduce a kernel-based measure for detecting differences between two conditional distributions. Using the `kernel trick' and nearest-neighbor graphs, we propose a consistent estimate of this measure which can be computed in nearly linear time (for a fixed number of nearest neighbors). Moreover, when the two conditional distributions are the same, the estimate has a Gaussian limit and its asymptotic variance has a simple form that can be easily estimated from the data. The resulting test attains precise asymptotic level and is universally consistent for detecting differences between two conditional distributions. We also provide a resampling based test using our estimate that applies to the conditional goodness-of-fit problem, which controls Type I error in finite samples and is asymptotically consistent with only a finite number of resamples. A method to de-randomize the resampling test is also presented. The proposed methods can be readily applied to a broad range of problems, ranging from classical nonparametric statistics to modern machine learning. Specifically, we explore three applications: testing model calibration, regression curve evaluation, and validation of emulator models in simulation-based inference. We illustrate the superior performance of our method for these tasks, both in simulations as well as on real data. In particular, we apply our method to (1) assess the calibration of neural network models trained on the CIFAR-10 dataset, (2) compare regression functions for wind power generation across two different turbines, and (3) validate emulator models on benchmark examples with intractable posteriors and for generating synthetic `redshift' associated with galaxy images.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。