How to choose a statistical test

By the Easenco team · Updated · 6 min read

Three questions decide most statistical tests: what you want to know, what type each variable is, and whether observations are paired. This guide turns them into a decision table and shows, with worked numbers, the choices that most often change a result.

Three questions decide the test

Choosing a statistical test looks complicated because there are so many of them, but for most studies the choice follows from three questions:

  1. What do you want to know? Whether groups differ, whether two variables are related, whether raters or measurements agree, or how large an effect is.
  2. What type is each variable? Categorical (groups, yes/no, categories), ordinal (ranks, rating scales treated as ordered categories) or continuous (scores, times, amounts, scale means).
  3. Are the observations independent or paired? Different people in each group are independent; the same people measured twice, or matched pairs, are paired.

Answer those three questions and the table below gives the usual test. The rest of this guide explains the choices that trip people up most often: paired data, small samples, non-normal data, many tests, and the difference between a significant result and a large one.

Start with the question you need to answer

  • Planning a study? Use the power analysis calculator for a supported t test, correlation, regression or ANOVA; choose an effect and assumptions that fit your design.
  • Comparing independent or paired outcomes? Use the table below to select the study design before selecting a test. The two-proportions calculator is for independent groups; the McNemar calculator uses paired binary outcomes.
  • Checking agreement between coders? Start with the overlap checker, then review the agreement coefficient guide. Missing ratings are not automatically disagreements.
  • Organizing qualitative material? The case-by-theme matrix supports a manual comparison; it does not perform the interpretation for you.

These links are starting points, not automatic method selection. Account for clustering, missingness, sampling and your study protocol before drawing conclusions.

The decision table

