KSD Aggregated Goodness-of-fit Test

Antonin Schrab, Benjamin Guedj, Arthur Gretton
2/2/2022
26 citations
stat.MLcs.LGmath.ST

Official code: antoninschrab/ksdagg (2 stars, Python, MIT, last commit 2024-05-31). Most starred: antoninschrab/ksdagg-paper, a community implementation (6 stars, Python, MIT, last commit 2024-05-31, 3.0× the official stars). 1 more implementation below.

Abstract

We investigate properties of goodness-of-fit tests based on the Kernel Stein Discrepancy (KSD). We introduce a strategy to construct a test, called KSDAgg, which aggregates multiple tests with different kernels.

Show full abstract

KSDAgg avoids splitting the data to perform kernel selection (which leads to a loss in test power), and rather maximises the test power over a collection of kernels. We provide non-asymptotic guarantees on the power of KSDAgg: we show it achieves the smallest uniform separation rate of the collection, up to a logarithmic term. For compactly supported densities with bounded model score function, we derive the rate for KSDAgg over restricted Sobolev balls; this rate corresponds to the minimax optimal rate over unrestricted Sobolev balls, up to an iterated logarithmic term. KSDAgg can be computed exactly in practice as it relies either on a parametric bootstrap or on a wild bootstrap to estimate the quantiles and the level corrections. In particular, for the crucial choice of bandwidth of a fixed kernel, it avoids resorting to arbitrary heuristics (such as median or standard deviation) or to data splitting. We find on both synthetic and real-world data that KSDAgg outperforms other state-of-the-art quadratic-time adaptive KSD-based goodness-of-fit testing procedures.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
antoninschrab/ksdaggOfficial2PythonMIT2024-05-31
antoninschrab/ksdagg-paperCommunity6PythonMIT2024-05-31
MIT

KSDAgg package implementing the KSDAgg test proposed in KSD Aggregated Goodness-of-fit Test by Schrab, Guedj and Gretton: https://arxiv.org/abs/2202.00824 NeurIPS 2022

20PythonJan 28, 20222 years agoMIT
hypothesis-testingkernel-methodsmachine-learningpackage
MIT

Code for reproducible experiments presented in KSD Aggregated Goodness-of-fit Test. https://arxiv.org/abs/2202.00824 NeurIPS 2022

60Python, Jupyter NotebookJan 21, 20222 years agoMIT
hypothesis-testingkernel-methodsmachine-learningreproducible-research

Similar Papers

Cite this paper

@article{schrab2022aggregated,
  title  = {KSD Aggregated Goodness-of-fit Test},
  author = {Antonin Schrab and Benjamin Guedj and Arthur Gretton},
  year   = {2022},
  eprint = {2202.00824},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.00824}
}

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

Discussion