Editverse StatPicker

Which Statistical Test Should I Use?

A free, interactive test selector for medical and biomedical researchers. Answer a few questions about your study design and outcome, and get the right statistical test — with the assumptions to check, the common pitfalls to avoid, and a direct link to a free calculator. Curated by Editverse biostatisticians and validated against R 4.3.3.

18+ tests coveredAssumptions & pitfallsR 4.3.3 validatedFree · no registration
Interactive Selector

Find your test in 3–4 questions

Start with your analysis goal. You can go back or start over at any point.

Rules-based guidance · not a substitute for statistical reviewNeed a statistician? →

How to Choose the Right Statistical Test

Selecting the correct statistical test is not a matter of taste — it is determined by three things: the type of outcome you measured, the number of groups or measurements you are comparing, and whether your observations are independent or paired. Get those three right and the test almost always follows. The interactive selector above walks you through exactly those decisions; this section explains the logic behind it so you can justify your choice to a reviewer.

Step 1 — Identify your outcome (dependent variable) type

Everything starts here. A continuous outcome (blood pressure, HbA1c, a score) points toward means-based tests such as the t-test or ANOVA. A categorical outcome (cured/not cured, responder/non-responder) points toward proportion-based tests such as chi-square, Fisher's exact, or logistic regression. An ordinal outcome (a pain scale, a stage) usually calls for non-parametric methods. A time-to-event outcome (survival, time to relapse) requires survival analysis, because it must account for censored observations that a simple comparison of means cannot.

Step 2 — Count your groups and check for pairing

Are you comparing one group to a known value, two groups, or three or more? And are the observations independent (different subjects in each group) or paired (the same subjects measured twice, or matched)? Pairing is the most commonly missed distinction. Measuring the same patients before and after a treatment is paired data; analysing it as if the two sets of measurements came from independent groups discards the very information that makes the design powerful, and is a recognised error in the literature.

Step 3 — Check the assumptions (parametric vs non-parametric)

Parametric tests (t-test, ANOVA, Pearson correlation) assume the outcome is approximately normally distributed and, for group comparisons, that variances are similar. When those assumptions hold — or the sample is large enough for the central limit theorem to apply — parametric tests are more powerful. When the data are skewed, ordinal, or the sample is small, switch to the non-parametric equivalent: Mann-Whitney instead of the independent t-test, Wilcoxon instead of the paired t-test, Kruskal-Wallis instead of ANOVA, and Spearman instead of Pearson.

Step 4 — Match to the test, then verify with a calculator

Once outcome type, group structure, and assumptions are settled, the test is determined. Use the comparison table below as a quick reference, open the matching free calculator, and confirm your result against the displayed R code. For study planning, always run a sample size and power analysis before collecting data.

Visual Guide: The 3-Filter System in Action

Each slide maps directly to a step in the interactive selector above — from framework to test.

The 3-Filter Selection Funnel: outcome type to group structure to assumptions to definitive statistical test
The 3-filter framework that determines every statistical test choice. © editverse.com
Filter 1 data topology: continuous, categorical, ordinal, time-to-event outcome types
Filter 1: your outcome type is the first and most critical decision. © editverse.com
Filter 2 pairing rule: independent groups different subjects versus paired groups same subjects measured twice
Filter 2: the pairing distinction is the most commonly missed step in test selection. © editverse.com
Filter 3 central limit balance: parametric tests power for normal data versus non-parametric tests safety for skewed data
Filter 3: parametric tests offer more power when normality holds; non-parametric is the safer default. © editverse.com
Diagnostic Matrix 1 group comparisons: t-test ANOVA for normal data, Mann-Whitney Wilcoxon Kruskal-Wallis for non-normal
Matrix 1: the complete group comparison decision tree. © editverse.com
Diagnostic Matrix 2 categorical binary: Chi-Square Fisher Exact McNemar Odds Ratio Relative Risk
Matrix 2: four categorical pathways matched to table size and pairing. © editverse.com
Diagnostic Matrix 3 relationships prediction: Pearson Spearman correlation, linear or logistic regression
Matrix 3: correlation vs regression matched to outcome type. © editverse.com
Diagnostic Matrix 4 agreement diagnosis survival: Kappa ICC Bland-Altman, sensitivity specificity ROC, Kaplan-Meier Log-Rank
Matrix 4: three advanced domains requiring specialist tests. © editverse.com
System error multiple testing trap: multiple t-tests inflate false positives versus ANOVA with Tukey post-hoc
The multiple testing trap: use ANOVA then Tukey, not multiple t-tests. © editverse.com
System error misdiagnosing results: correlation does not equal agreement, not significant does not equal no effect
Two critical misdiagnoses: ICC/Bland-Altman for agreement, always report effect size. © editverse.com
Synthesis study planning lifecycle: sample size power, outcome type, 3-filter test selection, R 4.3.3 validation
The closed-loop protocol: plan, type, select, validate. © editverse.com

