TExcelTAD
Home › School Probability & Statistics on Paper › Quartiles, Interquartile Range, and the Five-Number Summary

Quartiles, Interquartile Range, and the Five-Number Summary

While the mean and standard deviation describe a distribution using arithmetic totals, they can be heavily distorted when a dataset contains extreme outliers or heavy skewness.

To get a robust, distortion-free picture of how data is distributed on paper, statisticians divide an ordered dataset into four equal quarters using quartiles. Combining these quartiles with the minimum and maximum produces the Five-Number Summary and the Interquartile Range (IQR).


Defining the Five-Number Summary

When nn observations are arranged in ascending order, four milestone cutoffs divide the distribution into four equal parts (25%25\% each):

Minimum (xmin⁡):The smallest observation in the dataset (the 0% mark).First Quartile (Q1):The lower quartile: 25% of observations fall at or below it.Second Quartile (Q2 or x~):The median: 50% of observations fall at or below it.Third Quartile (Q3):The upper quartile: 75% of observations fall at or below it(and 25% fall above it).Maximum (xmax⁡):The largest observation in the dataset (the 100% mark).\begin{aligned} \textbf{Minimum } (x_{\min}): \quad &\text{The smallest observation in the dataset (the } 0\% \text{ mark).} \\ \textbf{First Quartile } (Q_1): \quad &\text{The lower quartile: } 25\% \text{ of observations fall at or below it.} \\ \textbf{Second Quartile } (Q_2 \text{ or } \tilde{x}): \quad &\text{The median: } 50\% \text{ of observations fall at or below it.} \\ \textbf{Third Quartile } (Q_3): \quad &\text{The upper quartile: } 75\% \text{ of observations fall at or below it} \\ &\text{(and } 25\% \text{ fall above it).} \\ \textbf{Maximum } (x_{\max}): \quad &\text{The largest observation in the dataset (the } 100\% \text{ mark).} \end{aligned}

The ordered set of these five milestones forms the Five-Number Summary:

{xmin⁡, Q1, Q2, Q3, xmax⁡}\{ x_{\min}, \ Q_1, \ Q_2, \ Q_3, \ x_{\max} \}

Formula Box: Measures of Quartile Spread

Interquartile Range (IQR):IQR=Q3−Q1The spread of the middle 50% of the data.Completely immune to extreme outliers.Semi-Interquartile Range (Quartile Deviation):QD=Q3−Q12=IQR2Full Range:Range=xmax⁡−xmin⁡\begin{aligned} \textbf{Interquartile Range } (\text{IQR}): \quad &\text{IQR} = Q_3 - Q_1 \\ &\text{The spread of the middle } 50\% \text{ of the data.} \\ &\text{Completely immune to extreme outliers.} \\ \textbf{Semi-Interquartile Range } (\text{Quartile Deviation}): \quad &\text{QD} = \frac{Q_3 - Q_1}{2} = \frac{\text{IQR}}{2} \\ \textbf{Full Range:} \quad &\text{Range} = x_{\max} - x_{\min} \end{aligned}

Step-by-Step Paper Notebook Method (The Halving Method)

The standard pencil-and-paper method taught in school curricula worldwide splits the ordered dataset into a Lower Half and an Upper Half:

Step 1: Sort the Data

Arrange all nn raw data values in ascending order:

x(1)≤x(2)≤x(3)≤⋯≤x(n)x_{(1)} \le x_{(2)} \le x_{(3)} \le \dots \le x_{(n)}

Record xmin⁡=x(1)x_{\min} = x_{(1)} and xmax⁡=x(n)x_{\max} = x_{(n)}.

Step 2: Find the Median (Q2Q_2)

  • If nn is odd, Q2Q_2 is the unique middle number at position n+12\frac{n+1}{2}.
  • If nn is even, Q2Q_2 is the average of the two middle numbers at positions n2\frac{n}{2} and n2+1\frac{n}{2} + 1.

Step 3: Split into Lower and Upper Halves

  • If nn is Odd: Exclude the middle element Q2Q_2.
    • Lower half = all values strictly to the left of Q2Q_2 (n−12\frac{n-1}{2} values).
    • Upper half = all values strictly to the right of Q2Q_2 (n−12\frac{n-1}{2} values).
  • If nn is Even: Split the dataset directly down the center.
    • Lower half = the first n2\frac{n}{2} values.
    • Upper half = the remaining n2\frac{n}{2} values.

