Statistics & Analysis

ANOVA (Analysis of Variance)

Definition

Analysis of variance, or ANOVA, is a statistical method that tests whether the means of three or more groups differ significantly from one another. It partitions the total variability in the data into components attributable to between group differences and within group variability, using the F test to determine whether the between group variance exceeds what would be expected by chance.

Why it matters

ANOVA is one of the most widely used statistical tests across the sciences, providing a way to compare multiple groups simultaneously without inflating the Type I error rate that would result from conducting multiple pairwise t tests. Clinical researchers use it to compare outcomes across multiple treatment arms. Psychologists apply it to evaluate the effects of experimental conditions. Epidemiologists use it to examine differences across exposure categories. Understanding ANOVA is essential for reading and critically appraising research in virtually every quantitative discipline, and familiarity with its extensions (factorial ANOVA, repeated measures ANOVA, mixed ANOVA) enables researchers to address more complex research questions.

How it works

ANOVA decomposes the total variability in the outcome variable into two components: the variability between group means (between groups sum of squares) and the variability within groups (within groups sum of squares). The between groups component reflects how much the group means differ from the overall mean, while the within groups component reflects how much individual observations within each group vary around their group mean.

The F statistic is calculated as the ratio of the mean square between groups to the mean square within groups. A large F value indicates that the between group variability is large relative to the within group variability, suggesting that the group means are not all equal. The p value associated with the F statistic is compared to the pre specified alpha level to determine statistical significance.

One way ANOVA compares groups defined by a single factor (for example, three drug doses). Two way ANOVA examines two factors simultaneously and can test for main effects of each factor as well as interaction effects between them. Repeated measures ANOVA is used when the same participants are measured multiple times, accounting for the correlation between repeated observations. Mixed ANOVA combines between subjects and within subjects factors in a single model.

ANOVA assumes that the outcome variable is normally distributed within each group, that the variances are equal across groups (homogeneity of variance), and that observations are independent. Violations of normality are generally tolerable with moderate to large sample sizes due to the Central Limit Theorem. Violations of homogeneity of variance can be addressed using Welch's ANOVA or by transforming the data.

When the overall F test is significant, it indicates only that at least one group mean differs from the others, not which specific groups differ. Post hoc comparison tests, such as Tukey's HSD, Bonferroni corrected pairwise tests, or Scheffé's method, are used to identify which pairs of groups differ significantly.

When to use it

Use one way ANOVA when comparing means across three or more independent groups on a single continuous outcome. Use two way or factorial ANOVA when examining the effects of two or more categorical factors and their interactions. Use repeated measures ANOVA when the same participants are measured at multiple time points. ANOVA is not appropriate for ordinal outcomes (use a nonparametric alternative such as the Kruskal Wallis test) or for categorical outcomes (use a test for categories such as the chi square test). With only two groups, a t test is the simpler choice: the pooled variance t test is mathematically equivalent to a one way ANOVA with two groups (F equals t squared).

Key takeaways

  • ANOVA is one of the most widely used statistical tests across the sciences, providing a way to compare multiple groups simultaneously without inflating the Type I error rate that would result from conducting multiple pairwise t tests.
  • The between groups component reflects how much the group means differ from the overall mean, while the within groups component reflects how much individual observations within each group vary around their group mean.
  • Use one way ANOVA when comparing means across three or more independent groups on a single continuous outcome.
  • A common error is conducting multiple pairwise t tests instead of ANOVA, which inflates the probability of a Type I error.

Common mistakes

A common error is conducting multiple pairwise t tests instead of ANOVA, which inflates the probability of a Type I error. With five groups, there are 10 possible pairwise comparisons. If those 10 tests were independent, testing each at alpha = 0.05 would give about a 40% chance of at least one false positive; because the comparisons share groups, the true figure is lower, roughly 28% when all five means are equal, but still far above 5%. ANOVA tests the overall null hypothesis in a single test at the chosen alpha, and post hoc procedures such as Tukey's HSD keep the error rate controlled across the pairwise comparisons.

Another frequent mistake is interpreting a significant F test as evidence that all groups differ from one another, when in fact it indicates only that at least one group mean is different. Follow up comparisons, such as post hoc tests or planned contrasts, are needed to identify specific differences. Researchers also sometimes ignore violations of the homogeneity of variance assumption, which can lead to incorrect p values, particularly when group sizes are unequal. Reporting only the p value from the F test without the effect size (such as eta squared or partial eta squared) is another common oversight that limits the interpretability of results.

Example

A nutrition researcher compares the effects of three diets (Mediterranean, low carbohydrate, and standard Western) on LDL cholesterol levels in 150 participants (50 per group) over 12 weeks. One way ANOVA yields F(2, 147) = 8.34, p < 0.001, indicating that the group means differ significantly. Tukey's HSD post hoc tests reveal that the Mediterranean diet group has significantly lower LDL levels than both the low carbohydrate group (mean difference = 12.4 mg/dL, p = 0.02) and the Western diet group (mean difference = 18.7 mg/dL, p < 0.001), while the low carbohydrate and Western groups do not differ significantly (mean difference = 6.3 mg/dL, p = 0.37).

Sources

  1. [1]Field A. Discovering Statistics Using IBM SPSS Statistics. 6th ed. SAGE Publications, 2024.
  2. [2]Welch BL. On the comparison of several mean values: an alternative approach. Biometrika. 1951;38(3-4):330-336.
  3. [3]Tukey JW. Comparing individual means in the analysis of variance. Biometrics. 1949;5(2):99-114.

Cite this term

FullANOVA (Analysis of Variance). Paperguide Research Glossary. Paperguide, 2026. Available at: https://paperguide.ai/research-glossary/anova-analysis-of-variance/
In-text(Paperguide, 2026)

Related terms