Skip to main content
|6 min read|Analysez AI

How to Choose the Right Statistical Test: A Three-Question Guide

We asked a master's student why his supervisor had not accepted his choice of a t-test followed by ANOVA: "So what is the right test?"

The answer starts with a question: is the outcome variable in your study continuous or categorical?

Not being able to answer that question is the root of the problem.

Choosing a statistical test is not about memorising a list. It is about understanding the nature of your data.

A Common Problem: Choosing the Test Before Understanding the Data

One of the most common mistakes in master's and doctoral theses is that the student fixes the statistical test on day one, before understanding the nature of the variables.

The result is an unsuitable test that produces unreliable results, followed by rework late in the project.

The Three Questions That Determine the Right Test

Question 1: What type is the outcome variable?

  • Continuous: for example blood pressure, weight and glucose level. This points to one family of tests.
  • Categorical or binary: for example death or survival, patient or healthy. This points to another family of tests.
  • Count data: for example the number of events. This points to a third family.
  • Time-to-event: for example time to death or recovery. This calls for survival analysis.

Question 2: How many groups are you comparing?

  • Two groups: a t-test or the Mann-Whitney test, depending on the distribution.
  • More than two groups: analysis of variance (ANOVA) or the Kruskal-Wallis test.
  • The same individuals at two time points: the paired t-test or the Wilcoxon signed-rank test.
  • The same individuals at several time points: repeated measures ANOVA.

Question 3: Are the data parametric or non-parametric?

You can check using the Shapiro-Wilk test or by looking at a histogram.

  • If the data are normally distributed: parametric tests (t-test, ANOVA).
  • If the data are not normally distributed, or the sample size is small (< 30): the non-parametric alternatives.

Quick Reference Table

SituationSuitable test
Two groups, continuous outcome, normal distributionIndependent t-test
Two groups, continuous outcome, non-normal distributionMann-Whitney U
More than two groups, continuous outcome, normal distributionOne-way ANOVA
More than two groups, continuous outcome, non-normal distributionKruskal-Wallis
Binary outcome, two groupsChi-square or Fisher's Exact
Binary outcome with covariatesLogistic Regression
Continuous outcome with covariatesLinear Regression
Repeated measurementsRepeated Measures ANOVA

This table is a starting point for understanding, not a substitute for it.

What Should You Do Now?

Identify the outcome variable and answer the three questions. If doubts remain, you can book a methodology consultation with Analysez AI before collecting data, so that the right test is chosen from the start and late changes are avoided.

Subscribe to «نشرة أناليسيز»

One statistical concept a week, with a worked example and a sentence you can adapt for your paper.

Subscribe on LinkedIn

Need help with your statistical analysis?

Run your analysis on Analysez AI: data cleaning, descriptive and inferential statistics, and a publication-ready report.