Statistical Methods Atlas
Atlas › Compare Groups › One-Way ANOVA

One-Way ANOVA

Tests whether three or more independent group means differ on a continuous outcome — e.g., does job satisfaction differ across four departments?

Compare GroupsBivariate also known as: Analysis of variance, Single-factor ANOVA

✓ When to use

  • One categorical factor with three or more independent levels (departments, job grades, treatment arms).
  • A continuous outcome, approximately normal within groups with similar variances.
  • You want one overall (omnibus) answer first, then planned contrasts or post-hoc tests to locate the differences.

✗ When NOT to use

  • Only two groups — a t-test answers the question directly.
  • Repeated measurements of the same people — use Repeated-Measures ANOVA.
  • Clearly unequal variances — use Welch ANOVA.
  • Ordinal or badly skewed outcomes in small samples — use Kruskal–Wallis.
  • You need to control a continuous covariate — use ANCOVA.

Data requirements

Dependent / outcome variableOne continuous variable (interval/ratio).
Independent / grouping variableOne categorical variable with 3+ independent levels.
DesignBetween-subjects; each participant in exactly one group.
Sample size guidanceAim for ≥ 20–30 per group and roughly balanced sizes. G*Power: f = 0.25 (medium), 4 groups, power .80 → N ≈ 180.

Assumptions

Hypotheses

H₀ — All population means are equal (μ₁ = μ₂ = … = μk).
H₁ — At least one population mean differs (not all means are equal — ANOVA does not say which).

The concept

ANOVA splits total variability into between-group variance (differences among group means) and within-group variance (spread inside groups). The F statistic is their ratio: F = MSbetween/MSwithin. If all groups share one population mean, F hovers around 1; group differences push F upward.

A significant F only says 'somewhere the means differ'. Follow up with post-hoc tests (Tukey HSD when variances are equal; Games–Howell when not) or, better, a small set of planned contrasts. Effect size: η² or partial η² (.01 small, .06 medium, .14 large), or ω² for a less biased estimate.

Worked example

An HR study compares job satisfaction (1–5 composite) across four departments: Sales (n = 41, M = 3.35), Operations (n = 44, M = 3.51), IT (n = 38, M = 3.88), Finance (n = 40, M = 3.60).

Result: F(3, 159) = 4.72, p = .003, η² = .082. Tukey HSD shows IT > Sales (p = .002); other pairs do not differ significantly.

How to run it

model <- aov(satisfaction ~ department, data = df)
summary(model)

car::leveneTest(satisfaction ~ department, data = df)  # variance check

TukeyHSD(model)                    # post-hoc, equal variances
library(effectsize)
eta_squared(model)

Interpreting the output

APA-style reporting

A one-way ANOVA revealed a significant effect of department on job satisfaction, F(3, 159) = 4.72, p = .003, η² = .08. Tukey post-hoc comparisons indicated that IT employees (M = 3.88, SD = 0.55) reported higher satisfaction than Sales employees (M = 3.35, SD = 0.61), p = .002; no other pairwise differences were significant.

Common mistakes

Related methods

Welch ANOVAUnequal variancesKruskal–Wallis TestNon-parametric alternativeTwo-Way ANOVATwo factors at onceANCOVA (Analysis of Covariance)Add a covariateIndependent-Samples t-TestOnly two groups
← Wilcoxon Signed-Rank TestWelch ANOVA →