Statistics Quest

Choosing a test: decision guide

Match the question, the outcome type and the study design to an appropriate method, then check its assumptions.

When to use

Before any analysis. Answer three questions: What is the question (compare groups, relate variables, estimate one quantity)? What type is the outcome (quantitative, binary, categorical, ordinal)? What is the design (one sample, two independent groups, paired, several groups)?

Question / designQuantitative outcome (roughly normal or large n)Skewed / ordinal / small nBinary or categorical outcome
One sample vs a benchmarkOne-sample tWilcoxon signed-rank or sign testOne-proportion z / exact binomial; χ² goodness of fit
Two independent groupsWelch two-sample tMann–Whitney; permutation testTwo-proportion z; Fisher exact if counts are small
Paired / before–afterPaired tWilcoxon signed-rankMcNemar's test (paired binary)
Three or more groupsOne-way ANOVA or Welch ANOVA, then TukeyKruskal–Wallisχ² test of independence
Two categorical variables——χ² independence; Fisher for sparse 2×2
Relationship between two quantitative variablesPearson r, simple regressionSpearman / Kendall—
Predict an outcome from several variablesMultiple regressionTransform or robust methodsLogistic regression
Any statistic, few assumptionsBootstrap CIPermutation testBootstrap

Assumptions

Every row inherits its method's assumptions; independence and a sound design matter more than the choice between parametric and rank tests. Check them with plots first (Shapiro–Wilk and Levene/Brown–Forsythe only as supporting evidence).

How to interpret

  • Prefer methods that give an estimate with an interval, not just a p-value.
  • Parametric tests answer questions about means; rank tests about the tendency of one group to exceed another. Pick the one whose question you care about, not the one with the smaller p.
  • With several tests, plan a multiple-comparison adjustment.

Common mistakes

  • Trying several tests and reporting the one that "worked".
  • Ignoring pairing or clustering (e.g. treating repeated visits by one customer as independent).
  • Running multiple t-tests instead of ANOVA plus a post-hoc procedure.
  • Using a chi-square test on percentages or means.
  • Choosing a nonparametric test only because a normality test gave p < 0.05 with a large sample.

Example

A clinic records waiting times (strongly right-skewed, 15 patients per clinic) for three clinics. Question: do waiting times differ between clinics? Outcome: quantitative but skewed; design: three independent groups, small n → Kruskal–Wallis, followed by Holm-adjusted pairwise Mann–Whitney tests; report medians and IQRs per clinic. If the groups were large (say 200 each), Welch's ANOVA on the means would also be reasonable, and it answers a question about average waiting time, which may matter more for staffing.