Box Plots

Two classes sit the same test. Class A's marks and Class B's marks are each a long list of numbers — hard to compare at a glance. But squeeze each class down to five key numbers and draw them as a little box with two whiskers, and suddenly you can see everything at once: who scored higher on average, and whose marks were more spread out. That compact picture is a box plot.

A single average hides a lot — two classes can have the same mean yet look completely different. A box plot refuses to hide it. Stack two box plots above one number line and the differences in typical value and in consistency jump straight out. That is exactly why scientists reach for them when comparing groups.

The five-number summary as a picture

A box plot (also called a box-and-whisker plot) draws five numbers on a single scale: the minimum, the lower quartile (Q_1), the median (Q_2), the upper quartile (Q_3) and the maximum.

The box stretches from Q_1 to Q_3, so its width is the interquartile range. A line drawn inside the box marks the median, and the two whiskers reach out to the smallest and largest values.

At a glance the box shows where the central half of the data sits, while the whiskers show how far the tails stretch.

Reading a box plot

For a data set with five-number summary min, Q_1, median, Q_3, max:

Worked example — draw a box plot from five numbers

A test out of 50 gives the five-number summary \text{min} = 12, Q_1 = 22, \text{median} = 30, Q_3 = 38, \text{max} = 48. To draw it:

Read straight off: the interquartile range is \text{IQR} = 38 - 22 = 16 and the full range is 48 - 12 = 36. Notice the median (30) sits almost exactly in the middle of the box, so this data is fairly symmetric.

Worked example — comparing two groups

Here are two classes' test marks (out of 100), drawn on one shared scale so we can line them up directly.

So the honest comparison is: "Class B scored higher on average, but Class A's marks were much more consistent." Comparing both the middle and the spread tells the real story — a single average would have hidden half of it.

The box plot was invented by the American statistician John Tukey in the 1970s — the same restless mind behind the stem-and-leaf plot and the word "software". His goal was exploratory: a quick sketch you could draw by hand to see the shape of data before doing any heavy maths.

It became the go-to tool for comparing distributions across real science — test scores between schools, rainfall between cities, reaction times between treatment groups. Two box plots stacked together instantly reveal differences in both typical value and consistency that a lone average would smother — which is exactly what you need when comparing distributions.

See it explained