The two-sample Kolmogorov-Smirnov test is a widely used statistical test for detecting whether two samples are likely to come from the same distribution. Implementations typically recur on an article of Hodges from 1957. The advances in computation speed make it feasible to compute exact p-values for a much larger range of problem sizes, but these run into numerical stability problems from floating point operations. We provide a simple transformation of the defining recurrence for the two-side two-sample KS test that avoids this.
翻译:两样样本的Kolmogorov-Smirnov 测试是一种广泛使用的统计测试,用于检测两种样本是否可能来自同一分布。 1957年Hodges的一篇文章通常会重复应用。 计算速度的进步使得可以计算出更广大范围的问题大小的精确的p值, 但从浮动点操作中会遇到数字稳定性问题。 我们为避免这种情况的双边双样 KS 测试提供了简单的定义性重现转换 。