Step 4: Calculate Q1Q_1 and Q3Q_3

  • Q1Q_1 is simply the median of the lower half.
  • Q3Q_3 is simply the median of the upper half.

Step 5: Calculate IQR

Compute the difference: IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.


Worked Examples

Example 1: Odd nn with Odd Halves (n=7n = 7)

Problem: Seven students recorded their study hours over the weekend:

4, 12, 3, 8, 15, 6, 94, \ 12, \ 3, \ 8, \ 15, \ 6, \ 9

Find the Five-Number Summary and the Interquartile Range on paper.

Step-by-Step Paper Solution:

  1. Sort the Data:

    3, 4, 6, 8, 9, 12, 15(n=7)3, \ 4, \ 6, \ 8, \ 9, \ 12, \ 15 \quad (n = 7)
    • Minimum: xmin⁡=3x_{\min} = 3
    • Maximum: xmax⁡=15x_{\max} = 15
  2. Find Q2Q_2 (Median):

    • Position: 7+12=4th\frac{7+1}{2} = 4\text{th} value.
    • Q2=8Q_2 = 8.
  3. Partition into Halves (excluding Q2=8Q_2 = 8):

    • Lower Half (33 values): {3, 4, 6}\{3, \ 4, \ 6\}
    • Upper Half (33 values): {9, 12, 15}\{9, \ 12, \ 15\}
  4. Find Q1Q_1 and Q3Q_3:

    • Median of lower half {3,4,6}\{3, 4, 6\}: the middle value is 44.
      Q1=4Q_1 = 4
    • Median of upper half {9,12,15}\{9, 12, 15\}: the middle value is 1212.
      Q3=12Q_3 = 12
  5. Compute IQR:

    IQR=Q3−Q1=12−4=8 hours\text{IQR} = Q_3 - Q_1 = 12 - 4 = 8\text{ hours}

Five-Number Summary:

{xmin⁡=3, Q1=4, Q2=8, Q3=12, xmax⁡=15}\{ x_{\min} = 3, \ Q_1 = 4, \ Q_2 = 8, \ Q_3 = 12, \ x_{\max} = 15 \}

Example 2: Even nn with Even Halves (n=8n = 8)

Problem: Eight daily high temperatures (in ∘C^{\circ}\text{C}) in early spring are recorded:

11, 18, 14, 22, 9, 15, 20, 1611, \ 18, \ 14, \ 22, \ 9, \ 15, \ 20, \ 16

Determine the Five-Number Summary, Range, and Interquartile Range on paper.

Step-by-Step Paper Solution:

  1. Sort the Data:

    9, 11, 14, 15, 16, 18, 20, 22(n=8)9, \ 11, \ 14, \ 15, \ 16, \ 18, \ 20, \ 22 \quad (n = 8)
    • xmin⁡=9∘Cx_{\min} = 9^{\circ}\text{C}
    • xmax⁡=22∘Cx_{\max} = 22^{\circ}\text{C}
  2. Find Q2Q_2 (Median):

    • Middle positions: 82=4th\frac{8}{2} = 4\text{th} (1515) and 82+1=5th\frac{8}{2} + 1 = 5\text{th} (1616).
    Q2=15+162=15.5∘CQ_2 = \frac{15 + 16}{2} = 15.5^{\circ}\text{C}
  3. Partition into Halves:

    • Lower Half (44 values): {9, 11, 14, 15}\{9, \ 11, \ 14, \ 15\}
    • Upper Half (44 values): {16, 18, 20, 22}\{16, \ 18, \ 20, \ 22\}
  4. Find Q1Q_1 and Q3Q_3:

    • Median of Lower Half: average the two middle values (1111 and 1414):
      Q1=11+142=252=12.5∘CQ_1 = \frac{11 + 14}{2} = \frac{25}{2} = 12.5^{\circ}\text{C}
    • Median of Upper Half: average the two middle values (1818 and 2020):
      Q3=18+202=382=19.0∘CQ_3 = \frac{18 + 20}{2} = \frac{38}{2} = 19.0^{\circ}\text{C}
  5. Compute Range and IQR:

    Range=xmax⁡−xmin⁡=22−9=13∘C\text{Range} = x_{\max} - x_{\min} = 22 - 9 = 13^{\circ}\text{C}
    IQR=Q3−Q1=19.0−12.5=6.5∘C\text{IQR} = Q_3 - Q_1 = 19.0 - 12.5 = 6.5^{\circ}\text{C}

Five-Number Summary:

