Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

DOC: Fix error in wilcoxon docstring.

  • Loading branch information...
commit 99c42005cb9fd78cedbd1e5fbe115721143e9036 1 parent a792eb7
@capnrefsmmat authored
Showing with 7 additions and 5 deletions.
  1. +1 −0  THANKS.txt
  2. +6 −5 scipy/stats/
1  THANKS.txt
@@ -105,6 +105,7 @@ Sebastian Werk for Halley's method in newton().
Bjorn Forsman for contributing signal.bode().
Tony S. Yu for ndimage improvements.
Jonathan J. Helmus for work on ndimage.
+Alex Reinhart for documentation improvements.
11 scipy/stats/
@@ -1226,8 +1226,9 @@ def wilcoxon(x,y=None):
Calculate the Wilcoxon signed-rank test.
The Wilcoxon signed-rank test tests the null hypothesis that two
- related samples come from the same distribution. It is a a
- non-parametric version of the paired T-test.
+ 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.
@@ -1240,9 +1241,9 @@ def wilcoxon(x,y=None):
- z-statistic : float
- The test statistic under the large-sample approximation that the
- signed-rank statistic is normally distributed.
+ 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.
Please sign in to comment.
Something went wrong with that request. Please try again.