How to choose a statistical test
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:
- 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.
- 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).
- 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
| Question | Data | Usual test | Effect size |
|---|---|---|---|
| Do two groups differ? | Continuous outcome, independent groups | Independent t test (Welch's version by default); Mann–Whitney U if strongly skewed or ordinal | Cohen's d, Hedges' g |
| Did scores change? | Continuous outcome, same people twice | Paired t test; Wilcoxon signed-rank if skewed | dz |
| Do three or more groups differ? | Continuous outcome, independent groups | One-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 groups | Two-proportion z test (= chi-square); Fisher's exact test for small counts | Risk difference, relative risk, odds ratio |
| Did a proportion change? | Yes/no outcome, same people twice | McNemar's test | Change in proportion |
| Are two categorical variables related? | Counts in a table | Chi-square test of independence; Fisher's exact test for small 2 × 2 tables | Cramér's V, φ |
| Are two continuous variables related? | Two scores per person | Pearson correlation (compare two correlations); Spearman or Kendall for ranks or outliers | r, ρ, τb |
| Do several variables predict an outcome? | Continuous outcome | Multiple regression; logistic regression for a yes/no outcome | R², f², odds ratios |
| Does a relationship depend on a third variable? | Regression with an interaction | Test of the product term, then simple slopes | Simple slopes, ΔR² |
| Do two raters agree? | Categories / ordered ratings / continuous scores | Cohen's kappa / weighted kappa / intraclass correlation | The coefficient itself |
| Is a scale reliable? | Several items per person | Cronbach's alpha; omega from a factor model | The 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
- Write down the research question and the test that answers it before seeing the data.
- Identify the type of each variable and whether observations are paired.
- Check the test's assumptions: expected counts, skew, outliers, equal variances.
- Report the test statistic, degrees of freedom, exact p-value, and an effect size with its confidence interval.
- 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.