Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
stats.ks_2samp() misleading for small data sets. #9786
Reproducing code example:
The statistic=1 is correct. However the actual pvalue is 1.0.
Below are some more examples:
I.e. There plenty of examples where the returned pvalue is small, even less than 5% say which is a common threshold for experimental results, but the true value is much greater.
Scipy/Numpy/Python version information: