independence: Fast Rank Tests

Chaim Even-Zohar
10/19/2020
stat.COmath.CO

Official code: chaim-e/independence (4 stars, R, last commit 2020-10-25).

Abstract

In 1948 Hoeffding devised a nonparametric test that detects dependence between two continuous random variables X and Y, based on the ranking of n paired samples (Xi,Yi). The computation of this commonly-used test statistic takes O(n log n) time.

Show full abstract

Hoeffding's test is consistent against any dependent probability density f(x,y), but can be fooled by other bivariate distributions with continuous margins. Variants of this test with full consistency have been considered by Blum, Kiefer, and Rosenblatt (1961), Yanagimoto (1970), Bergsma and Dassios (2010). The so far best known algorithms to compute these stronger independence tests have required quadratic time. Here we improve their run time to O(n log n), by elaborating on new methods for counting ranking patterns, from a recent paper by the author and Leng (SODA'21). Therefore, in all circumstances under which the classical Hoeffding independence test is applicable, we provide novel competitive algorithms for consistent testing against all alternatives. Our R package, independence, offers a highly optimized implementation of these rank-based tests. We demonstrate its capabilities on large-scale datasets.

View on arXivView PDF

Code Implementations(1)

Near linear time computations of consistent Hoeffding's independence tests. See https://arxiv.org/abs/2010.09712

42R, C++Aug 10, 20206 years ago

Similar Papers

Cite this paper

@article{evenzohar2020independence,
  title  = {independence: Fast Rank Tests},
  author = {Chaim Even-Zohar},
  year   = {2020},
  eprint = {2010.09712},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.09712}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.09712.svg)](https://codeofpaper.com/paper/2010.09712)

Discussion