Overview
The Wilcoxon rank-sum test checks whether values in one group tend to be higher than in another, without assuming the data follow a bell curve.
Paste the values for each group. The groups can be different sizes.
Worked examples
| Inputs | Result |
|---|---|
| Group A12, 15, 14, 19, 22, 17, 13, 16Group B21, 24, 18, 26, 23, 25, 20Significance level5% | p-value: 0.00654 (two-tailed)Rank sum W for Group A: 40 (U: 4)z: 2.72Group A: 8 valuesGroup B: 7 valuesSignificant at the 5% level: the groups likely differ.With small groups this normal approximation is rough, so check an exact table for close calls. |
How it works
All the values are ranked together, with tied values sharing their average rank, and W is the sum of the ranks in Group A. The p-value comes from a normal approximation with tie and continuity corrections, the same approach many statistics packages use for larger samples.
The formula
| W | The rank sum for Group A |
Practical tips
- Use it when your data are skewed, ranked or have outliers that would distort a t-test.
- It compares two separate groups. Paired data need the Wilcoxon signed-rank test instead.
- With small groups the normal approximation is rough, so check an exact table for close calls.
Frequently asked questions
Is this the same as the Mann-Whitney U test?
Yes, the two tests are equivalent and give the same p-value.
Is this the Wilcoxon signed-rank test?
No. That one is for paired data, while this one compares two independent groups.
What does a small p-value mean?
That a difference this large would be unlikely if the groups really came from the same distribution.