Computing the Cumulative Distribution Function and Quantiles of the One-sided Kolmogorov-Smirnov Statistic
Paul van Mulbregt

TL;DR
This paper addresses computational challenges in evaluating the CDF and quantiles of the one-sided Kolmogorov-Smirnov distribution, proposing new algorithms that improve accuracy and efficiency over existing methods.
Contribution
The authors develop alternative algorithms that enhance the accuracy and computational efficiency of the CDF and quantile calculations for the one-sided Kolmogorov-Smirnov distribution.
Findings
Existing implementations suffer from accuracy loss for small sample sizes.
Current approximations can increase computational cost and sometimes fail catastrophically.
Proposed algorithms restore accuracy and efficiency across the entire domain.
Abstract
The cumulative distribution and quantile functions for the one-sided one sample Kolmogorov-Smirnov probability distributions are used for goodness-of-fit testing. While the Smirnov-Birnbaum-Tingey formula for the CDF appears straight forward, its numerical evaluation generates intermediate results spanning many hundreds of orders of magnitude and at times requires very precise accurate representations. Computing the quantile function for any specific probability may require evaluating both the CDF and its derivative, both of which are computationally expensive. To work around avoid these issues, different algorithms can be used across different parts of the domain, and approximations can be used to reduce the computational requirements. We show here that straight forward implementation incurs accuracy loss for sample sizes of well under 1000. Further the approximations in use inside the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical Methods and Algorithms · Statistical and numerical algorithms · Statistics Education and Methodologies
