One-Way ANOVA (Analysis of Variance)
One-way ANOVA is a hypothesis test that compares the means of three or more groups defined by one factor, such as site, shift or supplier. One-way ANOVA splits the total variation into a between-group part and a within-group part, and their ratio, the F statistic, shows whether at least one group mean differs from the others.
Quick facts
- Type
- Parametric test for the means of k ≥ 3 groups (continuous Y, one categorical X)
- Origin
- R. A. Fisher, 1920s (Statistical Methods for Research Workers, 1925)
- Formula
- F = MSbetween / MSwithin, with df k − 1 and N − k
- Hypotheses
- H₀: all group means are equal; Hₐ: at least one differs
- Non-parametric alternatives
- Kruskal-Wallis test; Mood's median test
- Reference
- IASSC™ Green Belt Body of Knowledge §3.4.3
- Exam relevance
- Green Belt (Analyze phase); ANOVA-table calculation and interpretation items
At a glance
- State H₀: all means equal — Hₐ: at least one group mean differs
- Split the sum of squares — SStotal = SSbetween + SSwithin
- Divide by degrees of freedom — k − 1 between, N − k within, giving the mean squares
- Compute F = MSb / MSw — compare with the F table or read the p-value
- Check the residuals — independent, roughly normal, similar spread in each group
- Find which means differ — Tukey comparisons or intervals on a means plot
When do you use one-way ANOVA?
One-way ANOVA answers the question "does this factor shift the average?" when the factor has three or more levels: several sites, shifts, suppliers, products or form versions. In the Analyze phase it verifies whether an X from the fishbone diagram really moves a continuous Y.
Why not several t-tests? With three groups there are three pairs to compare, and each t-test at α = 0.05 carries its own 5% risk of a false alarm. Across all three, the chance of at least one false alarm rises to about 14% (1 − 0.95³, if the tests were independent). ANOVA tests all the means at once at a single α.
One-way ANOVA needs:
- a continuous Y, such as a time, a cost or a weight;
- one categorical X with two or more levels (with two, it gives the same answer as a pooled t-test: F = t²);
- independent samples in each group.
When two factors act together, such as shift and site, the method extends to two-way ANOVA and designed experiments.
One-way ANOVA is the standard first test when a single factor splits a continuous Y into several groups.
How do you build the one-way ANOVA table?
ANOVA partitions the total variation around the grand mean x̿ into variation between the group means and variation within the groups:
SStotal = SSbetween + SSwithinSSbetween = Σ nᵢ(x̄ᵢ − x̿)², df = k − 1SSwithin = Σ (nᵢ − 1)sᵢ², df = N − kMS = SS / dfandF = MSbetween / MSwithin
where k is the number of groups and N the total number of observations.
Worked example. Northgate Insurance times claim triage at three regional offices, six claims each (N = 18). The office means are 20, 23 and 26 minutes (grand mean 23), and the variances are 9, 12 and 15.
- SSbetween = 6 × (3² + 0² + 3²) = 108
- SSwithin = 5 × (9 + 12 + 15) = 180
| Source | DF | SS | MS | F | P |
|---|---|---|---|---|---|
| Office | 2 | 108 | 54.0 | 4.50 | 0.029 |
| Error | 15 | 180 | 12.0 | ||
| Total | 17 | 288 |
The critical value from the formula sheet's F table (α = 0.05, df 2 and 15) is 3.68. Since 4.50 > 3.68, and p ≈ 0.029 < 0.05, H₀ is rejected (F to two decimals, p to three).
Building the ANOVA table is bookkeeping: sums of squares, degrees of freedom, mean squares and one ratio.
How do you read a one-way ANOVA result?
Read the table from right to left:
- p-value. Below α, at least one group mean differs. Above α, the data do not show a difference, which is not proof that the means are equal.
- F. The ratio of between-group to within-group variation. An F near 1 means the group means vary no more than chance predicts. An F above 1 is not enough: it must exceed the critical value for its degrees of freedom.
- R² = SSbetween / SStotal. The share of the variation explained by the factor. At Northgate, 108 / 288 = 37.5%: office matters, but most of the variation lies within offices.
A significant ANOVA does not say which means differ. A follow-up comparison does. Tukey's method keeps the overall error rate at α: at Northgate it gives a minimum significant difference of about 5.2 minutes (q = 3.67 for three groups and 15 df), so only the 6-minute gap between the first and third offices is significant. A plot of the means with confidence intervals tells the same story visually.
Finally, check the residuals (each value minus its group mean) for normality and similar spread.
A one-way ANOVA result is complete only with the p-value, the share of variation explained and the pairs that differ.
What are the assumptions of one-way ANOVA?
ANOVA holds up well to mild departures from its assumptions, especially with balanced groups. It still needs:
- Independent observations, within and between groups. Repeated measurements of the same units need a blocked or repeated-measures design instead.
- Roughly normal residuals. Check a normal probability plot of the residuals rather than of the raw data, because the raw data mix several group means.
- Similar variances across groups. Check with Levene's test or by comparing the group standard deviations. A common rule of thumb tolerates a ratio of largest to smallest standard deviation up to about 2. At Northgate, √15 / √9 = 1.29.
- A stable process during data collection.
Equal group sizes are not required, but they make the test more robust to unequal variances. When the variances clearly differ, use Welch's ANOVA. When the data are skewed or contain real outliers and the samples are small, use the Kruskal-Wallis test or Mood's median test.
Checking residuals and variances before trusting the p-value keeps one-way ANOVA honest.
What are the common mistakes with one-way ANOVA?
- Concluding that all means differ. A significant F only says that not all are equal.
- Reading the p-value as variation explained. A p of 0.002 does not mean the factor explains 99.8% of the variation; R² does that job.
- Dividing sums of squares directly. F is a ratio of mean squares: at Northgate, 108 / 180 = 0.60 is not F.
- Using the wrong degrees of freedom. Error df is N − k, not N − 1. With 4 groups of 5, it is 20 − 4 = 16.
- Treating "F above 1" as significant. Compare F with the critical value for its degrees of freedom.
- Running many t-tests instead. The false-alarm risk grows with every pair.
- Ignoring the residuals. Skewed residuals or one very scattered group can make the p-value misleading.
Each of these mistakes changes the conclusion, so the reading of a one-way ANOVA deserves as much care as its arithmetic.
One-way ANOVA vs. two-sample t-test: what is the difference?
| One-way ANOVA | Two-sample t-test | |
|---|---|---|
| Number of groups | Two or more (usually three or more) | Exactly two |
| Test statistic | F = MSbetween / MSwithin | t = difference / standard error |
| Direction | Always non-directional | One-sided or two-sided |
| Follow-up needed | Yes, to find which means differ | No; the one difference is the answer |
| Relationship | With two groups, F = t² of the pooled t-test | Special case of ANOVA for two groups |
With two groups the two tests agree exactly. With three or more, one-way ANOVA tests all the means at one α, where a series of t-tests would multiply the risk of a false alarm.
Exam focus
One-way ANOVA is IASSC™ section 3.4.3, in Green Belt scope only. Expect to complete an ANOVA table (missing degrees of freedom, mean squares or F), to read a p-value, and to state what a significant result does and does not show. The usual traps are dividing sums of squares instead of mean squares, using N − 1 as the error df and claiming that all means differ. Practise in the Analyze phase drill.
Practise this DMAIC phase →FAQ
What does a significant one-way ANOVA tell me?
A significant one-way ANOVA tells you that at least one group mean differs from the others. It does not say which groups differ, how many differ or by how much. A follow-up such as Tukey's comparisons, or a plot of the means with confidence intervals, identifies the groups that differ.
How do I calculate the F statistic in ANOVA?
Divide each sum of squares by its degrees of freedom to get the mean squares, then divide the between-group mean square by the within-group (error) mean square. For example, with SS = 84 on 2 df and SS = 189 on 27 df, the mean squares are 42 and 7, so F = 6.00.
Why not just run several t-tests instead of ANOVA?
Each t-test carries its own risk of a false alarm. With several groups, the number of pairs grows quickly and so does the overall risk: with three tests at α = 0.05, it reaches about 14%. ANOVA tests all the means at once at the chosen α, and follow-up methods such as Tukey's control the error rate across pairs.
Do the groups in an ANOVA need the same sample size?
No. One-way ANOVA works with unequal group sizes, and the formulas weight each group by its size. Balanced designs are still preferred, because they make the test more robust to unequal variances and simplify the follow-up comparisons.
What is the non-parametric alternative to one-way ANOVA?
The Kruskal-Wallis test compares three or more independent groups using ranks instead of the raw values, so it suits skewed data and outliers. Mood's median test is an even more outlier-resistant option based on counts above and below the overall median, at the cost of some power.
Sources
- Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver and Boyd.
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.7.1: Tukey's method.
- NIST/SEMATECH e-Handbook of Statistical Methods, §7.4.3.1: One-way ANOVA overview.
- Montgomery, D. C. (2017). Design and Analysis of Experiments (9th ed.). Wiley.
- IASSC™ (n.d.). Lean Six Sigma Green Belt Body of Knowledge, §3.4.3.
- Last reviewed