Which statistical test should I use?

Most test-selection agony disappears once you ask four questions in order. This guide walks them with the answers researchers actually need.

1. What kind of outcome did you measure?

  • A continuous measurement (yield, concentration, mass, absorbance) → the t-test / ANOVA / regression family below.
  • Binary outcomes (yes / no) — germinated or not, infected or not → binary logistic regression.
  • True counts (insects per plant, colonies per plate) need Poisson-family models, and contingency tables chi-square or Fisher’s exact test — not offered in MinutePlot yet.

Questions 2 and 3 cover the continuous case, which is most lab data; question 4 the relationships.

A word on words. A factor is a variable you vary (fertiliser type); its levels are the options it takes (control, A, B); the replicates measured at one level form a group. With two factors, each combination of levels is a cell — one group. This is how MinutePlot’s templates are laid out: factor A down the rows, factor B across grouped columns, replicates within each group.

2. How many factors did you vary?

Count the variables you deliberately varied, not the groups they make: a 2 × 3 design has six groups but two factors, and it is the factors that choose the test.

  • One factor (fertiliser type) → one-way ANOVA.
  • Two crossed factors (fertiliser and watering regime) → two-way ANOVA, which also tests whether the factors interact.
    DailyWeekly
    r1r2 r3r4r1 r2r3r4
    Control42.140.843.041.538.237.539.138.8
    High N52.353.151.652.844.945.844.145.3

    r = replicate: r1 is replicate 1, r2 replicate 2, and so on.

    Example data from the Two-way ANOVA and interactions guide.

  • Three crossed factorsthree-way ANOVA: three main effects, three two-way interactions and the three-way interaction, in one analysis.
  • Repeated measurements of the same subjects (each subject measured under every level of one factor, e.g. over time) → one-way repeated-measures ANOVA.
    Timepoints
    Day 0 Day 7Day 14
    Plant 15.06.17.2
    Plant 24.85.97.0
    Plant 35.36.47.6
    Plant 45.16.07.1
    Plant 54.96.27.3
    Plant 65.26.37.4

    Example data from the Repeated-measures ANOVA guide.

  • Two within-subject factors (every subject measured under every combination) → two-way repeated-measures ANOVA.
  • One between-subjects factor and one within (groups of subjects, each subject measured over time) → two-way mixed ANOVA.

3. With one factor: how many groups?

If question 2 landed on one factor, the number of its levels decides the test.

  • Two groups → a t-test:
    • independent (unpaired) when the two groups contain different subjects;
    • paired when each subject was measured twice (before and after, left and right).
    Values
    r1r2 r3r4r5 r6r7r8
    Control5.15.44.95.65.05.34.85.2
    Treated6.06.45.86.66.15.96.36.2

    r = replicate: r1 is replicate 1, r2 replicate 2, and so on.

    Example data from the Independent t-test guide.

  • Three or more groupsone-way ANOVA — never a chain of t-tests, because many pairwise tests inflate the chance of a false positive; ANOVA asks the question once, properly, and letters then show which groups differ.
    Values
    r1r2 r3r4r5 r6
    Control41.239.843.140.542.038.9
    Low N45.647.244.946.845.146.3
    High N50.352.149.751.450.848.9
    N + P51.049.552.650.251.753.0

    r = replicate: r1 is replicate 1, r2 replicate 2, and so on.

    Example data from the One-way ANOVA with post-hoc letters guide.

4. Is a relationship, not a difference, the question?

The assumptions, briefly

The parametric tests above assume residuals are roughly normal and group variances similar. MinutePlot checks both automatically with every analysis — Shapiro–Wilk for normality and Levene’s test, centred on the median, for equal variances (the two-group comparison is Welch’s t-test, which does not assume equal variances) — and tells you in plain words whether the assumptions held.

When a check fails. Mild violations are usually tolerable: with groups of similar size, ANOVA and the t-test are robust to moderate non-normality and unequal variances. A transformation (log for right-skewed measurements, square root for counts, arcsine for proportions) often restores both. MinutePlot offers Dunn’s non-parametric pairwise comparisons as a post-hoc option but no non-parametric alternative to the omnibus tests themselves; for severely non-normal data with small groups, run a rank-based test elsewhere and say so in the methods.

Try it yourself — in a minute. Open MinutePlot in your browser and try it on your own data — free 14-day trial, no card needed.
References
  1. Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). John Wiley & Sons.
  2. Kutner, M. H., Nachtsheim, C. J., Neter, J. & Li, W. (2005). Applied Linear Statistical Models, 5th ed. McGraw-Hill.
  3. Johnson, R. A. & Wichern, D. W. (2007). Applied Multivariate Statistical Analysis, 6th ed. Pearson.