All posts

Choosing a test, 6 min read

Parametric vs non-parametric tests: how to choose, with examples

Parametric tests are more powerful when their assumptions hold. Non-parametric tests are safer when they don't.

What "parametric" means

Parametric tests, such as the t-test and ANOVA, assume your data follow a particular distribution, usually a normal one, and compare means. Non-parametric tests make fewer assumptions. Most work on the ranks of the values rather than the values themselves, which makes them robust to skew and outliers.

Common tests and their non-parametric equivalents

DesignParametricNon-parametric
Two independent groupsUnpaired t-testMann-Whitney U test
Two paired measurementsPaired t-testWilcoxon signed-rank test
Three or more independent groupsOne-way ANOVAKruskal-Wallis test
Repeated measurementsRepeated-measures ANOVAFriedman test
Association between two variablesPearson correlationSpearman correlation

Checking normality, and its pitfalls

The Shapiro-Wilk test is a common formal check. It has two blind spots worth knowing:

Always look at the data too. A dot plot or histogram often tells you more than a single p-value.

The trade-off

When data really are normal, parametric tests detect real effects with fewer samples. Non-parametric tests give up some of that power in exchange for robustness. They also have limits with tiny samples: with three values per group, the smallest possible two-sided p-value from a Mann-Whitney test is 0.1, however different the groups are.

Other options for skewed data

For right-skewed measurements such as concentrations or tumour volumes, a log transformation often makes the data close to normal, letting you use a parametric test on the transformed values. Report clearly that you did so.

Join the private beta