Statistical Test Selection Table

Match your study design to the right test, then open the free calculator.

Goal / designOutcome typeGroupsRecommended testCalculator
Comparing groups
Two independent groups, normal dataContinuous2 (independent)Independent t-Testt-Test →
Two independent groups, skewed/ordinalContinuous / ordinal2 (independent)Mann-Whitney UMann-Whitney →
Before/after, same subjects, normalContinuous2 (paired)Paired t-Testt-Test →
Before/after, same subjects, skewedContinuous / ordinal2 (paired)Wilcoxon Signed-RankWilcoxon →
Three or more groups, normalContinuous3+ (independent)One-Way ANOVA + TukeyANOVA →
Three or more groups, non-normalContinuous / ordinal3+ (independent)Kruskal-WallisIn app →
Categorical outcomes
Association, adequate countsCategorical2+ (independent)Chi-SquareChi-Square →
Association, small/sparse tableCategorical2 (independent)Fisher's ExactFisher’s →
Paired binary (before/after)Binary2 (paired)McNemar's TestMcNemar →
Size of risk (exposure → outcome)Binary2 (independent)Odds Ratio / Relative RiskOR / RR →
Relationships & prediction
Association between two variablesContinuous—Pearson / Spearman CorrelationCorrelation →
Predict continuous outcomeContinuous—Linear RegressionRegression →
Predict binary outcomeBinary—Logistic RegressionLogistic →
Agreement, diagnosis & survival
Rater agreement, categoriesCategorical2 ratersCohen's KappaKappa →
Reliability / method comparisonContinuous2 raters/methodsICC / Bland-AltmanICC →
Diagnostic test vs referenceBinary—Sensitivity & SpecificitySens/Spec →
Test performance across thresholdsContinuous → binary—ROC Curve & AUCROC →
Time-to-event with censoringTime-to-event1–2 groupsKaplan-Meier / Log-RankSurvival →
Study planning
How many participants do I need?Any—Sample Size & Power AnalysisSample Size →

Common Mistakes in Test Selection

Ignoring that the data are paired

Analysing repeated or matched measurements as if they came from independent groups is one of the most common and consequential errors. Paired designs require paired tests (paired t-test, Wilcoxon signed-rank, or McNemar for binary data); ignoring the dependency throws away the design's efficiency and can produce misleading results.

Running multiple t-tests instead of ANOVA

Comparing three or more groups with a series of pairwise t-tests inflates the family-wise false-positive rate. Use a single omnibus test (ANOVA or Kruskal-Wallis) followed by a corrected post-hoc comparison.

Using a parametric test on skewed or ordinal data

The t-test and ANOVA assume approximate normality. On clearly skewed, ordinal, or very small samples, switch to the non-parametric equivalent rather than forcing a parametric test.

Confusing correlation with agreement

A high Pearson correlation between two measurement methods does not mean they agree — two methods can be perfectly correlated yet systematically biased. Use the intraclass correlation or a Bland-Altman analysis to assess agreement.

Treating "not significant" as "no effect"

A non-significant result in an underpowered study is not evidence of no effect. Report the effect size and confidence interval, and plan an adequately powered sample size in advance.

Uncorrected multiple testing

Testing many outcomes or fitting many models without correcting for multiplicity inflates false positives and is a recognised source of irreproducible findings.

Frequently Asked Questions

How do I know if my data are "normal"?

Inspect a histogram or Q-Q plot, and for formal testing use a normality test (Shapiro-Wilk). With large samples, mild non-normality matters little because of the central limit theorem; with small samples, prefer non-parametric tests when in doubt.

What is the difference between paired and independent data?

Independent data come from different, unrelated subjects in each group. Paired data come from the same subjects measured twice (before/after) or from matched pairs. Pairing changes the test you use, so identify it before analysing.

Parametric or non-parametric — which is better?

Parametric tests are more powerful when their assumptions hold. Non-parametric tests are safer for skewed, ordinal, or small-sample data. Match the test to your data, not the other way around.

Do I need to calculate sample size before choosing a test?

Yes. The test you plan to use determines the sample size calculation, and both should be specified in your protocol before data collection — ethics committees and reviewers expect this.

Can a statistician check my choice?

Yes. Our biostatisticians review study designs, confirm the correct test, and run the full analysis with reproducible R output as part of a statistical analysis package.

References & Further Reading

Peer-reviewed, PubMed-indexed sources on statistical test selection and reporting.

Franc JM. Analysis of Paired Data. Prehosp Disaster Med. 2025.PMID: 40213959 · On the common error of ignoring data dependencies
Altman N, Krzywinski M. Understanding p-values and significance. Lab Anim. 2024.PMID: 39315628 · Effect size, selection bias and multiple testing

Still Not Sure Which Test Fits Your Data?

Our biostatisticians confirm the right test, check the assumptions, and run your full analysis with reproducible R output.

Get Expert Statistical Help