← Statistics and probability

Five-number summary and IQR

Minimum, Q1, median, Q3 and maximum from raw data.

Start this lesson

Sort the data. The median splits it into a lower half and an upper half (leave the median out of both halves when there is an odd count). Q1 is the median of the lower half and Q3 is the median of the upper half. The IQR = Q3 − Q1 measures the spread of the middle half.

Example: Data: 3, 5, 7, 8, 12, 13, 15

  1. median = 8 — The middle value
  2. Q1 = 5 (from 3, 5, 7) — Middle of the lower half
  3. Q3 = 13 (from 12, 13, 15) — Middle of the upper half
  4. IQR = 13 − 5 = 8

Why it works: Five numbers cut the data into four parts with equal counts. The middle two quarters make the IQR, which ignores extreme values.

Tip: Always sort first; quartiles of unsorted data mean nothing.