0

全部!我想对两个数据集进行 Wilcoxon 秩和检验,即x1x2。我的代码如下,

from scipy import stats

x1 = [9,5,8,7,10,6,7] # len(x1) = 7
x2 = [7,4,5,6,3,6,4,4] # len(x2) = 8
stats.mannwhitneyu(x1, x2)

然后我得到这样的结果,

> MannwhitneyuResult(statistic=6.5, pvalue=0.006966479792405637)

我知道statistic变量是如何计算的。但是根据函数产生的结果,我是否应该拒绝原假设mannwhitneyu()呢?

我还注意到其他一些 python 函数返回statisticandpvalue变量。我对这些函数生成的p值的含义感到很困惑,例如ranksums()wilcoxon()等。我可以简单地将它与0.05进行比较来判断我是否应该拒绝它?

4

0 回答 0