Home / Tools / Statistical Test Chooser

Statistical Test Chooser

Not sure which statistical test fits your study? Answer a few plain-English questions about your goal and your data, and this chooser walks the standard decision tree to name the right test. For each recommendation you get the assumptions to check, a distribution-free alternative, runnable R code, and a link straight to our matching calculator. Everything runs in your browser.

Parametric test

-

Your decision path

Run this test in R

  

No data leaves your browser Every R snippet run-verified in R 4.6.0 Free, no sign-up

How this recommendation is made
1Your goal sets the branch: comparing groups, measuring a relationship, predicting an outcome, describing data, analysing time to an event, or measuring rater agreement.
2The outcome type (continuous, ordinal, binary, nominal or count) narrows the family of tests that make sense for those values.
3The number of groups and whether they are independent or paired pick the exact test within that family.
4For continuous data, normality decides parametric versus rank-based, and equal variances chooses between the pooled and Welch versions.

The full decision tree

Every path the chooser can take, grouped by goal. Each row links to the tutorial for that test. This is the same logic the wizard above runs.

Compare groups or conditions

You have a variable measured in different groups (or the same subjects more than once) and want to know whether they differ.

Measure a relationship

You have two variables and want to know whether, and how strongly, they move together.

Predict or model an outcome

You want to model an outcome from one or more predictors.

Time-to-event (survival)

Your outcome is the time until an event happens, with some observations censored.

Rater agreement / reliability

You want to quantify how well raters or methods agree.

  • Two raters, categorical labels Cohen’s kappa
  • Three or more raters, categorical labels Cohen’s kappa
  • Continuous ratings from two or more raters Intraclass correlation (ICC)

Describe your data

You want to summarise a single variable, not run a test.

Test coverage matrix

The 33 tests this chooser can recommend, with our matching calculator and tutorial for each. A few advanced tests have a tutorial only for now.

TestUse it whenOur calculatorTutorial
One-sample t-testCompares one group’s mean against a known or claimed value.Open the t-test calculatort-tests in R
Two-sample t-test (pooled)Compares the means of two independent groups when their spreads are similar.Open the t-test calculatort-tests in R
Welch’s t-testCompares two independent group means without assuming equal variances (R’s default).Open the t-test calculatort-tests in R
Paired t-testCompares two measurements taken on the same subjects (before vs after).Open the t-test calculatort-tests in R
Mann-Whitney U testCompares two independent groups by ranks when normality is doubtful.Open the nonparametric test calculatorMann-Whitney U in R
Wilcoxon signed-rank testRank-based test for paired data (or one sample vs a value) when data are skewed.Open the nonparametric test calculatorWilcoxon signed-rank in R
Sign testTests whether paired differences tend to be positive or negative; needs only the direction.Open the nonparametric test calculatorSign test in R
Kruskal-Wallis testCompares 3+ independent groups by ranks (the nonparametric one-way ANOVA).Open the nonparametric test calculatorKruskal-Wallis in R
Friedman testCompares 3+ repeated measures by ranks (the nonparametric repeated-measures ANOVA).Open the nonparametric test calculatorFriedman test in R
One-way ANOVACompares the means of 3+ independent groups in a single test.Open the ANOVA output interpreterOne-way ANOVA in R
Welch’s ANOVACompares 3+ group means when the variances are unequal.Open the ANOVA output interpreterWelch’s ANOVA in R
Repeated-measures ANOVACompares 3+ conditions measured on the same subjects.Open the ANOVA output interpreterRepeated-measures ANOVA in R
Chi-square goodness-of-fit testChecks whether one categorical variable’s frequencies match an expected distribution.Open the chi-square calculatorGoodness-of-fit in R
Chi-square test of independenceTests whether two categorical variables are associated.Open the chi-square calculatorIndependence test in R
Fisher’s exact testExact test of association for small 2x2 tables (when expected counts fall below 5).Open the chi-square calculatorFisher’s exact test in R
McNemar’s testTests a change in a paired binary outcome (same subjects, before vs after).Open the chi-square calculatorMcNemar’s test in R
Cochran’s Q testExtends McNemar to 3+ repeated binary measures on the same subjects.none yetMcNemar’s test (Q generalises it)
One-sample z-test for a proportionTests whether one proportion differs from a hypothesised value, with a large sample.none yetOne-sample proportion z-test
Two-sample z-test for proportionsCompares a yes/no rate between two independent groups.Open the A/B (two-proportion) calculatorProportion tests in R
Exact binomial testExact test for one proportion; the right choice when the sample is small.none yetExact binomial test in R
Pearson correlationMeasures the strength of a straight-line relationship between two continuous variables.none yetPearson correlation in R
Spearman correlationRank-based correlation for monotonic relationships that need not be linear.none yetSpearman & Kendall in R
Kendall’s tauRank correlation that stays reliable with small samples and many ties.none yetSpearman & Kendall in R
Simple linear regressionModels a continuous outcome from a single predictor.Open the linear-model interpreterSimple linear regression in R
Multiple linear regressionModels a continuous outcome from two or more predictors at once.Open the linear-model interpreterMultiple regression in R
Logistic regressionModels a binary (yes/no) outcome from one or more predictors.Open the GLM output interpreterLogistic regression in R
Poisson regressionModels a count outcome (events per unit) from predictors.Open the GLM output interpreterPoisson regression in R
Ordinal logistic regressionModels an ordered categorical outcome (the proportional-odds model).none yetOrdinal logistic regression in R
Multinomial logistic regressionModels an unordered categorical outcome with 3+ categories.none yetMultinomial logistic regression in R
Log-rank testCompares survival curves between two or more groups.Open the survival calculatorKaplan-Meier & log-rank
Cox proportional-hazards regressionModels time-to-event from covariates without assuming a survival distribution.Open the survival calculatorCox proportional hazards
Cohen’s kappaMeasures agreement between two raters on categorical labels, correcting for chance.Open the confusion-matrix interpreternone yet
Intraclass correlation (ICC)Measures how consistently raters agree on continuous scores.none yetnone yet

