Skip to content

One-way analysis of variance

Test whether three machines have the same mean output with one-way ANOVA, by comparing variation between machines with variation within them, and read Excel's ANOVA output.

It opens on

Comparing three machines pair by pair needs three t tests, each with a 5% false alarm chance. Is the chance of at least one false alarm across the three about 5%, 14% or 50%?

Why it matters

Managers compare more than two suppliers, machines or methods, and running many pairwise tests inflates the chance of a false alarm, which ANOVA avoids with a single test.

Good to know first

  • sample variance

Step by step

  1. Three machines and one test

    Explain why comparing three means by pairwise t tests inflates the false alarm rate, and state the ANOVA hypotheses.

    A common mix-up

    Rejecting H₀ in ANOVA shows that every group differs from every other.

    In fact: It shows only that the means are not all equal, and a follow-up comparison finds which differ.

  2. Between and within variation

    Compute the sum of squares between and within groups, the mean squares, and the F ratio.

    5 × (−2.33)² = 27.22, 5 × 3.67² = 67.22 and 5 × (−1.33)² = 8.89, so the sum of squares between machines is SSB = 27.22 + 67.22 + 8.89 = 103.33.

    SSB = 103.33

    A common mix-up

    A big between-groups SS alone proves the means differ.

    In fact: It must be large compared with the within-groups variation, which is why we take the ratio.

  3. Excel's ANOVA table and the decision

    Read Excel's ANOVA: Single Factor output, decide with the p-value and F critical, and find which machines differ.

    A common mix-up

    ANOVA results can be read like a t test for each pair.

    In fact: The F test is about all the means together, and finding which differ needs a follow-up with a correction.

Try it

Four groups need 6 pairwise tests at 5% each. What is the chance of at least one false alarm, treating the tests as independent?Answer

26.5% (1 − 0.95⁶)

Hint: One minus the chance of none

SSB = 90 with 3 groups and SSW = 120 with 24 observations in all. Find MSB, MSW and F.Answer

MSB = 45, MSW = 120 ÷ 21 = 5.71, F = 7.88

Hint: Df between = k − 1, within = N − k

An ANOVA gives F = 2.1 with F crit = 3.4. State the decision at 0.05 in context for the three suppliers' delivery times.Answer

Fail to reject H₀; there is not convincing evidence the three suppliers' mean delivery times differ

Hint: F is below F crit

Does rejecting H₀ tell us that all three machines differ from each other?Answer

No, only that at least one differs

The total sum of squares is SSB + SSW. What is it, and how many degrees of freedom does it have with 15 hours?Answer

149.33, with 14 degrees of freedom

One-way analysis of variance

30 minutes every month. No card.