Volume 47, Issue 3
ORIGINAL ARTICLE

Implementing Monte Carlo tests with p‐value buckets

Axel Gandy

Department of Mathematics, Imperial College London

Search for more papers by this author
Georg Hahn

Corresponding Author

E-mail address: ghahn@hsph.harvard.edu

Department of Mathematics, Imperial College London

Correspondence Georg Hahn, Department of Biostatistics, T.H. Chan School of Public Health, Harvard University, 677 Huntington Ave, Boston, MA 02115.

Email: ghahn@hsph.harvard.edu

Search for more papers by this author
Dong Ding

Department of Mathematics, Imperial College London

Search for more papers by this author
First published: 14 November 2019
Funding information Engineering and Physical Sciences Research Council, President's Ph.D. Scholarship of Imperial College London

Abstract

Software packages usually report the results of statistical tests using p‐values. Users often interpret these values by comparing them with standard thresholds, for example, 0.1, 1, and 5%, which is sometimes reinforced by a star rating (***, **, and *, respectively). We consider an arbitrary statistical test whose p‐value p is not available explicitly, but can be approximated by Monte Carlo samples, for example, by bootstrap or permutation tests. The standard implementation of such tests usually draws a fixed number of samples to approximate p. However, the probability that the exact and the approximated p‐value lie on different sides of a threshold (the resampling risk) can be high, particularly for p‐values close to a threshold. We present a method to overcome this. We consider a finite set of user‐specified intervals that cover [0, 1] and that can be overlapping. We call these p‐value buckets. We present algorithms that, with arbitrarily high probability, return a p‐value bucket containing p. We prove that for both a bounded resampling risk and a finite runtime, overlapping buckets need to be employed, and that our methods both bound the resampling risk and guarantee a finite runtime for such overlapping buckets. To interpret decisions with overlapping buckets, we propose an extension of the star rating system. We demonstrate that our methods are suitable for use in standard software, including for low p‐value thresholds occurring in multiple testing settings, and that they can be computationally more efficient than standard implementations.

The full text of this article hosted at iucr.org is unavailable due to technical difficulties.