2

I was digging in the scipy code for this test Wilcoxon signed-rank test (stats.wilcoxon) and I found that in scipy they compute the sum of the ranks for the differences that are positives and separately for the ones that are negatives. Then they picked the smaller one and use that as W. That is substantially different from the test explanation in Wikipedia, or other sites(http://vassarstats.net/textbook/ch12a.html) where W = sum(all the differences).

Is this approach valid?

4

1 回答 1

1

对于许多统计函数,存在具有不同属性的替代定义。有时一个更有用,有时另一个。要了解为什么 scipy 的作者选择了您找到的定义,您必须询问他们。我的建议是查看 scipy.Wilcoxon 的修订历史记录(Git 或其他,我不知道 Scipy 使用什么)或在 Scipy 开发人员邮件列表中询问。希望这可以帮助。

于 2013-06-19T20:39:54.013 回答