P-Value not matching test statistic in Kolmogorov–Smirnov test (stats.kstest)
I am trying to learn how to use the Kolmogorov–Smirnov test in scipy (stats.kstest). For a simple problem like the example in the documentation, the test statistic for the one sample test seems to be correct, but the p-value does not make sense.
Z-Score as measurement of diverging values
I’ve been trying to use the z-score to filter out odd values in python. For the calculation I’ve used the version scipy is offering, vs calculating it myself using numpy and the mean and std functions. The result is the same. I thought a p-Value of -1 to 1 should result in 68,1% of the samples, or maybe I’ve got the concept wrong and it solely is representative of the values itself.