Wilcoxon and Mann-Whitney
Non-Parametric Tests of Difference: Wilcoxon and Mann-Whitney
When data are at ordinal level, substantially non-normal, or contain outliers, the non-parametric tests of difference — the Wilcoxon signed-rank test and the Mann-Whitney U test — are appropriate alternatives to the parametric t-tests. Both work by converting scores to ranks before analysis, making no assumptions about the shape of the underlying distribution.
Wilcoxon Signed-Rank Test (Related Design)
The Wilcoxon signed-rank test is used when: the research question concerns a difference; the design is related (repeated measures or matched pairs); and data are at ordinal level or above but parametric assumptions are not met.
Procedure:
- Calculate the difference (d) between each pair of scores.
- Exclude pairs where d = 0 (ties); N = number of remaining pairs.
- Rank the absolute values of d from smallest to largest (ignoring sign; tied ranks receive average rank).
- Assign the original sign (+ or −) to each rank.
- Sum the positive ranks → W+; sum the negative ranks → W−.
- The test statistic T = the smaller of W+ and W−.
- Significant if T ≤ critical value from the Wilcoxon table for given N and α.
Mann-Whitney U Test (Unrelated Design)
The Mann-Whitney U test is used when: the research question concerns a difference; the design is unrelated (independent groups); and data are at ordinal level or above but parametric assumptions are not met.
Procedure:
- Rank all scores from both groups combined (lowest = rank 1), keeping track of which group each score belongs to. Tied ranks receive average rank.
- Sum the ranks for Group 1 → R₁; sum the ranks for Group 2 → R₂.
- Calculate: U₁ = n₁n₂ + [n₁(n₁+1)/2] − R₁, and U₂ = n₁n₂ + [n₂(n₂+1)/2] − R₂.
- The test statistic U = the smaller of U₁ and U₂.
- Significant if U ≤ critical value from the Mann-Whitney table for given n₁, n₂ and α.
A useful check: U₁ + U₂ = n₁ × n₂.
Comparison
| Wilcoxon signed-rank | Mann-Whitney U | |
|---|---|---|
| Design | Related (repeated measures/matched) | Unrelated (independent groups) |
| Data level | Ordinal or above | Ordinal or above |
| Test statistic | T (smaller of W+/W−) | U (smaller of U₁/U₂) |
| Significant if | T ≤ critical value | U ≤ critical value |
| Parametric equivalent | Related t-test | Unrelated t-test |
Key Takeaways
- Wilcoxon signed-rank: non-parametric, related design, ordinal data. Ranks absolute differences; T = smaller of W+/W−. Significant if T ≤ critical value.
- Mann-Whitney U: non-parametric, unrelated design, ordinal data. Ranks all scores combined; U = smaller of U₁/U₂. Significant if U ≤ critical value.
- Both use ≤ rule: smaller calculated value = more extreme = significant when ≤ critical.
- Exclude ties (d=0) from Wilcoxon before ranking. N = remaining pairs after exclusion.
- Useful check for Mann-Whitney: U₁ + U₂ = n₁ × n₂.
- Wilcoxon is more powerful than the sign test (uses magnitude of differences, not just direction). Mann-Whitney is the unrelated equivalent.