Data and statistics · cheat sheet

One-way ANOVA

A test of whether the averages of three or more groups differ, by comparing the variation between groups with the variation within them.

Common practice
6 steps
Used by Process Improvement Specialist

What it is

One-way ANOVA tests whether three or more group averages differ, by comparing variation between groups with variation within them (the F ratio).

When to use it

When comparing the averages of several groups at once, such as days, teams, machines or suppliers.

Why it works

One test instead of many keeps the false-alarm risk at 5%.

Do

  • Plot the groups as box plots first.
  • If p is small, look at which group's average is out of line.

Don't

  • Running many t-tests instead.
  • Ignoring very unequal spreads.
  • Stopping at “they differ” without finding which.

Step by step

  1. Check assumptions Normality, equal spreads.
  2. Between mean square
  3. Within mean square
  4. F = between ÷ within
  5. p-value
  6. Find which differ
Also called: Analysis of variance, F-test for several meansPrint the blank template ↗

Worked example

The situation. Three teams' call handling times (minutes), 6 calls each.

  1. Means 5.12, 6.00 and 5.30; Levene p = 0.97.

The result. Team 2 used an old script; switching it brought their time in line.

ANOVA table Print blank
SourceSum of squaresDegrees of freedomMean squareFp
Between teams2.6121.3018.70.0001
Within teams1.05150.070

Filled in for: Three teams' call handling times (minutes), 6 calls each.

SourceSum of squaresDegrees of freedomMean squareFp

Copy this structure, or print the blank version and fill it in by hand.

Before you use it: check these

CheckIf it fails
Each group roughly normal, or reasonably largeUse Kruskal-Wallis or Mood's median test
Similar spreads (Levene's test)Use Welch's ANOVA, or a rank test
Independent groupsUse the Friedman test or a blocked design when blocks repeat

How to do it with real data

The full calculation, as it happens in the story: the data, every step, how to read the result, and the spreadsheet functions to do it yourself.

Worked example with real data

Do waits differ by the day patients ask?

From Day 31: The Monday problem of the Process Improvement Specialist story

Five groups, one per weekday. Comparing them two at a time would mean ten tests and a high chance of a false alarm, so Astrid (Data Analyst) uses one-way ANOVA.

Waits by the day of the first request010203040Monday: median 14, quartiles 11.25 and 20, n = 1814MondayTuesday: median 5, quartiles 3 and 6.25, n = 125TuesdayWednesday: median 10.5, quartiles 5 and 14.75, n = 1010.5WednesdayThursday: median 6, quartiles 4.25 and 9.25, n = 106ThursdayFriday: median 8, quartiles 5.5 and 11.75, n = 108Friday

Step by step

  1. HypothesesH0: all five day averages are equal. H1: at least one differs
  2. Check equal spreadsLevene's test p = 0.07= no strong evidence against
  3. Between-group variationsum of squares 861.5 ÷ 4 degrees of freedom= mean square 215.4
  4. Within-group variationsum of squares 1,603.2 ÷ 55 degrees of freedom= mean square 29.1
  5. F ratio215.4 ÷ 29.1= 7.39
  6. p-valueF with 4 and 55 degrees of freedom= 0.00008
  7. Which day?Monday mean 15.9 against 6.4 to 10.2 for the others= Monday stands out
RequestDay of first requestWait (days)
R01Friday12
R02Wednesday13
R03Monday12
R04Monday28
R05Friday11
R06Monday12
R07Thursday16
R08Thursday7
R09Tuesday3
R10Monday4
R11Tuesday4
R12Tuesday10
R13Wednesday4
R14Tuesday17
R15Tuesday5
R16Wednesday8
R17Thursday5
R18Tuesday5
R19Friday5
R20Monday20
R21Thursday3
R22Wednesday15
R23Wednesday5
R24Friday9
R25Tuesday5
R26Wednesday5
R27Wednesday15
R28Monday15
R29Wednesday14
R30Friday13
R31Monday18
R32Friday16
R33Tuesday3
R34Wednesday5
R35Monday10
R36Friday7
R37Thursday6
R38Thursday10
R39Thursday10
R40Tuesday5
R41Friday5
R42Thursday4
R43Friday5
R44Thursday6
R45Friday7
R46Monday11
R47Monday11
R48Tuesday3
R49Monday13
R50Monday26
R51Monday12
R52Monday22
R53Monday27
R54Wednesday18
R55Thursday4
R56Tuesday14
R57Monday20
R58Tuesday3
R59Monday6
R60Monday19

How to read the result

The day a patient asks makes a real difference to how long they wait, and Monday is the problem. About a third of the variation in waits (861.5 of 2,464.7) is explained by the day.

What it led to

The waits are skewed, so confirm with tests that don't assume normal data (next day) before calling it a root cause.

Do it in a spreadsheet

ANOVA tableExcel: Data, Data Analysis, Anova: Single Factor (turn on the Analysis ToolPak first), with one column per day
Share explained=861.5/(861.5+1603.2)
Check spreadscompare =STDEV.S of each day: 7.0, 4.7, 5.3, 3.9, 3.9
Try it yourself: Why not just run ten two-sample t-tests, one for each pair of days?

Each test has a 5% false-alarm risk. Ten tests push the chance of at least one false alarm to about 40%. ANOVA tests all groups at once at 5%.

In the roles

How a Process Improvement Specialist uses it

Waits by weekday: F = 7.39, p = 0.00008; Monday 15.9 days against 6.4 to 10.2.

Questions people ask

What if spreads differ a lot?

Use Welch's ANOVA, or Kruskal-Wallis.

Related techniques

← All techniques and tools