ANOVA, ANCOVA and comparing more than two groups
A detailed guide explaining how to compare more than two groups using ANOVA, when ANCOVA is useful, how post-hoc tests work, and how to avoid multiple-testing mistakes.
Structure
Problem, intuition, method, working, limitations and discussion.
Best for
Students preparing for coursework, analysis, interpretation or revision.
Use with
Learning Hub lessons, tutoring sessions or dissertation planning.
Resource guide
Problem
Students often compare three or more groups by running several t-tests. This increases the chance of false positive results and makes the analysis harder to interpret. ANOVA provides a formal framework for comparing group means across more than two groups. ANCOVA extends this idea by adjusting for covariates. However, students often misunderstand what ANOVA actually tests and how to interpret a significant result.
- Several t-tests are used instead of one overall group comparison.
- A significant ANOVA result is interpreted as meaning every group differs from every other group.
- Post-hoc tests are performed without planning.
- Covariate adjustment is ignored when baseline differences matter.
- ANCOVA is used without understanding adjusted means.
- Assumptions such as independence and equal variance are not checked.
- Effect sizes are ignored in favour of p-values.
Resource guide
Intuition
ANOVA asks whether the mean outcome differs somewhere among three or more groups. It compares variation between groups with variation within groups. If between-group variation is large relative to within-group variation, the data provide evidence that not all group means are equal. ANCOVA asks a similar question but adjusts for one or more covariates, allowing group comparisons after accounting for other variables.
- ANOVA compares group means across three or more groups.
- The overall test asks whether at least one group mean differs.
- It does not automatically say which groups differ.
- Post-hoc tests identify specific pairwise differences.
- ANCOVA adjusts group comparisons for covariates.
- Adjustment can improve precision or control baseline imbalance.
Resource guide
Method
A good group-comparison workflow starts with the outcome, group variable and study design. If the outcome is numerical and there are more than two independent groups, one-way ANOVA may be suitable. If there are two factors, two-way ANOVA may be needed. If a continuous covariate should be adjusted for, ANCOVA may be appropriate. If assumptions are poor, alternatives such as Welch ANOVA, Kruskal-Wallis or regression models may be considered.
- Step 1: Define the numerical outcome.
- Step 2: Define the grouping variable.
- Step 3: Count the number of groups.
- Step 4: Check whether groups are independent or repeated.
- Step 5: Use one-way ANOVA for one factor with three or more independent groups.
- Step 6: Use two-way ANOVA when two categorical factors are studied.
- Step 7: Use ANCOVA when group comparison should adjust for continuous covariates.
- Step 8: Check assumptions such as independence, variance and residual behaviour.
- Step 9: Use post-hoc tests only after a justified overall comparison.
- Step 10: Report group means, confidence intervals and effect sizes where possible.
Resource guide
Working
Suppose a student compares mean exam score across three teaching methods. Running three separate t-tests would inflate the false positive risk. A one-way ANOVA tests whether the mean score differs somewhere across the three teaching methods. If the overall test is significant, post-hoc comparisons can explore which teaching methods differ. If baseline score differs across groups, ANCOVA can compare teaching methods after adjusting for baseline score.
- Outcome: final exam score.
- Group variable: teaching method with three categories.
- One-way ANOVA: tests whether any group mean differs.
- Post-hoc tests: compare pairs of teaching methods.
- ANCOVA: adjusts final score comparison for baseline score.
- Adjusted mean: estimated group mean after accounting for covariates.
- Interaction: asks whether the effect differs across another factor.
Resource guide
Limitations
ANOVA and ANCOVA rely on assumptions and careful design. A significant result does not explain which groups differ unless post-hoc comparisons are performed. ANCOVA also requires that covariates are chosen sensibly and measured appropriately. If the relationship between the covariate and outcome differs by group, simple ANCOVA may be misleading unless interactions are considered.
- ANOVA assumes independent observations.
- Unequal variances can affect standard ANOVA.
- Outliers can influence group means.
- Post-hoc tests require multiplicity control.
- ANCOVA assumes a suitable relationship between covariate and outcome.
- Covariates should not be adjusted for without conceptual justification.
- A significant p-value does not guarantee practical importance.
Resource guide
Discussion
A strong report should explain the group comparison, the overall test, any post-hoc comparisons and the size of differences. For ANCOVA, students should describe the covariates and interpret adjusted group differences carefully. The discussion should avoid saying only that there was a significant difference; it should explain where the difference occurred and whether it matters.
- Report descriptive statistics for each group.
- State the ANOVA or ANCOVA model used.
- Report the overall test result.
- Report post-hoc comparisons when relevant.
- Explain adjusted comparisons in ANCOVA.
- Discuss effect size and practical meaning.
- Mention assumptions and limitations.
Practical checklist
Before you apply this topic
- Is the outcome numerical?
- Are there three or more groups?
- Are observations independent or repeated?
- Have you avoided multiple t-tests?
- Have you checked group means and variation?
- Have you considered equal variance?
- Have you chosen post-hoc tests carefully?
- Do you need covariate adjustment?
- Have you interpreted adjusted means correctly?
- Have you reported effect sizes or confidence intervals?
Common mistakes
What to avoid
- Using many t-tests instead of ANOVA.
- Thinking ANOVA shows exactly which groups differ.
- Skipping post-hoc comparisons after a significant overall result.
- Performing post-hoc tests without correction.
- Using ANCOVA without explaining covariates.
- Ignoring interactions.
- Ignoring unequal variance.
- Reporting only p-values.
- Calling adjusted means raw means.
- Ignoring whether differences are practically meaningful.
How this connects to learning
Use the guide as a bridge between theory and application.
A resource guide should not replace a full course or live teaching session. Instead, it helps you organise your thinking. Use it to identify what you understand, what feels unclear, and what questions you should ask before applying a method to real data.
Before a lesson
Read the intuition and problem sections to prepare.
During analysis
Use the method and checklist to guide decisions.
When writing
Use limitations and discussion to improve interpretation.
Related guides
