maximtrp / scikit-posthocs

Multiple Pairwise Comparisons (Post Hoc) Tests in Python
https://scikit-posthocs.rtfd.io
MIT License
349 stars 40 forks source link

Negative p-value in the matrix #33

Closed albertwibowo closed 4 years ago

albertwibowo commented 4 years ago

Hello, maybe this is not a bug. I am just wondering. I performed conover test after Kruskal-Wallis test and realise that In the matrix, the diagonal p-value is negative in value. Should it not be 1 because you are comparing a distribution to itself?

maximtrp commented 4 years ago

Hello! I agree this is not statistically correct. I added filling the diagonal with negative ones just for convenience, though it is not necessary for plotting functions now and obviously should be fixed. Thank you for drawing my attention to this problem!