Visual walkthrough — Box-and-whisker plots — quartiles, IQR
We will use one running dataset the whole way down so the pictures connect:
Ten numbers, deliberately jumbled, with one suspiciously large value (). By the end you will know exactly where each one lands.
Step 1 — Line the numbers up (sort)
WHAT. We rearrange the list from smallest to largest:
WHY. A quartile is a position — "the value one-quarter of the way along." That phrase is meaningless in a scrambled pile. The moment "one-quarter of the way" has to mean something, the data must be in order. Think of people in a queue by height: "the person 1/4 down the line" only makes sense once they've lined up.
PICTURE. Look at the figure: the jumbled numbers (top row) drop into their sorted slots (bottom row). Each slot has a position index written under it — those indices are the ruler we measure quartiles against.

Step 2 — Find the median (the central cut)
WHAT. With (an even count), there is no single middle value — the middle falls between positions and . We average those two:
- — read "Q-two", the median: the value with half the data below it, half above.
- The and — the two innermost survivors when you close in from both ends (positions and of the sorted list).
- Dividing by — takes the exact midpoint between them, because no data point sits there.
WHY average two? With an even count the queue has no lone centre person; the fair "middle" is the gap between the two central people, so we split the difference. (If were odd we'd just take the single middle value — see Step 6.)
PICTURE. Two arrows march inward from both ends and meet in the – gap. The dashed pink line marks sitting in the gap, touching neither data point.

Step 3 — Split into two halves
WHAT. The median cut divides the sorted list into a lower half and an upper half:
WHY. The plan is "median of each half," so first we must have two clean halves. Because is even, the cut lands between the (position ) and the (position ), and each half gets exactly values — no value is orphaned. (When is odd the single median value belongs to neither half; Step 6 shows that case.)
PICTURE. A vertical pink bar drops through the – gap. Everything left of it is the blue lower half; everything right is the yellow upper half. Notice the counts printed under each: and , balanced.

Step 4 — Median of each half gives and
WHAT. Repeat the "find the middle" trick inside each half. Each half has values (odd), so each has a genuine single middle:
- — "Q-one", the lower quartile: median of the lower half, so about a quarter of all data lies below it.
- — "Q-three", the upper quartile: median of the upper half, so about three-quarters lies below it.
WHY the median-of-half rule (not "position ")? As the parent note's steel-man warned: raw index counting lands between points and disagrees across textbooks. Taking a median of each half is unambiguous — it's the same reliable operation we already trust, just applied twice.
PICTURE. Two mini-versions of the Step 2 inward-arrows, one in each half. Blue arrows meet on ; yellow arrows meet on . Now three cuts , , carve the data into four equal-count blocks.

Step 5 — The IQR and the 1.5×IQR fences
WHAT. The interquartile range is the width from to :
Then we build the fences — the boundary of "normal":
- IQR — the width of the middle-50% box; our natural "step size."
- — how many box-widths we step out before calling a point weird (a convention that flags ≈0.7% of normal data).
- The subtraction/addition — walk left of and right of by that distance.
WHY use IQR as the yardstick? Because IQR is robust: it ignores the extreme outer quarters, so the fence can't be blown outward by the very outlier it's meant to catch. Using the plain range would let the giant define its own "normal."
PICTURE. The box (from to ) is drawn, then two fence-flags planted at and by stepping box-widths outward. The value sits clearly past the upper flag.

Step 6 — Edge case: odd (where does the median go?)
WHAT. Drop the so (odd): . Now the middle is a single value at position , namely . Crucially, that is removed before halving:
WHY exclude the median? With odd the middle value belongs to neither side — it's the pivot itself. If we glued it to one half, that half would have one extra member and the four blocks would no longer be equal-count. Leaving it out keeps both halves at values each.
PICTURE. The single median value is boxed and greyed out, with arrows showing it stepping aside so the two equal halves of size form on either side.

Step 7 — Assemble the finished plot
WHAT. Put it all together for the original data. The whisker does not reach the fence — it stops at the last real data point still inside it:
- Left whisker → smallest value lower fence .
- Box: left edge , line , right edge .
- Right whisker → largest value upper fence . That is (since ), not .
- → drawn as a lone dot: an outlier.
WHY the whisker stops at , not . A whisker marks a real observation; the fence is an imaginary threshold. The last observed value that clears the fence is , so the arm reaches exactly there and is exiled to a dot.
PICTURE. The complete box-and-whisker: whisker box whisker, with the fence lines faint behind it and hovering as a pink dot beyond the right whisker.

The one-picture summary
Every earlier step, stacked into a single ladder: sort cut at cut each half at measure IQR step out IQR draw box, whiskers, outlier.

Recall Feynman retelling — the whole walkthrough in plain words
First I made everyone stand in a line, shortest to tallest, because "one-quarter along" only means something once they're lined up. I found the person exactly in the middle — with an even crowd that's the gap between the two middle people, so I picked the point halfway between them: that's . That middle cut split the line into a shorter half and a taller half. I did the same middle-finding trick inside each half, giving me two more cuts, and — now the line is in four equal groups. The distance between those two inner cuts is the IQR, the width of the "middle bunch." To spot weirdos, I stepped one-and-a-half of those widths past each inner cut and planted a fence. Anyone past the fence is a suspicious loner (that was ). Finally I drew a box from to with a line at the middle, stretched arms out to the last normal person on each side, and drew the loner as a lonely dot. When the crowd is odd, the single middle person steps aside and doesn't join either half, so the halves stay equal.
Connections
- Box-and-whisker plots — quartiles, IQR — the parent this walkthrough builds.
- Median and Measures of Central Tendency — is the median, applied three times here.
- Range and Spread — IQR vs plain range in Step 5.
- Outliers and Robust Statistics — the IQR fence logic.
- Percentiles and Quantiles — quartiles as the 25/50/75 cut points.
- Skewness — an off-centre median line hints at skew.
- Normal Distribution — why flags ≈0.7%.