Two-sample tests evaluate whether two samples are realizations of the same distribution (the null hypothesis) or two different distributions (the alternative hypothesis). In the traditional formulation of this problem, the statistician has access to both the measurements (feature variables) and the group variable (label variable). However, in several important applications, feature variables can be easily measured but the binary label variable is unknown and costly to obtain. In this paper, we consider this important variation on the classical two-sample test problem and pose it as a problem of obtaining the labels of only a small number of samples in service of performing a two-sample test. We devise a label efficient three-stage framework: firstly, a classifier is trained with samples uniformly labeled to model the posterior probabilities of the labels; secondly, a novel query scheme dubbed \emph{bimodal query} is used to query labels of samples from both classes with maximum posterior probabilities, and lastly, the classical Friedman-Rafsky (FR) two-sample test is performed on the queried samples. Our theoretical analysis shows that bimodal query is optimal for two-sample testing using the FR statistic under reasonable conditions and that the three-stage framework controls the Type I error. Extensive experiments performed on synthetic, benchmark, and application-specific datasets demonstrate that the three-stage framework has decreased Type II error over uniform querying and certainty-based querying with same number of labels while controlling the Type I error. Source code for our algorithms and experimental results is available at https://github.com/wayne0908/Label-Efficient-Two-Sample.
翻译:两个模样测试评估两个样本是同一分布(无效假设)的实现还是两个不同分布(替代假设)的实现。在这一问题的传统配方中,统计员既可以使用测量(具体变量),也可以使用组变量(标签变量)。但在一些重要的应用程序中,可以很容易地测量特征变量,但二进制标签变量是未知的,而且要获取的成本很高。在本文中,我们认为传统两样抽样测试问题的这一重大变异是一个问题,在进行两个模版测试时,只能获得少量的样本的标签。我们设计了一个标签标准化的三阶段框架:首先,用统一的标签标签标签标签标签标签(具体变量)和组变量变量(标签变量变量 变量 ) 进行分类,在进行两个阶段的标值的标值测试时,在两个阶段的标值里程里程里程里(FR) 进行两次的标值测试,在测试的标值里程里程里程里,在测试中进行三个阶段级级级级级的测试时,我们的理论分析显示,在最优的标度二号里基级的测试中进行。