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_2samponly 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_2sampsource code, and change it intowhich works for me