In a two sample Kolmogorov–Smirnov test for (Y1,Y2), I want to know the critical value of Y which maximize the KS value(sometimes called D).
However, ks_2samp
only return D
and p-value
.See scipy.stats.ks_2samp¶
.
Is there any package can do two sample Kolmogorov–Smirnov test and return a critical value of Y for me?
I read
scipy.stats.ks_2samp
source code, and change it intowhich works for me