CalculatorsToolsGuides 日本語
BenchFig › Guides › Choosing between t tests, ANOVA and nonparametric tests
Statistics

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.

Updated: BenchFig日本語

Decide three things first

Key points
  • 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

Two groups, unpaired (e.g. separate WT and KO mice)
Close to normal → Welch’s t test (Student’s t test if variances can be assumed equal)
Skewed or outliers → Mann–Whitney U test
Two groups, paired (e.g. before/after in the same mouse; control and treatment run side by side)
Differences close to normal → paired t test
Differences skewed → Wilcoxon signed-rank test
Three or more groups, unpaired (e.g. vehicle and three doses)
Close to normal → one-way ANOVA + multiple comparisons (Tukey for all pairs, Dunnett for each vs control)
Skewed → Kruskal–Wallis test + Dunn’s test
Three or more groups, paired (e.g. the same animal at 3 time points)
Close to normal → repeated-measures ANOVA + multiple comparisons (in BenchFig: match values by row, or a run column + “Match by run”)
Skewed → Friedman test

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:

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 / testResult
Shapiro–Wilk (WT / KO)W = 0.955, P = 0.76 / W = 0.965, P = 0.86
Brown–ForsytheF(1, 14) = 0.86, P = 0.37
Student’s t testt(14) = 7.42, P = 3.3 × 10−6
Welch’s t testt(12.8) = 7.42, P = 5.6 × 10−6
Mann–Whitney U testU = 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.

Open this example on the Graph screenThe WT/KO body-weight sample shows the assumption checks, the t test, Cohen’s d and a ready-to-paste results sentence.
Open for free →

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

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.

Pick a test with sample dataOpen the two-group or multi-group sample on the Graph screen to see assumption checks (Shapiro–Wilk, Brown–Forsythe), the test result and effect sizes side by side.
Open for free →
Your own data, all the way to the final figure.Loading your files, saving, and journal-ready export (PDF, TIFF, PNG, SVG) are in BenchFig Pro for Windows, updated based on researchers’ requests: ¥3,980/year (2 PCs), with lab and perpetual licenses too.
About the app →

Related guides

Product and journal names are trademarks or registered trademarks of their respective owners.