Assumptions worth checking first

Whatever the chooser recommends, three questions decide whether the test is valid. Check these before you trust the p-value.

QuestionWhy it mattersWhat to do
Are observations independent?Almost every test assumes it; clustering or repeated measures break it.Use a paired or mixed model when the same subjects appear more than once.
Is the data roughly normal?Decides parametric versus rank-based for continuous outcomes.Check with the normality test picker; the t-test and ANOVA are robust once n is large.
Are the group spreads similar?Unequal variances bias the pooled t-test and classic ANOVA.Prefer Welch's t-test or Welch's ANOVA, which do not assume equal variances.

Frequently asked questions

How do I choose the right statistical test?

Start from your goal: comparing groups, measuring a relationship, predicting an outcome, describing data, analysing time to an event, or measuring rater agreement. Then answer follow-up questions about your outcome type, the number of groups, whether the groups are paired, and whether continuous data look normal. The chooser walks that decision tree and names the matching test, its assumptions and a runnable example.

What is the difference between a parametric and a nonparametric test?

Parametric tests such as the t-test and ANOVA assume the data follow a distribution, usually normal. Nonparametric tests such as Mann-Whitney and Kruskal-Wallis work on ranks and make weaker assumptions, so they are safer for skewed or ordinal data at a small cost in statistical power. When normality is doubtful and the sample is small, the rank-based test is the safe pick.

When should I use Welch's t-test instead of Student's?

Use Welch's t-test whenever the two groups may have different variances, which is most real situations. It is R's default and stays accurate when spreads differ, while the pooled Student's t-test can mislead. Choose the pooled version only when you have a good reason to believe the variances are equal.

What test should I use for a yes/no outcome?

For a single proportion against a target, use an exact binomial test with a small sample or a one-sample z-test with a large one. For two independent groups, use a chi-square test of independence or a two-proportion z-test, or Fisher's exact test when the counts are small. For a paired yes/no outcome measured before and after, use McNemar's test, and Cochran's Q for three or more repeated conditions.

Does the R code on each card actually run?

Yes. Every R snippet is self-contained and was run in R 4.6.0 before publishing, so you can paste it straight into R or RStudio and reproduce the example output. The chooser itself does no computation on your numbers; it points you to the correct test and the calculator that runs it.

Go deeper