A non-parametric test draws a conclusion without assuming that the data follow a specific distribution, such as a normal curve with an estimated mean and spread. Most of these tests replace each measurement by its rank (1 for the smallest, 2 for the next, and so on) and ask whether the ranks are arranged unusually. Because only order matters, one extreme reading cannot dominate the result.
How the rank approach works:
Which test replaces which. Each common parametric test has a rank-based partner, and each partner has its own entry in this glossary:
| Question | Parametric test | Rank-based partner |
|---|---|---|
| Two independent groups | Two-sample t-test | Mann-Whitney U |
| Two paired measurements | Paired t-test | Wilcoxon signed-rank |
| Three or more independent groups | One-way ANOVA | Kruskal-Wallis |
| Three or more repeated conditions | Repeated-measures ANOVA | Friedman test |
| Monotone association | Pearson correlation | Spearman correlation |
Why it matters: an outlier example. Recipe A and recipe B each etch six wafers. The six A values are $10.1,\,10.8,\,11.2,\,11.6,\,12.0,\,12.4$. For B they are $11.9,\,12.6,\,13.1,\,13.5,\,14.2$ and a stray $41.0$, perhaps a metrology glitch or a real excursion. B is higher almost wafer for wafer, but the single large value raises the B mean to $17.7$ and its standard deviation to $11.4$, so Welch's t-test gives $t=-1.36$ and $p=0.231$ and sees no difference. If the stray value were an ordinary $14.0$, the same test would give $p=0.0035$.
The rank version of the data is unaffected. In the pooled order the A wafers take ranks $1,2,3,4,6,7$ and the B wafers take $5,8,9,10,11,12$, with rank sums $23$ and $55$. The Mann-Whitney exact test gives $U=2$ and $p=0.0087$ whether the last value is $41.0$ or $14.0$, because both are simply the largest rank:
This does not make the outlier unimportant. If $41.0$ is a real process excursion, it deserves investigation of its own. The rank test only prevents that one value from deciding the comparison of the typical wafer.
The trade-offs.
- Cost of safety: under perfectly normal data the Mann-Whitney test needs only about $1/0.955$, or $5\%$, more observations than the t-test, since its asymptotic relative efficiency is $3/\pi\approx0.955$. It can never fall below $0.864$ ($108/125$) for any distribution, and with heavy tails or outliers it can be far more powerful.
- What is tested: a rank test looks for one group tending to give larger values. It is a test of medians or means only when the group shapes are similar, apart from a shift.
- Small samples: very few observations limit how small an exact p-value can be. With $n=3$ per group the smallest possible two-sided p-value is $0.1$.
- Ties and ordinal data: ranks handle ordered categories such as 1-to-5 ratings, but many ties reduce power and need a tie correction.
- Estimates: report a rank-based effect measure such as the Hodges-Lehmann shift or the probability that a random wafer from one group exceeds one from the other, not just the p-value.
- Not assumption-free: these tests still assume independent observations and, for most, identical distribution shapes under the null.
Read a non-parametric test as swapping measurements for their order: you lose some information about distance, and in return a single glitch or a skewed distribution cannot steer the answer.