2.7.4 · D1Statistics & Probability — Intermediate

Foundations — Box-and-whisker plots — quartiles, IQR

1,918 words9 min readBack to topic

This page assumes you know nothing. Before you can read the parent note on Box-and-whisker plots — quartiles, IQR, you need a small toolkit of ideas. We build each one from zero, anchor it to a picture, and say why the topic needs it. Every later idea leans only on earlier ones.


0. "Data" and "a value" — what are we even holding?

Before symbols, the raw material.

Picture: imagine each value as a bead. Your whole data set is a handful of loose beads.

is our very first symbol.


1. Sorting — turning a pile into a queue

The single most important move in this whole topic.

Figure — Box-and-whisker plots — quartiles, IQR

Look at the figure. On top, the beads are a jumbled pile (unsorted). On the bottom, the same beads stand in a queue, shortest on the left, tallest on the right. That rearrangement is called sorting ascending.


2. Position vs value — the two things every bead has

This is subtle and worth its own picture.

Figure — Box-and-whisker plots — quartiles, IQR

Each bead in the sorted queue has two different numbers:

  • its positionwhere it stands in line: 1st, 2nd, 3rd, … (shown below the line in yellow).
  • its valuewhat number it is (shown inside the bead in blue).

3. Fractions of the way along — "half", "a quarter", "three-quarters"

A box plot marks the queue at , , of the way. So we must be crystal clear what a fraction of a queue means.

Picture: stand in the sorted queue. Walk until exactly half the people are behind you — that spot is the halfway mark. Walk only a quarter of the crowd — that's the quarter mark.


4. The median — the halfway value

Now we can name the halfway mark.

How to find it depends on whether is odd or even — because "the exact middle" only exists when the count is odd.

Figure — Box-and-whisker plots — quartiles, IQR
  • odd (top row, 7 beads): there is a lone middle bead. Its position is , so the median is the 4th value.
  • even (bottom row, 6 beads): no single bead is in the middle — the centre falls between two beads (3rd and 4th). The median is their average.

5. Quartiles and — the quarter and three-quarter values

"Quart" means four. Quartiles are the marks that cut the queue into four equal-count groups.

These three symbols are exactly the 25th, 50th, and 75th Percentiles and Quantiles — quartiles are just percentiles at nice quarter-marks.


6. Subtraction as "distance" — building the IQR

The parent note's spread measure is . Why subtract?


7. The multiplier — "" and fences

Last symbol to unpack: the number and the word "fence".


How these feed the topic

Data set and count n

Sort ascending

Position vs value

Fractions of the way along

Median Q2

Quartiles Q1 and Q3

Subtraction as distance

IQR spread

Multiplier 1.5 and fences

Box-and-whisker plot


Equipment checklist