Choosing between t tests, ANOVA and nonparametric tests
In bench-science papers the right test is almost always set by three things: how many groups you compare, whether the data are paired, and the shape of the distribution. This guide puts those choices in a decision table, and also covers the common questions of whether to default to Welch and whether a normality test should decide for you.
Decide three things first
- Number of groups: two groups → the t test family; three or more → the ANOVA family
- Paired or not: the same animal, or the same experimental run, measured under each condition is paired
- Distribution: close to normal → tests on means (parametric); strongly skewed or outlier-prone → rank-based (nonparametric)
Once these are fixed, there is usually only one candidate. Designs that do not fit (two crossed factors, time courses) need other methods such as two-way ANOVA or mixed-effects models.
Decision table
How to choose the multiple-comparison test is covered in Tukey vs Dunnett. Before choosing any test, check that you are not counting cells or wells as n (pseudoreplication and SuperPlots).
Worked examples of each test: Mann–Whitney U test, Wilcoxon signed-rank test, Kruskal–Wallis and Dunn’s test, Friedman test, Dunnett’s test and repeated-measures ANOVA and sphericity.
For time-to-event data with censoring, use Kaplan–Meier curves and the log-rank test; for the relationship between two measurements, see Pearson vs Spearman correlation and linear regression.
Checking normality and equal variances
t tests and ANOVA assume each group is roughly normal and that spreads do not differ much between groups. The usual checks are the Shapiro–Wilk test for normality and the Brown–Forsythe test for equal variances (Levene’s test using medians, robust to outliers).
Switching tests mechanically on the basis of these checks is not recommended:
- Small n detects nothing: with 3–5 per group, even clearly skewed data often give P > 0.05.
- Large n flags trivial departures, while the t test is robust to mild skew at large n (central limit theorem).
- Two-stage selection distorts the error rate: choosing the main test from a preliminary test means the overall type I error rate is no longer the nominal one.
In practice, look at a plot showing every point, think about the kind of measurement (ratios and concentrations often become near-normal on a log scale), and ideally decide the test before the experiment. How the Shapiro–Wilk test behaves at different n is shown with numbers in the Shapiro–Wilk test and its pitfalls.
Example: two groups
Body weight of wild-type (WT) and knockout (KO) mice, 8 per group (made-up data).
| Check / test | Result |
|---|---|
| Shapiro–Wilk (WT / KO) | W = 0.955, P = 0.76 / W = 0.965, P = 0.86 |
| Brown–Forsythe | F(1, 14) = 0.86, P = 0.37 |
| Student’s t test | t(14) = 7.42, P = 3.3 × 10−6 |
| Welch’s t test | t(12.8) = 7.42, P = 5.6 × 10−6 |
| Mann–Whitney U test | U = 0, P = 0.00016 (exact) |
Neither normality nor equal variances is a concern, and Student and Welch agree (only the degrees of freedom differ: 14 vs 12.8). Every KO mouse is heavier than every WT mouse, so U = 0 and the exact P is 2 / C(16, 8) = 2 / 12,870 ≈ 0.00016. Because only ranks are used, P cannot get smaller however large the difference is.
Report effect sizes and confidence intervals too
A P value measures how sure you are that the difference is not zero, not how large it is. For two groups, add the mean difference with its 95% confidence interval (here 3.84 g, 2.73 to 4.95 g) or Cohen’s d; for three or more, η². See how to report statistics for formats.
Tests available in BenchFig
- Two groups: Student’s and Welch’s t tests, paired t test (how to do a t test), Mann–Whitney U test, Wilcoxon signed-rank test
- Three or more groups: one-way ANOVA + Tukey or Dunnett, repeated-measures ANOVA + Tukey (values matched by row, or a run column with “Match by run”), Kruskal–Wallis + Dunn’s test, Friedman test + Dunn-type comparisons (values matched by row)
- With a run column (tests on run means), only parametric tests are available
- Assumption checks: Shapiro–Wilk, Brown–Forsythe. Effect sizes: Cohen’s d, η²
FAQ
If a normality test gives P > 0.05, are my data normal?
No. It only means there is not enough evidence of non-normality. With small n, clear departures go undetected; with large n, trivial ones become significant. Look at the dot plot or a Q–Q plot, and consider how this kind of measurement usually behaves.
Can I use Welch’s t test by default?
Yes. When variances are equal it gives almost the same result as Student’s t test, and when they are not it protects you, so using it by default is widely recommended. State which one you used in the Methods.
Why not run three t tests for three groups?
Every extra test raises the chance that one is significant by luck (up to about 14% for three tests at α = 0.05). ANOVA with a multiple-comparison procedure (Tukey, Dunnett, etc.) keeps the overall error rate at 5%.
Are nonparametric tests the safer choice?
Not necessarily. They assume less about the distribution, but lose power with small n: a Mann–Whitney test with 3 vs 3 cannot go below a two-sided P of 0.1, even for the most extreme ordering. If the data are close to normal, a t test detects differences more easily.
Related guides
Product and journal names are trademarks or registered trademarks of their respective owners.