English

A Two-Sample Conditional Distribution Test Using Conformal Prediction and Weighted Rank Sum

Methodology 2023-02-24 v2

Abstract

We consider the problem of testing the equality of conditional distributions of a response variable given a vector of covariates between two populations. Such a hypothesis testing problem can be motivated from various machine learning and statistical inference scenarios, including transfer learning and causal predictive inference. We develop a nonparametric test procedure inspired from the conformal prediction framework. The construction of our test statistic combines recent developments in conformal prediction with a novel choice of conformity score, resulting in a weighted rank-sum test statistic that is valid and powerful under general settings. To our knowledge, this is the first successful attempt of using conformal prediction for testing statistical hypotheses beyond exchangeability. Our method is suitable for modern machine learning scenarios where the data has high dimensionality and large sample sizes, and can be effectively combined with existing classification algorithms to find good conformity score functions. The performance of the proposed method is demonstrated in various numerical examples.

Keywords

Cite

@article{arxiv.2010.07147,
  title  = {A Two-Sample Conditional Distribution Test Using Conformal Prediction and Weighted Rank Sum},
  author = {Xiaoyu Hu and Jing Lei},
  journal= {arXiv preprint arXiv:2010.07147},
  year   = {2023}
}

Comments

46 pages, 2 figures, 7 tables; to appear in Journal of the American Statistical Association

R2 v1 2026-06-23T19:20:51.976Z