Two-sample Testing Using Deep Learning

Matthias Kirchler, Shahryar Khorasani, Marius Kloft, Christoph Lippert
10/14/2019
stat.MLcs.LGstat.ME

Official code: mkirchler/deep-2-sample-test (3 stars, Python, last commit 2020-02-12).

Abstract

We propose a two-sample testing procedure based on learned deep neural network representations. To this end, we define two test statistics that perform an asymptotic location test on data samples mapped onto a hidden layer.

Show full abstract

The tests are consistent and asymptotically control the type-1 error rate. Their test statistics can be evaluated in linear time (in the sample size). Suitable data representations are obtained in a data-driven way, by solving a supervised or unsupervised transfer-learning task on an auxiliary (potentially distinct) data set. If no auxiliary data is available, we split the data into two chunks: one for learning representations and one for computing the test statistic. In experiments on audio samples, natural images and three-dimensional neuroimaging data our tests yield significant decreases in type-2 error rate (up to 35 percentage points) compared to state-of-the-art two-sample tests such as kernel-methods and classifier two-sample tests.

View on arXivView PDF

Code Implementations(1)

Code for the Paper "Two-sample Testing Using Deep Learning", https://arxiv.org/abs/1910.06239

30PythonFeb 12, 20206 years ago

Similar Papers

Cite this paper

@article{kirchler2019twosample,
  title  = {Two-sample Testing Using Deep Learning},
  author = {Matthias Kirchler and Shahryar Khorasani and Marius Kloft and Christoph Lippert},
  year   = {2019},
  eprint = {1910.06239},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1910.06239}
}

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

Discussion