Scipy's Wilcoxon signed-rank test directionality
1
0
Entering edit mode
8.2 years ago

Hello,

I need to perform a wilcoxons signed-rank test in python and I've chosen "scipy" library to do it. However I have some problems when interpreting the results, as I don't know how to asses the directionality of the difference when they are statistically significant.

According to the description of the Wilcoxon function, the output is the following:

T : float. The sum of the ranks of the differences above or below zero, whichever is smaller.

p-value : float. The two-sided p-value for the test.

So, my question is: when the p-value is significant, how can I know if its due to the fact that A > B or A < B? Is T giving me this information? Would it be as easy as comparing the medians of both groups?

Thanks a lot in advance!

pvalue python statistics • 3.0k views
ADD COMMENT
0
Entering edit mode
8.2 years ago
  1. Plot them
  2. Use a one-tailed Wilcoxon test. I am not familiar with python but I believe it's implemented as a rank-sum test.
ADD COMMENT

Login before adding your answer.

Traffic: 2044 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6