StatLabStudent EditionUser guideGalleryFeaturesAbout

Choosing a statistical test

Pick the test from what you are comparing and how the outcome is measured: means of scale outcomes use t tests and ANOVA, ranks of ordinal or skewed outcomes use Mann-Whitney, Wilcoxon or Kruskal-Wallis, and two categorical variables use chi-square.

QuestionOutcomeUseNonparametric alternative
Is one mean different from a fixed value?ScaleOne-sample t testWilcoxon one-sample (planned)
Do two separate groups differ?ScaleIndependent-samples t testMann-Whitney U
Did the same people change (before/after)?ScalePaired-samples t testWilcoxon signed-rank
Do three or more groups differ?ScaleOne-way ANOVAKruskal-Wallis H
Are two categorical variables related?NominalChi-square (Crosstabs)Fisher's exact test (2×2)
Do two scale variables go together?ScalePearson rSpearman rho
Can I predict an outcome from several variables?ScaleLinear regression—
Do my questionnaire items hang together?ItemsCronbach's alpha—

Check the assumptions with Explore first. If the outcome is ordinal (e.g. a single Likert item) or clearly skewed with a small sample, use the nonparametric column.

Open StatLab   All guide topics