Nonparametric tests are statistical methods that do not require data to follow a normal distribution. They are useful when measurements are skewed, contain outliers, are ordinal, or come from small samples where normality is hard to justify. Instead of focusing on means and standard deviations, many nonparametric tests compare the order of values after the data are converted into ranks.
This makes them a practical toolkit for biology, medicine, psychology, engineering, and any field with messy real-world data.
The central idea is to replace raw observations with ranked positions, then test whether the ranks are distributed differently across groups or conditions. The Mann-Whitney U test compares two independent groups, the Wilcoxon signed-rank test compares paired measurements, and the Kruskal-Wallis test compares three or more independent groups. These tests still make assumptions, such as independence and appropriate measurement scale, but they are less sensitive to extreme values than many parametric tests.
Interpreting them requires attention to the research design, the direction of rank differences, and the meaning of statistical significance.
Key Facts
- Nonparametric tests are often used for ordinal data, skewed data, small samples, or data with strong outliers.
- Rank transformation replaces the smallest value with rank 1, the next smallest with rank 2, and so on.
- For tied values, assign each tied observation the average of the ranks they would have occupied.
- Mann-Whitney U test: U1 = n1n2 + n1(n1 + 1)/2 - R1, where R1 is the rank sum for group 1.
- Wilcoxon signed-rank test ranks the absolute paired differences after removing pairs with difference 0.
- Kruskal-Wallis test statistic: H = (12/(N(N + 1))) Σ(Ri^2/ni) - 3(N + 1), where Ri is a group rank sum.
Vocabulary
- Nonparametric test
- A statistical test that does not require a specific population distribution such as a normal distribution.
- Rank
- The position of a data value after all observations are ordered from smallest to largest.
- Mann-Whitney U test
- A rank-based test used to compare two independent groups.
- Wilcoxon signed-rank test
- A rank-based test used to compare two related or paired samples.
- Kruskal-Wallis test
- A rank-based test used to compare three or more independent groups.
Common Mistakes to Avoid
- Using a Mann-Whitney U test for paired data is wrong because the test assumes the two groups are independent. Use the Wilcoxon signed-rank test when the same subjects are measured twice or observations are matched.
- Forgetting to average tied ranks gives incorrect rank sums and test statistics. Ties must share the average of the ranks they would have received.
- Saying nonparametric tests have no assumptions is wrong because they still require conditions such as independence, appropriate pairing, and meaningful ordering of values.
- Interpreting a significant rank test as automatically proving different means is wrong because rank tests usually detect differences in distributions or typical values, not necessarily arithmetic means.
Practice Questions
- 1 Two independent groups have values A: 3, 7, 9 and B: 1, 5, 11. Rank all six values together and find the rank sum for group A.
- 2 For paired measurements, the before values are 10, 14, 12, 9 and the after values are 12, 13, 15, 9. Compute the paired differences after minus before and identify which pairs are removed before a Wilcoxon signed-rank test.
- 3 A researcher compares pain scores from three independent treatment groups on a 1 to 10 scale, and the scores are strongly skewed with several outliers. Explain why a Kruskal-Wallis test may be more appropriate than a one-way ANOVA.