{9, 12.5, 15.5, 19.0, 22}\{ 9, \ 12.5, \ 15.5, \ 19.0, \ 22 \}

Example 3: Odd nn with Even Halves (n=11n = 11)

Problem: Eleven golfers recorded their scores on a challenging par-72 course:

74, 82, 71, 78, 89, 75, 80, 76, 85, 72, 9574, \ 82, \ 71, \ 78, \ 89, \ 75, \ 80, \ 76, \ 85, \ 72, \ 95

Determine the Five-Number Summary and IQR on paper.

Step-by-Step Paper Solution:

  1. Sort the Data:

    71, 72, 74, 75, 76, 78, 80, 82, 85, 89, 95(n=11)71, \ 72, \ 74, \ 75, \ 76, \ 78, \ 80, \ 82, \ 85, \ 89, \ 95 \quad (n = 11)
    • xmin⁡=71x_{\min} = 71
    • xmax⁡=95x_{\max} = 95
  2. Find Q2Q_2 (Median):

    • Position: 11+12=6th\frac{11+1}{2} = 6\text{th} value.
    • The 6th6\text{th} value is 7878.
    • Q2=78Q_2 = 78.
  3. Partition into Halves (excluding Q2=78Q_2 = 78):

    • Lower Half (55 values): {71, 72, 74, 75, 76}\{71, \ 72, \ 74, \ 75, \ 76\}
    • Upper Half (55 values): {80, 82, 85, 89, 95}\{80, \ 82, \ 85, \ 89, \ 95\}
  4. Find Q1Q_1 and Q3Q_3:

    • Lower half has 55 values; its middle value is the 3rd3\text{rd} value:
      Q1=74Q_1 = 74
    • Upper half has 55 values; its middle value is the 3rd3\text{rd} value:
      Q3=85Q_3 = 85
  5. Calculate IQR:

    IQR=Q3−Q1=85−74=11 strokes\text{IQR} = Q_3 - Q_1 = 85 - 74 = 11\text{ strokes}

Five-Number Summary:

{71, 74, 78, 85, 95}\{ 71, \ 74, \ 78, \ 85, \ 95 \}

Example 4: Comparing Range vs. IQR in the Presence of an Outlier

Problem: A tech startup has five junior engineers earning $60k,$62k,$65k,$68k,$70k\$60\text{k}, \$62\text{k}, \$65\text{k}, \$68\text{k}, \$70\text{k}, and a celebrity CEO earning $950k\$950\text{k}. Compare the Range and IQR on paper.

Step-by-Step Paper Solution:

  1. Ordered List (n=6n = 6):
    60, 62, 65, 68, 70, 95060, \ 62, \ 65, \ 68, \ 70, \ 950
  2. Range:
    Range=950−60=890 thousand dollars\text{Range} = 950 - 60 = 890\text{ thousand dollars}
  3. Quartiles:
    • Lower half (33 values): {60,62,65}  ⟹  Q1=62\{60, 62, 65\} \implies Q_1 = 62.
    • Upper half (33 values): {68,70,950}  ⟹  Q3=70\{68, 70, 950\} \implies Q_3 = 70.
    • Q2=65+682=66.5Q_2 = \frac{65 + 68}{2} = 66.5.
  4. IQR:
    IQR=Q3−Q1=70−62=8 thousand dollars\text{IQR} = Q_3 - Q_1 = 70 - 62 = 8\text{ thousand dollars}
  5. Conclusion:
    • The Range (890890) is massively inflated by the single CEO salary, giving the false impression that ordinary salaries vary by hundreds of thousands of dollars.
    • The IQR (88) accurately conveys that the typical middle 50%50\% of employees have salaries clustered closely within an $8k\$8\text{k} band.

Common Mistakes & Paper Traps

  1. Calculating Quartiles on Unsorted Data:

    • Taking the 25%25\% position of the raw list without sorting first. Always sort the list first!
  2. Including the Median in Halves when nn is Odd:

    • In standard school mathematics (the Tukey/Halving method), when nn is odd, the median Q2Q_2 must be excluded from both the lower half and the upper half.
  3. Subtracting Positions Instead of Values:

    • If Q3Q_3 is at position 99 and Q1Q_1 is at position 33, accidentally writing IQR=9−3=6\text{IQR} = 9 - 3 = 6.
    • Fix: IQR is the difference between the values at those positions (x(9)−x(3)x_{(9)} - x_{(3)}), not the positions themselves.
  4. Confusing IQR with Semi-IQR:

    • IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.
    • Semi-IQR=Q3−Q12\text{Semi-IQR} = \frac{Q_3 - Q_1}{2}. Pay close attention to which one the exam asks for.

