Testing for Outliers with Conformal p-values

Stephen Bates, Emmanuel Candès, Lihua Lei, Yaniv Romano, Matteo Sesia
4/16/2021
stat.MEmath.STstat.ML

Official code: msesia/conditional-conformal-pvalues (39 stars, Python, last commit 2022-11-15).

Abstract

This paper studies the construction of p-values for nonparametric outlier detection, taking a multiple-testing perspective. The goal is to test whether new independent samples belong to the same distribution as a reference data set or are outliers.

Show full abstract

We propose a solution based on conformal inference, a broadly applicable framework which yields p-values that are marginally valid but mutually dependent for different test points. We prove these p-values are positively dependent and enable exact false discovery rate control, although in a relatively weak marginal sense. We then introduce a new method to compute p-values that are both valid conditionally on the training data and independent of each other for different test points; this paves the way to stronger type-I error guarantees. Our results depart from classical conformal inference as we leverage concentration inequalities rather than combinatorial arguments to establish our finite-sample guarantees. Furthermore, our techniques also yield a uniform confidence bound for the false positive rate of any outlier detection algorithm, as a function of the threshold applied to its raw statistics. Finally, the relevance of our results is demonstrated by numerical experiments on real and simulated data.

View on arXivView PDF

Code Implementations(1)

Conditional calibration of conformal p-values for outlier detection.

391PythonDec 18, 20204 years ago
conformal-predictionfalse-discovery-ratemachine-learningoutlier-detectionstatistics

Similar Papers

Cite this paper

@article{bates2021testing,
  title  = {Testing for Outliers with Conformal p-values},
  author = {Stephen Bates and Emmanuel Candès and Lihua Lei and Yaniv Romano and Matteo Sesia},
  year   = {2021},
  eprint = {2104.08279},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.08279}
}

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

Discussion