[Paper Review] Consistent distribution-free $K$-sample and independence tests for univariate random variables
This paper proposes consistent, distribution-free $K$-sample and independence tests for univariate random variables using aggregation of test scores over all partition sizes. By combining summation and maximization over partitions, the method achieves high power comparable to optimal partition-based tests, with polynomial-time computation and strong empirical performance across diverse dependence structures.
A popular approach for testing if two univariate random variables are statistically independent consists of partitioning the sample space into bins, and evaluating a test statistic on the binned data. The partition size matters, and the optimal partition size is data dependent. While for detecting simple relationships coarse partitions may be best, for detecting complex relationships a great gain in power can be achieved by considering finer partitions. We suggest novel consistent distribution-free tests that are based on summation or maximization aggregation of scores over all partitions of a fixed size. We show that our test statistics based on summation can serve as good estimators of the mutual information. Moreover, we suggest regularized tests that aggregate over all partition sizes, and prove those are consistent too. We provide polynomial-time algorithms, which are critical for computing the suggested test statistics efficiently. We show that the power of the regularized tests is excellent compared to existing tests, and almost as powerful as the tests based on the optimal (yet unknown in practice) partition size, in simulations as well as on a real data example.
Motivation & Objective
- Address the need for consistent, distribution-free tests that detect complex, non-monotone dependencies between univariate random variables.
- Overcome limitations of classical tests (e.g., Pearson, Spearman) that lack power for non-linear or non-monotone relationships.
- Develop computationally efficient methods for large-scale hypothesis testing, such as in genomics, where thousands of variable pairs must be tested.
- Provide a unified framework that handles both $K$-sample and independence testing using the same core methodology.
- Achieve near-optimal power without requiring knowledge of the optimal partition size, which is typically unknown in practice.
Proposed method
- Propose test statistics based on summation or maximization of scores over all partitions of fixed size $m$, where scores assess association between binned $X$ and $Y$.
- Use the likelihood ratio score for binning, computing $S_m$ (summation) and $M_m$ (maximum) statistics over all partitions of size $m$.
- Introduce regularized tests that aggregate over all partition sizes $m$, using $\min_m p_m$ or $\max_m p_m$ to combine $p$-values from individual $m$-based tests.
- Develop polynomial-time algorithms to compute the test statistics efficiently, enabling application to large datasets.
- Ensure distribution-free properties by using permutation-based $p$-value estimation, making the null distribution independent of marginal distributions.
- Apply the method to both independence testing and the $K$-sample problem by treating the categorical variable as a partitioned $X$.
Experimental results
Research questions
- RQ1Can a distribution-free test achieve consistency against all alternatives without assuming specific parametric forms of dependence?
- RQ2How does aggregating over multiple partition sizes improve power compared to fixed-size partitioning?
- RQ3Can the proposed method match or approach the power of tests using the optimal (but unknown) partition size?
- RQ4What is the computational feasibility of applying such a test to large-scale data, such as in genomics?
- RQ5How does the performance of the regularized test compare to existing nonparametric tests like dCov, HHG, MIC, and Spearman across diverse dependence structures?
Key findings
- The regularized test based on $\min_m p_m$ achieves power nearly as high as the test using the optimal partition size, with minimal loss in power across all simulated dependence structures.
- For monotone relationships, the summation-based variant $S_m$ performs well and is comparable to Spearman and Hoeffding, while $M_m$ variants show strong performance in complex settings.
- In the Sine, Heavisine, Spiral, and Circles examples, the proposed minimum $p$-value test significantly outperforms dCov and HHG on data, with power gains up to 30% in some cases.
- The test based on $\min_m p_m$ using DDP or ADP scores achieves a power of 0.763 for the exponential relationship (Exp2x) at $N=100$, outperforming MIC (0.198) and dCov (0.746).
- The method maintains high power across diverse complex relationships, including non-monotone and non-linear dependencies, where classical tests fail.
- The polynomial-time computation enables practical application to large-scale testing problems, such as testing $2 \times 10^7$ gene pairs in genomics, where permutation-based tests would be computationally prohibitive.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.