Pencil & Paper Practice

Practice 1

Nine runner heart rates (in beats per minute) were recorded during a warm-up:

118, 125, 110, 142, 130, 122, 135, 115, 128118, \ 125, \ 110, \ 142, \ 130, \ 122, \ 135, \ 115, \ 128

Find the Five-Number Summary and the Interquartile Range on paper.

Practice 2

Ten students took a mathematics placement test:

54, 68, 72, 75, 81, 84, 88, 91, 94, 9854, \ 68, \ 72, \ 75, \ 81, \ 84, \ 88, \ 91, \ 94, \ 98

Determine the Five-Number Summary, the Range, and the Semi-Interquartile Range.


Worked Solutions for Practice Problems

Solution to Practice 1

  1. Sorted List (n=9n = 9):
    110, 115, 118, 122, 125, 128, 130, 135, 142110, \ 115, \ 118, \ 122, \ 125, \ 128, \ 130, \ 135, \ 142
    • xmin⁡=110x_{\min} = 110, xmax⁡=142x_{\max} = 142.
  2. Median (Q2Q_2):
    • Position: 9+12=5th\frac{9+1}{2} = 5\text{th} value   ⟹  Q2=125 bpm\implies Q_2 = 125\text{ bpm}.
  3. Lower and Upper Halves (exclude 125125):
    • Lower half (44 values): {110,115,118,122}\{110, 115, 118, 122\}.
      Q1=115+1182=116.5 bpmQ_1 = \frac{115 + 118}{2} = 116.5\text{ bpm}
    • Upper half (44 values): {128,130,135,142}\{128, 130, 135, 142\}.
      Q3=130+1352=132.5 bpmQ_3 = \frac{130 + 135}{2} = 132.5\text{ bpm}
  4. IQR:
    IQR=Q3−Q1=132.5−116.5=16 bpm\text{IQR} = Q_3 - Q_1 = 132.5 - 116.5 = 16\text{ bpm}
  5. Five-Number Summary: {110, 116.5, 125, 132.5, 142}\{ 110, \ 116.5, \ 125, \ 132.5, \ 142 \}.

Solution to Practice 2

  1. Sorted List (n=10n = 10, already in ascending order):
    54, 68, 72, 75, 81, 84, 88, 91, 94, 9854, \ 68, \ 72, \ 75, \ 81, \ 84, \ 88, \ 91, \ 94, \ 98
    • xmin⁡=54x_{\min} = 54, xmax⁡=98x_{\max} = 98.
  2. Median (Q2Q_2):
    • Average of 5th5\text{th} (8181) and 6th6\text{th} (8484) values:
      Q2=81+842=82.5Q_2 = \frac{81 + 84}{2} = 82.5
  3. Halves (55 values each):
    • Lower half: {54,68,72,75,81}  ⟹  Q1=72\{54, 68, \mathbf{72}, 75, 81\} \implies Q_1 = 72.
    • Upper half: {84,88,91,94,98}  ⟹  Q3=91\{84, 88, \mathbf{91}, 94, 98\} \implies Q_3 = 91.
  4. Range, IQR, and Semi-IQR:
    Range=98−54=44\text{Range} = 98 - 54 = 44
    IQR=Q3−Q1=91−72=19\text{IQR} = Q_3 - Q_1 = 91 - 72 = 19
    Semi-IQR=192=9.5\text{Semi-IQR} = \frac{19}{2} = 9.5
  5. Five-Number Summary: {54, 72, 82.5, 91, 98}\{ 54, \ 72, \ 82.5, \ 91, \ 98 \}.

Test yourself

What proportion of observations in any distribution lies strictly between the first quartile Q1Q_1 and the third quartile Q3Q_3?

  1. Approximately 25%25\%
  2. Approximately 50%50\%
  3. Approximately 75%75\%
  4. Approximately 100%100\%

For the ordered dataset: 2, 5, 8, 11, 14, 17, 202, \ 5, \ 8, \ 11, \ 14, \ 17, \ 20, what is the Interquartile Range (IQR)?

  1. 1818
  2. 1212
  3. 66
  4. 99

A dataset has a Five-Number Summary of {12, 20, 28, 35, 50}\{12, \ 20, \ 28, \ 35, \ 50\}. What is the Semi-Interquartile Range?

  1. 1515
  2. 7.57.5
  3. 1919
  4. 3838