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
| Situation | Suitable test |
|---|---|
| Two groups, continuous outcome, normal distribution | Independent t-test |
| Two groups, continuous outcome, non-normal distribution | Mann-Whitney U |
| More than two groups, continuous outcome, normal distribution | One-way ANOVA |
| More than two groups, continuous outcome, non-normal distribution | Kruskal-Wallis |
| Binary outcome, two groups | Chi-square or Fisher's Exact |
| Binary outcome with covariates | Logistic Regression |
| Continuous outcome with covariates | Linear Regression |
| Repeated measurements | Repeated 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.