Numbers & Math

Statistical Tests Reference

Which hypothesis test to use — t-test, chi-square, ANOVA, non-parametric alternatives.

Picking a test

QuestionParametricNon-parametricNotes
Mean differs from known valueOne-sample t-testWilcoxon signed-rankSingle sample vs constant
Two means (independent samples)Two-sample t-testMann-Whitney UUnequal variance? Welch's t
Two means (paired samples)Paired t-testWilcoxon signed-rankBefore/after or matched
More than two meansOne-way ANOVAKruskal-WallisFollowed by post-hoc
Two categorical variables independent?Chi-squareFisher's exactUse Fisher for small counts
CorrelationPearson rSpearman ρSpearman for non-linear / rank
ProportionsZ-test / binomialFor large n use Z
Regression significancet-test on coefficientVia OLS regression

Assumptions

t-testApproximately normal (robust at n > 30), roughly equal variances (Welch relaxes this)
ANOVANormal residuals, equal variances, independent observations
Chi-squareExpected counts ≥ 5 per cell (else Fisher's exact)
Non-parametricLess power; use when normality violated and n small

P-value interpretation

  • p-value is NOT the probability the null is true.
  • It is P(observed data | null hypothesis).
  • α = 0.05 is a convention — not magical. Effect size and confidence intervals often matter more.
  • Multiple testing: use Bonferroni or FDR correction when running many tests.
  • Pre-register hypotheses to avoid p-hacking.
Was this article helpful?