QuestionDataUsual testEffect size
Do two groups differ?Continuous outcome, independent groupsIndependent t test (Welch's version by default); Mann–Whitney U if strongly skewed or ordinalCohen's d, Hedges' g
Did scores change?Continuous outcome, same people twicePaired t test; Wilcoxon signed-rank if skeweddz
Do three or more groups differ?Continuous outcome, independent groupsOne-way ANOVA (Welch's ANOVA if variances differ) and post hoc tests; Kruskal–Wallis if skewedη², ω², Cohen's f
Do two proportions differ?Yes/no outcome, independent groupsTwo-proportion z test (= chi-square); Fisher's exact test for small countsRisk difference, relative risk, odds ratio
Did a proportion change?Yes/no outcome, same people twiceMcNemar's testChange in proportion
Are two categorical variables related?Counts in a tableChi-square test of independence; Fisher's exact test for small 2 × 2 tablesCramér's V, φ
Are two continuous variables related?Two scores per personPearson correlation (compare two correlations); Spearman or Kendall for ranks or outliersr, ρ, τb
Do several variables predict an outcome?Continuous outcomeMultiple regression; logistic regression for a yes/no outcomeR², f², odds ratios
Does a relationship depend on a third variable?Regression with an interactionTest of the product term, then simple slopesSimple slopes, ΔR²
Do two raters agree?Categories / ordered ratings / continuous scoresCohen's kappa / weighted kappa / intraclass correlationThe coefficient itself
Is a scale reliable?Several items per personCronbach's alpha; omega from a factor modelThe coefficient itself

Statistical software runs most of these tests from raw data. The calculators linked in this guide help with the steps around them: planning the sample, testing from summary counts, recovering effect sizes from published statistics and checking reported results.

Paired or independent: the most common mistake

When the same people are measured twice, the two sets of measurements are correlated, and a test that assumes independent groups gets the uncertainty wrong. Consider 66 employees who took a skills check before and after a course: 42 passed before and 34 after. Treated as two independent samples, a two-proportion test gives p = .159. Analysed correctly as pairs, McNemar's exact test uses only the 16 people whose result changed and gives p = .077.

The same applies to continuous outcomes: a paired t test is usually far more powerful than an independent one, because each person serves as their own control. Use the McNemar test calculator for paired yes/no outcomes and the two proportions calculator only for genuinely independent groups.

Small samples and sparse tables

Many tests rely on large-sample approximations. The chi-square test, for example, needs most expected counts to be at least 5. In a 2 × 2 table with counts 8, 2, 2 and 7, the chi-square test gives p = .012 and Fisher's exact test p = .023. When expected counts are small, report the exact test. The chi-square calculator warns when expected counts are too low and gives Fisher's exact test for 2 × 2 tables.

For a single proportion, the same issue affects confidence intervals: the textbook ±1.96 standard error interval fails near 0% or 100%. The proportion calculator shows the Wilson and exact intervals side by side.

Non-normal data and outliers

The t test and ANOVA assume roughly normal residuals, but they are robust to moderate departures, especially with 30 or more observations per group. Three situations call for an alternative:

  • Ordinal outcomes with few categories, such as a single 5-point item: use rank-based tests (Mann–Whitney, Wilcoxon, Kruskal–Wallis) or ordinal regression.
  • Strong skew or outliers in small samples, such as reaction times or costs: rank-based tests, a transformation (for example the logarithm), or robust and bootstrap methods.
  • Unequal variances: Welch's t test and Welch's ANOVA, which most statisticians now recommend by default.

A mean of several Likert items, such as a scale score, is usually treated as continuous; a single Likert item usually is not.

Agreement is not the same as correlation

Two raters can correlate perfectly while never giving the same score, if one is always a point higher. To measure agreement, use a coefficient built for it: Cohen's kappa for categories, weighted kappa for ordered ratings and the intraclass correlation for continuous scores. For ordered ratings the weights matter: in a 3-point example where every disagreement is one step apart, unweighted kappa is 0.59 but quadratic weighted kappa is 0.76. See the weighted kappa, ICC and inter-coder reliability calculators, and the Cronbach's alpha calculator for the internal consistency of a scale.

Significant is not the same as large

A p-value depends on both the size of an effect and the sample size. The same t = 2.2 gives d = 0.90 with 12 people per group but d = 0.16 with 400 per group, and p is .039 and .028 respectively. Always report an effect size with a confidence interval alongside the test. The effect size from t or F calculator recovers d or partial η² from a reported statistic, and the effect size converter translates between d, r, f and odds ratios.

Before collecting data, decide what effect size would matter and plan the sample with the power analysis calculator; the effect size guide explains how to choose it.

Many tests at once

Running many tests inflates the chance of a false positive: ten independent tests at α = .05 have about a 40% chance of at least one significant result when nothing is going on. Separate planned (confirmatory) tests from exploratory ones, and adjust each family of exploratory tests. Holm's method controls the chance of any false positive; Benjamini–Hochberg controls the proportion of false discoveries and keeps more power when there are many tests. The multiple comparisons calculator applies seven methods to a pasted list of p-values.

Comparing results rather than groups

  • Is a correlation stronger in one group than another? Test the difference between the correlations directly with the correlation comparison calculator; one significant and one non-significant correlation is not evidence of a difference.
  • Does the effect of X depend on W? Fit an interaction and probe it with simple slopes and Johnson–Neyman.
  • What do several studies show together? Pool their effect sizes with the meta-analysis calculator, which also reports heterogeneity and a prediction interval.
  • Does a mediator carry the effect? Test the indirect effect with a bootstrap or the Monte Carlo interval in the Sobel test calculator.

A short checklist

  1. Write down the research question and the test that answers it before seeing the data.
  2. Identify the type of each variable and whether observations are paired.
  3. Check the test's assumptions: expected counts, skew, outliers, equal variances.
  4. Report the test statistic, degrees of freedom, exact p-value, and an effect size with its confidence interval.
  5. Say which tests were planned and how multiple comparisons were handled.

For a worked example of the whole process on a survey, see how to analyze questionnaire data.

Calculators for this guide

ResearchWelch’s, Student’s and paired t-test calculatorRun Welch’s independent, Student’s pooled or paired-samples t-tests from summary statistics (n, M, SD) or raw data, with 95% CI, Cohen’s d and Hedges’ g.Open calculator →ResearchMann–Whitney U test calculatorCompare two independent groups with the non-parametric Mann–Whitney U test, exact or asymptotic p-value, rank-biserial correlation and Hodges–Lehmann shift.Open calculator →ResearchWilcoxon signed-rank test calculatorCompare paired before-and-after measurements with the Wilcoxon signed-rank test, exact p-values, matched-pairs rank-biserial r and pseudomedian.Open calculator →ResearchKruskal–Wallis test and Dunn’s post-hoc calculatorCompare three or more independent groups with the Kruskal–Wallis H test, epsilon-squared effect size and Holm-adjusted Dunn’s pairwise follow-ups.Open calculator →ResearchSpearman’s rho and Kendall’s tau-b correlation calculatorCompute Spearman’s rank correlation (ρ), Kendall’s τb and Pearson’s r side by side with tie corrections, confidence intervals and a live scatter plot.Open calculator →ResearchPower analysis calculatorSample size, power or smallest detectable effect for t tests, correlation, multiple regression and one-way ANOVA.Open calculator →ResearchChi-square test and Cramér's V calculatorChi-square test of independence with Cramér's V, adjusted residuals, and Fisher's exact test, odds ratio and relative risk for 2 × 2 tables.Open calculator →ResearchMcNemar test calculatorMcNemar's test for paired yes/no outcomes, before and after or matched pairs: exact, mid-p and chi-square p-values with the change and its CI.Open calculator →

Related guides