On the Use of Random Forest for Two-Sample Testing

Simon Hediger, Loris Michel, Jeffrey Näf
3/14/2019
stat.ME

Official code: hedigers/RandomForestTest (2 stars, R, last commit 2024-09-23).

Abstract

Following the line of classification-based two-sample testing, tests based on the Random Forest classifier are proposed. The developed tests are easy to use, require almost no tuning, and are applicable for any distribution on $\mathbb{R}^d$.

Show full abstract

Furthermore, the built-in variable importance measure of the Random Forest gives potential insights into which variables make out the difference in distribution. An asymptotic power analysis for the proposed tests is developed. Finally, two real-world applications illustrate the usefulness of the introduced methodology. To simplify the use of the method, the R-package "hypoRF" is provided.

View on arXivView PDF

Code Implementations(1)

Random Forest Two Sample Testing

20RMar 19, 20192 years ago
high-dimensionalhypothesis-testingmachine-learningrandom-foreststatistics

Similar Papers

Cite this paper

@article{hediger2019random,
  title  = {On the Use of Random Forest for Two-Sample Testing},
  author = {Simon Hediger and Loris Michel and Jeffrey Näf},
  year   = {2019},
  eprint = {1903.06287},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1903.06287}
}

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/1903.06287.svg)](https://codeofpaper.com/paper/1903.06287)

Discussion