arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.06966stat.CO
收藏

单侧Kolmogorov-Smirnov统计量的累积分布函数和分位数的计算

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

Paul van Mulbregt

摘要:

单侧单样本Kolmogorov-Smirnov概率分布的累积分布和分位数函数用于拟合优度检验。虽然CDF的Smirnov-Birnbaum-Tingey公式看起来很直接,但它的数值计算产生了跨越数百个数量级的中间结果,有时需要非常精确的表示。计算任何特定概率的分位数函数可能需要评估CDF及其导数两者,这两者在计算上都是昂贵的。为了解决这些问题,可以在域的不同部分使用不同的算法,并且可以使用近似来减少计算需求。我们在这里表明,直接执行招致准确性损失的样本量远低于1000。此外,开源SciPy python软件内部使用的近似值通常会导致计算增加,而不仅仅是精度降低,并且有时会对任何样本量造成灾难性的精度损失。然后,我们提供了替代算法,恢复整个域的准确性和效率。

英文摘要:

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 open source SciPy python software often result in increased computation, not just reduced accuracy, and at times suffer catastrophic loss of accuracy for any sample size. Then we provide alternate algorithms which restore accuracy and efficiency across the whole domain.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