"I don't know where to start."
This is the sentence we hear most from master's and doctoral students as they stand in front of their data.
It is not for lack of ability, but for lack of a clear framework to follow.
Choosing a statistical test is a logical decision that follows the nature of your data and the question of your study. It is not random, and it is not luck.
Step One: What Does Your Study Question Say?
| Type of question | Example | Type of analysis |
|---|---|---|
| Is there a difference between groups? | Is drug A better than drug B? | Comparative tests |
| Is there a relationship between two variables? | Is smoking associated with cancer? | Correlation / regression |
| Can we predict? | Which factors predict the disease? | Regression / classification |
| Does something change over time? | Did the condition improve after three months? | Repeated measurements |
| Is there agreement between two measurements? | Do the two devices measure the same thing? | Agreement tests |
The Complete Decision Tree
Path 1: Comparing groups
Is the outcome variable continuous? If yes, is the distribution normal?
If yes, use parametric tests:
- Two independent groups: Independent t-test.
- Two related groups (the same individuals): Paired t-test.
- Three or more groups: One-Way ANOVA plus post-hoc tests.
If no, use non-parametric tests:
- Two independent groups: Mann-Whitney U.
- Two related groups: Wilcoxon Signed-Rank.
- Three or more groups: Kruskal-Wallis plus Dunn's test.
Is the outcome variable categorical?
- Large sample (expected counts ≥ 5): Chi-Square test.
- Small sample: Fisher's Exact Test.
Path 2: Studying relationships
Are both variables continuous?
- Normal distribution: Pearson Correlation.
- Non-normal distribution or an ordinal variable: Spearman Correlation.
A continuous variable with a categorical variable?
- Continuous outcome: Linear Regression.
- Binary outcome: Logistic Regression.
- Ordinal outcome: Ordinal Logistic Regression.
- Count outcome: Poisson Regression.
Path 3: Repeated measurements
- Parametric data: Repeated Measures ANOVA.
- Non-parametric data: Friedman Test.
- Survival data: Kaplan-Meier + Log-rank test.
- With covariates: Cox Regression.
Path 4: Agreement between two measurements
- Continuous variable: Bland-Altman plot + intraclass correlation coefficient (ICC).
- Categorical variable: Cohen's Kappa.
The Four Questions That Decide Everything
- What type is the outcome variable? (continuous / binary / ordinal / count / time to event)
- How many groups are you comparing? (two / more / the same individuals)
- Are the data parametric? (run a test of normality)
- Are there covariates you need to control for? (this points you towards regression)
These four questions make the choice of test clear in most cases.
An Important Note: The Right Test Alone Is Not Enough
The right test with unsound data = a wrong result.
The right test with assumptions that are not met = a misleading result.
The right test with a wrong interpretation = an incorrect conclusion.
Sound statistical analysis is a complete system, not just picking a test from a list.
What Should You Do Now?
Take your data, ask the four questions, and use the decision tree.
If doubts remain, or your case is a special one that does not fit these steps, the Analysez AI team offers a consultation to set the whole statistical methodology: we work out the suitable tests with you, build the analysis plan, and explain every decision in language you can pass on to your supervisor and your committee.
We are not general statistical analysts. We specialise in biological data and scientific research, and that difference shows in the quality of the results.