Sub topic 9
When to Use Nonparametric Tests
Assume you know means, medians, variance, standard deviation, basic probability, and the logic of hypothesis testing. You should also understand independent and paired samples. This chapter explains when a parametric test is unsuitable and which nonparametric alternative to choose.
Parametric Versus Nonparametric Tests
A parametric test uses assumptions about a population distribution. For example, a t-test commonly assumes that observations are approximately normally distributed, especially when the sample is small. A nonparametric test makes fewer distributional assumptions. It often uses ranks or signs instead of the original numerical values.
Nonparametric tests are useful when:
- The data are ordinal, meaning values have an order but equal distances cannot be assumed.
- A small sample contains strong outliers.
- The population distribution is clearly non-normal.
- The variable is bounded, skewed, or otherwise unsuitable for a normal model.
- The sample contains ranks rather than meaningful numerical measurements.
A nonparametric test is not assumption-free. Observations should still be sampled appropriately, and independence or pairing requirements must be satisfied.
| Investment question | Parametric test | Common nonparametric alternative |
|---|---|---|
| Compare one sample with a reference value | One-sample t-test | Sign test or Wilcoxon signed-rank test |
| Compare two independent groups | Independent-samples t-test | Mann–Whitney U test |
| Compare two paired measurements | Paired t-test | Wilcoxon signed-rank test |
| Compare more than two independent groups | ANOVA F-test | Kruskal–Wallis test |
| Test monotonic association | Pearson correlation test | Spearman rank-correlation test |
How Rank Tests Work
A rank test replaces observations with their positions after sorting. The smallest observation receives rank 1, the next receives rank 2, and so on. This reduces the effect of extreme numerical values.
The Mann–Whitney U test compares two independent groups. Its null hypothesis is that the groups come from the same distribution. It is often described as a test of equal medians, but that interpretation requires the groups to have similar distributional shapes.
The Wilcoxon signed-rank test compares paired observations. First calculate each pair's difference, discard zero differences, rank the absolute differences, and restore their signs. The test examines whether positive and negative differences balance around zero.
The Kruskal–Wallis test extends rank comparisons to three or more independent groups. If it rejects the null hypothesis, at least one group differs, but the test does not identify which group without further comparisons.
Spearman correlation ranks both variables and measures whether their relationship is consistently increasing or decreasing. It can detect a monotonic relationship even when the relationship is not a straight line.
Choosing the Test
Exercise
An analyst compares customer-satisfaction ratings from two unrelated funds. The ratings are ordinal and strongly skewed. Which test is appropriate?
Show answer
Use the Mann–Whitney U test because the groups are independent and the response is ordinal and non-normal.