Fast calculation of p-values for one-sided Kolmogorov-Smirnov type statistics

Amit Moscovich
9/10/2020
stat.CO

Official code: mosco/crossing-probability (4 stars, C++, MIT, last commit 2024-01-29).

Abstract

A novel method for computing exact p-values of one-sided statistics from the Kolmogorov-Smirnov family is presented. It covers the Higher Criticism statistic, one-sided weighted Kolmogorov-Smirnov statistics, and the one-sided Berk-Jones statistics.

Show full abstract

In addition to p-values, the method can also be used for power analysis, finding alpha-level thresholds, and the construction of confidence bands for the empirical distribution function. With its quadratic runtime and numerical stability, the method easily scales to sample sizes in the hundreds of thousands and takes less than a second to run on a sample size of 25,000. This allows practitioners working on large data sets to use exact finite-sample computations instead of approximation schemes. The method is based on a reduction to the boundary-crossing probability of a pure jump stochastic process. FFT convolutions of two different sizes are then used to efficiently propagate the probabilities of the non-crossing paths. This approach has applications beyond statistics, for example in financial risk modeling.

View on arXivView PDF

Code Implementations(1)

MIT

Fast C++ programs for computing the boundary crossing probability of Poisson and Binomial stochastic processes.

43C++, PythonMar 16, 20152 years agoMIT

Similar Papers

Cite this paper

@article{moscovich2020fast,
  title  = {Fast calculation of p-values for one-sided Kolmogorov-Smirnov type statistics},
  author = {Amit Moscovich},
  year   = {2020},
  eprint = {2009.04954},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.04954}
}

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

Discussion