A student told us: "I used ANOVA and got a p-value below 0.05, so I wrote the result and finished."
We asked him: "And what exactly differed?"
He said: "The groups."
We asked: "Which groups?"
He had no answer ready.
ANOVA tells you that some difference exists between the groups, but it does not tell you where the difference is. The real answer comes from what follows it.
What Is ANOVA and When Do You Use It?
Analysis of variance (ANOVA) compares means across three or more groups with a continuous outcome variable.
Why not simply run t-tests repeatedly?
Because comparing three groups through several t-tests raises the probability of a Type I error (finding a false difference) from 5% to about 14%. ANOVA keeps the error rate at 5%.
The basic assumptions:
- The outcome variable is continuous and normally distributed in each group (or the sample size is large).
- The observations are independent of each other.
- Homogeneity of variance, checked with Levene's test.
The Types of ANOVA You Should Know
One-Way ANOVA
One independent variable (factor). Example: comparing three different doses of a drug.
Two-Way ANOVA
Two independent variables. Example: comparing dose and sex together. It also measures the interaction between the two variables.
Repeated Measures ANOVA
Measuring the same individuals at several time points. Example: measuring weight in the first, third and sixth month after an intervention.
Alternatives When the Assumptions Are Broken
| Alternative | When it is used |
|---|---|
| Kruskal-Wallis | A non-parametric alternative to one-way ANOVA |
| Friedman Test | A non-parametric alternative to repeated measures ANOVA |
| Welch's ANOVA | When the variances are unequal |
Post-Hoc Tests: What Comes After the Analysis
When the ANOVA result is significant, you must identify which groups differ from each other.
Common tests:
- Tukey HSD: the most widely used. It compares all groups with each other, with a correction for multiple comparisons.
- Bonferroni: more conservative, and suitable for a limited number of comparisons.
- Dunnett: when comparing every group only against a control group.
- Games-Howell: when the variances are unequal.
A common mistake: reporting the ANOVA result without post-hoc tests, which leaves the result incomplete and impossible to interpret.
What Should You Do Now?
If your thesis includes an ANOVA, make sure you have checked the assumptions, chosen the suitable type, and carried out and interpreted the correct post-hoc tests.
The Analysez AI team provides a complete ANOVA with a written report that explains the results in language you can put straight into your thesis.