Calculate the Wilcoxon signed-rank test.
The Wilcoxon signed-rank test tests the null hypothesis that two related paired samples come from the same distribution. In particular, it tests whether the distribution of the differences x - y is symmetric about zero. It is a non-parametric version of the paired T-test.
Parameters : | x : array_like
y : array_like, optional
zero_method : string, {“pratt”, “wilcox”, “zsplit”}, optional
|
---|---|
Returns : | T : float
p-value : float
|
Notes
Because the normal approximation is used for the calculations, the samples used should be large. A typical rule is to require that n > 20.
References
[R204] | http://en.wikipedia.org/wiki/Wilcoxon_signed-rank_test |