Testing Goodness of Fit of Conditional Density Models with Kernels

Wittawat Jitkrittum, Heishiro Kanagawa, Bernhard Schölkopf
2/24/2020
stat.MLcs.LGmath.ST

Official code: wittawatj/kernel-cgof (10 stars, Python, MIT, last commit 2020-07-27).

Abstract

We propose two nonparametric statistical tests of goodness of fit for conditional distributions: given a conditional probability density function $p(y|x)$ and a joint sample, decide whether the sample is drawn from $p(y|x)r_x(x)$ for some density $r_x$. Our tests, formulated with a Stein operator, can be applied to any differentiable conditional density model, and require no knowledge of the normalizing constant.

Show full abstract

We show that 1) our tests are consistent against any fixed alternative conditional model; 2) the statistics can be estimated easily, requiring no density estimation as an intermediate step; and 3) our second test offers an interpretable test result providing insight on where the conditional model does not fit well in the domain of the covariate. We demonstrate the interpretability of our test on a task of modeling the distribution of New York City's taxi drop-off location given a pick-up point. To our knowledge, our work is the first to propose such conditional goodness-of-fit tests that simultaneously have all these desirable properties.

View on arXivView PDF

Code Implementations(1)

MIT

UAI 2020. Kernel goodness-of-fit tests for conditional density models.

100Python, Jupyter NotebookJul 27, 20206 years agoMIT
hypothesis-testingkernel-methodsmachine-learning

Similar Papers

Cite this paper

@article{jitkrittum2020testing,
  title  = {Testing Goodness of Fit of Conditional Density Models with Kernels},
  author = {Wittawat Jitkrittum and Heishiro Kanagawa and Bernhard Schölkopf},
  year   = {2020},
  eprint = {2002.10271},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.10271}
}

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

Discussion