Classification accuracy as a proxy for two sample testing
Not on the map. Why?
Abstract (arXiv)
When data analysts train a classifier and check if its accuracy is significantly different from chance, they are implicitly performing a two-sample test. We investigate the statistical properties of this flexible approach in the high-dimensional setting. We prove two results that hold for all classifiers in any dimensions: if its true error remains ε-better than chance for some ε>0 as d,n → ∞, then (a) the permutation-based test is consistent (has power approaching to one), (b) a computationally efficient test based on a Gaussian approximation of the null distribution is also consistent. To get a finer understanding of the rates of consistency, we study a specialized setting of distinguishing Gaussians with mean-difference δ and common (known or unknown) covariance Sigma, when d/n → c ∈ (0,∞). We study variants of Fisher's linear discriminant analysis (LDA) such as "naive Bayes" in a nontrivial regime when ε → 0 (the Bayes classifier has true accuracy approaching 1/2), and contrast their power with corresponding variants of Hotelling's test. Surprisingly, the expressions for their power match exactly in terms of n,d,δ,Sigma, and the LDA approach is only worse by a constant factor, achieving an asymptotic relative efficiency (ARE) of 1/√π for balanced samples. We also extend our results to high-dimensional elliptical distributions with finite kurtosis. Other results of independent interest include minimax lower bounds, and the optimality of Hotelling's test when d=o(n). Simulation results validate our theory, and we present practical takeaway messages along with natural open problems.
Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). First posted on arXiv 6 Feb 2016.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 6; 2022: 8; 2023: 6; 2024: 4; 2025: 7; 2026: 8.
39 papers.
Sort:
By area:
- 2021Testing for Outliers with Conformal p-valuescited by 133
- 2022Adversarial random forests for density estimation and generative modelingcited by 44
- 2021A Witness Two-Sample Testcited by 20
- 2023Sequential Predictive Two-Sample and Independence Testingcited by 20
- 2022AutoML Two-Sample Testcited by 19
- 2021Meta Two-Sample Testing: Learning Kernels for Testing with Limited Datacited by 18
- 2022MMD-B-Fair: Learning Fair Representations with Statistical Testingcited by 13
- 2022E-Valuating Classifier Two-Sample Testscited by 10
- 2023Boosting the Power of Kernel Two-Sample Testscited by 10
- 2023Deep anytime-valid hypothesis testingcited by 7
- 2024Benchmarking the Fidelity and Utility of Synthetic Relational Datacited by 7
- 2021Test for non-negligible adverse shiftscited by 5
27 more
- 2024A Unified Data Representation Learning for Non-parametric Two-sample Testingcited by 5
- 2022The Lifecycle of a Statistical Model: Model Failure Detection, Identification, and Refittingcited by 4
- 2024General Frameworks for Conditional Two-Sample Testingcited by 3
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practicecited by 3
- 2022A hypothesis-driven method based on machine learning for neuroimaging data analysiscited by 2
- 2023MAGDiff: Covariate Data Set Shift Detection via Activation Graphs of Deep Neural Networkscited by 2
- 2023Kernel-Based Testing for Single-Cell Differential Analysiscited by 2
- 2026Measuring the Dependency Gap: Diagnosing Inter-Column Fidelity in Tabular Generative Modelscited by 2
- 2022Detecting Distributional Differences in Labeled Sequence Data with Application to Tropical Cyclone Satellite Imagerycited by 1
- 2025Conformal C2ST: Turning weak classifiers into strong two-sample testscited by 1
- 2025Anchor-based Maximum Discrepancy for Relative Similarity Testingcited by 1
- 2025Maximum Mean Discrepancy with Unequal Sample Sizes via Generalized U-Statisticscited by 1
- 2021Deep Learning-Based Estimation and Goodness-of-Fit for Large-Scale Confirmatory Item Factor Analysiscited by 0
- 2021Identifying Distributional Differences in Convective Evolution Prior to Rapid Intensification in Tropical Cyclonescited by 0
- 2022Two-sample test based on Self-Organizing Mapscited by 0
- 2023A framework for paired-sample hypothesis testing for high-dimensional datacited by 0
- 2024A density ratio framework for evaluating the utility of synthetic datacited by 0
- 2025Efficient and Stable Multi-Dimensional Kolmogorov-Smirnov Distancecited by 0
- 2025Boosting Statistic Learning with Synthetic Data from Pretrained Large Modelscited by 0
- 2025A Two-Sample Test of Text Generation Similaritycited by 0
- 2025Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approachcited by 0
- 2026Learning to Test: Physics-Informed Representation for Dynamical Instability Detectioncited by 0
- 2026Trustworthy deep domain adaptation for wearable photoplethysmography signal analysis with decision-theoretic uncertainty quantificationcited by 0
- 2026LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetrycited by 0
- 2026Deciding When to Decide: Testing Operational Suboptimality Under Distributional Shiftcited by 0
- 2026Extreme classification: beating chance with one training example from each classcited by 0
- 2026Zero Flux: Flow-Based Comparison of High-Dimensional Discrete Distributionscited by 0
- 2026Zero Flux: Flow-Based Comparison of High-Dimensional Discrete Distributions1 Oct 2026
- 2026Extreme classification: beating chance with one training example from each class17 Sep 2026
- 2026Deciding When to Decide: Testing Operational Suboptimality Under Distributional Shift29 Aug 2026
- 2026Measuring the Dependency Gap: Diagnosing Inter-Column Fidelity in Tabular Generative Models20 Jul 2026
- 2026LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry7 Jun 2026
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practice29 May 2026
- 2026Trustworthy deep domain adaptation for wearable photoplethysmography signal analysis with decision-theoretic uncertainty quantification19 Apr 2026
- 2026Learning to Test: Physics-Informed Representation for Dynamical Instability Detection13 Apr 2026
- 2025Maximum Mean Discrepancy with Unequal Sample Sizes via Generalized U-Statistics16 Dec 2025
- 2025Anchor-based Maximum Discrepancy for Relative Similarity Testing12 Oct 2025
- 2025Conformal C2ST: Turning weak classifiers into strong two-sample tests22 Jul 2025
- 2025Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach17 Jul 2025
27 more
- 2025A Two-Sample Test of Text Generation Similarity8 May 2025
- 2025Boosting Statistic Learning with Synthetic Data from Pretrained Large Models8 May 2025
- 2025Efficient and Stable Multi-Dimensional Kolmogorov-Smirnov Distance15 Apr 2025
- 2024A Unified Data Representation Learning for Non-parametric Two-sample Testing30 Nov 2024
- 2024General Frameworks for Conditional Two-Sample Testing22 Oct 2024
- 2024Benchmarking the Fidelity and Utility of Synthetic Relational Data4 Oct 2024
- 2024A density ratio framework for evaluating the utility of synthetic data23 Aug 2024
- 2023Deep anytime-valid hypothesis testing30 Oct 2023
- 2023A framework for paired-sample hypothesis testing for high-dimensional data28 Sep 2023
- 2023Kernel-Based Testing for Single-Cell Differential Analysis17 Jul 2023
- 2023MAGDiff: Covariate Data Set Shift Detection via Activation Graphs of Deep Neural Networks22 May 2023
- 2023Sequential Predictive Two-Sample and Independence Testing29 Apr 2023
- 2023Boosting the Power of Kernel Two-Sample Tests21 Feb 2023
- 2022Two-sample test based on Self-Organizing Maps17 Dec 2022
- 2022MMD-B-Fair: Learning Fair Representations with Statistical Testing15 Nov 2022
- 2022E-Valuating Classifier Two-Sample Tests24 Oct 2022
- 2022AutoML Two-Sample Test17 Jun 2022
- 2022Adversarial random forests for density estimation and generative modeling19 May 2022
- 2022A hypothesis-driven method based on machine learning for neuroimaging data analysis9 Feb 2022
- 2022The Lifecycle of a Statistical Model: Model Failure Detection, Identification, and Refitting8 Feb 2022
- 2022Detecting Distributional Differences in Labeled Sequence Data with Application to Tropical Cyclone Satellite Imagery4 Feb 2022
- 2021Identifying Distributional Differences in Convective Evolution Prior to Rapid Intensification in Tropical Cyclones24 Sep 2021
- 2021Deep Learning-Based Estimation and Goodness-of-Fit for Large-Scale Confirmatory Item Factor Analysis20 Sep 2021
- 2021Test for non-negligible adverse shifts7 Jul 2021
- 2021Meta Two-Sample Testing: Learning Kernels for Testing with Limited Data14 Jun 2021
- 2021Testing for Outliers with Conformal p-values16 Apr 2021
- 2021A Witness Two-Sample Test10 Feb 2021
- 2021Testing for Outliers with Conformal p-valuescited by 133
- 2022Adversarial random forests for density estimation and generative modelingcited by 44
- 2021A Witness Two-Sample Testcited by 20
- 2023Sequential Predictive Two-Sample and Independence Testingcited by 20
- 2022AutoML Two-Sample Testcited by 19
- 2021Meta Two-Sample Testing: Learning Kernels for Testing with Limited Datacited by 18
- 2022MMD-B-Fair: Learning Fair Representations with Statistical Testingcited by 13
- 2022E-Valuating Classifier Two-Sample Testscited by 10
- 2023Boosting the Power of Kernel Two-Sample Testscited by 10
- 2023Deep anytime-valid hypothesis testingcited by 7
- 2024Benchmarking the Fidelity and Utility of Synthetic Relational Datacited by 7
- 2021Test for non-negligible adverse shiftscited by 5
12 most cited of 38 All 38 (JSON)
- 2026Zero Flux: Flow-Based Comparison of High-Dimensional Discrete Distributions1 Oct 2026
- 2026Extreme classification: beating chance with one training example from each class17 Sep 2026
- 2026Deciding When to Decide: Testing Operational Suboptimality Under Distributional Shift29 Aug 2026
- 2026Measuring the Dependency Gap: Diagnosing Inter-Column Fidelity in Tabular Generative Models20 Jul 2026
- 2026LOTTERY: Learning from Reference-Only Samples in Two-Sample Testing under Size Asymmetry7 Jun 2026
- 2026Model-Agnostic Signal Discovery with Machine Learning: Bridging the Gap Between Theory and Practice29 May 2026
- 2026Trustworthy deep domain adaptation for wearable photoplethysmography signal analysis with decision-theoretic uncertainty quantification19 Apr 2026
- 2026Learning to Test: Physics-Informed Representation for Dynamical Instability Detection13 Apr 2026
- 2025Maximum Mean Discrepancy with Unequal Sample Sizes via Generalized U-Statistics16 Dec 2025
- 2025Anchor-based Maximum Discrepancy for Relative Similarity Testing12 Oct 2025
- 2025Conformal C2ST: Turning weak classifiers into strong two-sample tests22 Jul 2025
- 2025Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing Approach17 Jul 2025
12 newest of 38 All 38 (JSON)