Data and statistics · cheat sheet

Box plot

A compact picture of a group of values: a box from the first to the third quartile, a line at the median, and whiskers to the extremes, ideal for comparing several groups side by side.

Common practice
5 steps
Used by Process Improvement Specialist

What it is

A box plot summarises a group with five numbers: the smallest value, the first quartile, the median, the third quartile and the largest value. Values far from the box are marked as possible outliers.

When to use it

When comparing the centre and spread of several groups, such as days, shifts, machines or suppliers.

Why it works

It makes differences in centre and spread between groups visible at a glance, before any test.

Do

  • Always show how many values are in each group.

Don't

  • Hiding small groups: show the number of values.
  • Reading the box as the full range.

Step by step

  1. Sort
  2. Quartiles and median
  3. Box and line
  4. Whiskers Up to 1.5 × box length.
  5. Side by side
Also called: Box-and-whisker plotPrint the blank template ↗

Worked example

The situation. Delivery days from three depots, 11 orders each.

  1. Depot B sits highest; depot A has one long delivery beyond its fence.

The result. The 9-day order at depot A traced to a wrong address; depot B needed a later collection time.

Box plot worksheet Print blank
DepotQuartile 1MedianQuartile 3Upper fenceLargest
A34589 (outlier)
B567.511.2510
C2.5346.255

Filled in for: Delivery days from three depots, 11 orders each.

GroupSmallestQuartile 1MedianQuartile 3Largestn

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

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: Monday's box sits far above the others, before any test is run.

Questions people ask

Box plot or histogram?

Histograms show one group's shape in detail; box plots compare several groups quickly.

Related techniques

← All techniques and tools