One-way Analysis of Variance

Statistics
Introduced by
Ronald A. Fisher
Year
1925
Type
Parametric mean comparison

What does it do?

One-way ANOVA is a parametric hypothesis test that compares the means of three or more independent groups on one continuous outcome, asking whether at least one group mean differs from the others.

It rests on the partitioning of variance that Ronald A. Fisher introduced in 1925.

The intuition behind the method

Comparing several groups with separate t-tests means running many tests on the same data, and each extra comparison adds another chance of a false positive. ANOVA replaces them with one overall question: is the spread between the group means large relative to the scatter of observations within the groups? If it is, at least one group probably differs. The test does not name that group; identifying it requires a follow-up step.

History

Ronald A. Fisher developed the analysis of variance and set out its partitioning of variance in his 1925 book Statistical Methods for Research Workers, which gave researchers a way to compare several group means within a single analysis. The one-way form is covered in standard textbooks such as Field (2013). Welch ANOVA, which does not assume equal group variances, is a later variant used when variances differ.

When to use it

Choose one-way ANOVA when you have three or more independent groups, each defined by one categorical factor, and one continuous outcome. The test assumes that observations are independent, that the outcome is approximately normal within each group, and that group variances are similar. Check normality with plots and the Shapiro-Wilk test (Kolmogorov-Smirnov is less suitable for small samples), and check variances with Levene's test. These checks guide judgement rather than act as automatic decision rules: the F test is fairly robust to mild non-normality when group sizes are equal and reasonably large. Do not use it when the same subjects are measured repeatedly, since that calls for a repeated-measures design, or when the design has two factors, which is the job of two-way ANOVA. If the groups are very small, or the outcome is strongly skewed or has influential outliers, Kruskal-Wallis is the better choice; if variances differ, Welch ANOVA is the usual alternative. Plan sample size with a power analysis before collecting data: for example, with 5 groups of 25 observations at a 0.05 significance level, power is about 0.12 for a small effect, 0.57 for a moderate effect and 0.96 for a large effect (Cohen's f of 0.10, 0.25 and 0.40), so such a design is only likely to detect a large effect.

Limitations and considerations

  • The F statistic is sensitive to strong non-normality and outliers, which can inflate within-group variance and reduce the reliability of both the test and any follow-up comparisons.
  • It assumes homogeneous group variances; when they differ, the Type I error rate and power of the classic F test can be distorted, particularly when group sizes are unequal. Welch ANOVA is a safer choice in that situation.
  • A significant omnibus result only signals that some difference exists; it does not identify which groups differ.
  • Reliability depends on adequate group sizes; very small groups give unstable variance estimates, and the test has little power to detect anything but large effects.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Tests several groups in one omnibus analysis, so the overall false-positive rate is not inflated the way repeated pairwise t-tests would inflate it.
  • Splits total variation into a between-group and a within-group component, which shows where the variability comes from.
  • Gives an interpretable effect size, eta-squared, that expresses the proportion of total variance explained by group membership.

Applications

  • Comparing a continuous outcome across three or more treatment conditions in experimental research.
  • Testing whether several distinct populations or cohorts differ on a measured score.
  • Comparing the average performance of multiple methods, machines, or settings in quality and lab studies.
  • Examining differences across more than two categories such as education levels, regions, or product variants.

How it works

How it works

1

The null hypothesis states that all population group means are equal; the alternative states that at least one pair of means differs. The test makes a single overall decision across all the groups at once.

Formula
H_0:\ \mu_1 = \mu_2 = \cdots = \mu_k \quad H_1:\ \exists\, i,j\ \mu_i \neq \mu_j
2

The total variation in the data is split into a between-groups part and a within-groups part. The F statistic divides the mean square between groups by the mean square within groups. When the groups truly share a common mean, both estimate the same error variance and F is near 1; when group means differ, the numerator grows and F rises. It is compared against the F-distribution with k − 1 and N − k degrees of freedom, where k is the number of groups and N the total sample size.

Formula
F = \dfrac{MS_{between}}{MS_{within}} = \dfrac{SS_{between}/(k-1)}{SS_{within}/(N-k)}
3

The null hypothesis is rejected when the p-value falls below the chosen significance level, conventionally 0.05; report the exact p-value rather than only whether it crossed the threshold. A rejection indicates that at least one group mean differs from the others. Because the omnibus test does not identify which groups differ, it is normally followed by post-hoc comparisons, such as Tukey HSD. Eta-squared (η²), computed as SS_between divided by SS_total, is the share of total variance attributable to group membership and is reported alongside the p-value as the effect size. Cohen's benchmarks for ANOVA (f of about 0.10 small, 0.25 medium, 0.40 large) are general suggestions drawn from social research and may not fit every field, so interpret eta-squared against the context of your study.

Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \eta^2 = \dfrac{SS_{between}}{SS_{total}}

Common pitfalls

  • Stopping at a significant F without running post-hoc comparisons to locate the differing groups.
  • Ignoring a significant Levene's test instead of switching to Welch ANOVA, which drops the equal-variance assumption.
  • Running ANOVA on small or clearly non-normal samples instead of the Kruskal-Wallis alternative.
  • Reporting only the p-value without eta-squared as an effect size.

Frequently asked questions

Why not just run several t-tests instead?

Running a separate t-test for every pair of groups inflates the overall false-positive rate, because each test carries its own chance of a Type I error. One-way ANOVA makes a single omnibus comparison that keeps the overall error rate under control, then post-hoc tests pinpoint the specific differences.

The F test is significant — now what?

A significant F only shows that at least one group mean differs, not which ones. Follow it with a post-hoc procedure suited to your design and group sizes; Tukey HSD is a common choice for comparing all pairs of groups, and check that the procedure's assumptions hold for your data. Report eta-squared alongside the result as the effect size.

What if the variances are not equal?

If Levene's test is significant, the equal-variance assumption is in doubt and the Type I error rate of the classic F test can be distorted, especially with unequal group sizes. Use Welch ANOVA, which does not assume homogeneous variances, and pair it with the Games-Howell post-hoc test.

When should I use Kruskal-Wallis instead?

When the outcome is strongly skewed, contains influential outliers, or the groups are very small, the parametric F test becomes unreliable. The Kruskal-Wallis test is the rank-based nonparametric alternative for comparing three or more independent groups. With mild non-normality and equal, reasonably large groups, ANOVA is usually adequate.

Related methods

Sources

  1. Fisher, R. A. (1925). Statistical Methods for Research Workers. Edinburgh: Oliver and Boyd.

    Open publication reference
  2. Field, A. (2013). Discovering Statistics Using IBM SPSS Statistics (4th ed.). SAGE.

    ISBN: 978-1446249185
  3. Applied Statistics: From Bivariate Through Multivariate Techniques, 2nd Edition, p. 676

  4. R in Action: Data Analysis and Graphics with R, 2nd Edition, p. 279