StatisticsExploring One-Variable Data5 of 8
Exploring One-Variable Data · 5

Quartiles, the Five-Number Summary, and IQR

We need a way to measure how spread out a dataset is without letting a single extreme value ruin the answer.

1

Quartiles and the Interquartile Range

The range uses only the minimum and maximum, so one outlier stretches it across the whole number line. To measure the spread of typical values instead, we cut the ordered data into four quarters at the quartiles and find the width of the middle 50%\share{50\%}: the interquartile range (IQR\spread{\text{IQR}}).

Quartiles and the Interquartile Range
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
5\htmlClass{lc-blue}{5}
6\htmlClass{lc-blue}{6}
6\htmlClass{lc-blue}{6}
7\htmlClass{lc-blue}{7}
8\htmlClass{lc-blue}{8}
45\htmlClass{lc-blue}{45}
IQR=  ?\htmlClass{lc-pink}{\text{IQR}} = \;?
Text solution
Cut the ordered list in half at the medianWalking five spots in from both ends of the 1111 ordered wait times lands on the 6th number, which splits the remaining ten values into a left half of five and a right half of five:
2, 3, 3, 4, 5⏟left half5Median6, 6, 7, 8, 45⏟right half\displaystyle \underbrace{\val{2,\ 3,\ 3,\ 4,\ 5}}_{\text{left half}} \quad \underset{\stat{\text{Median}}}{\boxed{\stat{5}}} \quad \underbrace{\val{6,\ 6,\ 7,\ 8,\ 45}}_{\text{right half}}
Find the middle of each half to get Q1\stat{Q_1} and Q3\stat{Q_3}Walking to the middle of the five fast waits on the left gives the first quartile (25%\share{25\%} mark), and walking to the middle of the five slower waits on the right gives the third quartile (75%\share{75\%} mark):
2, 3, 3Q1, 4, 5and6, 6, 7Q3, 8, 45\displaystyle \val{2,\ 3},\ \underset{\stat{Q_1}}{\boxed{\stat{3}}},\ \val{4,\ 5} \qquad \text{and} \qquad \val{6,\ 6},\ \underset{\stat{Q_3}}{\boxed{\stat{7}}},\ \val{8,\ 45}
Subtract Q1\stat{Q_1} from Q3\stat{Q_3} to find the width of the middle 50%\share{50\%}The box from Q1\stat{Q_1} to Q3\stat{Q_3} holds the middle half of the customers, so the size of the extreme 45-minute wait on the right edge doesn't affect its width at all:
IQR⏟interquartile range\displaystyle \underbrace{\spread{\text{IQR}}}_{\text{interquartile range}} =Q3−Q1\displaystyle = \stat{Q_3} - \stat{Q_1} =7−3\displaystyle = \stat{7} - \stat{3} =4 minutes\displaystyle = \spread{4}\text{ minutes}

So the middle half of customers waited between 3\stat{3} and 7\stat{7} minutes, a spread of just 4\spread{4} minutes, even though the full range is 45−2=43\stat{45} - \stat{2} = \spread{43} minutes.

Moving an outer data point far along the number line stretches the full range wildly, while Q1\stat{Q_1}, Q3\stat{Q_3}, and the IQR\spread{\text{IQR}} stay completely fixed unless a point crosses Q1\stat{Q_1} or Q3\stat{Q_3} into or out of the middle half.

Outer points can stretch the Range as far as they go without moving the IQR, as long as they don't cross Q1 or Q3 into the middle half.
2

Finding Quartiles in Ordered Lists

To find Q1\stat{Q_1} and Q3\stat{Q_3} in any ordered list, we need to know what happens to the middle of the list right after we make the median cut.

Finding Quartiles in Ordered Lists
1\htmlClass{lc-blue}{1}
2\htmlClass{lc-blue}{2}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
7\htmlClass{lc-blue}{7}
8\htmlClass{lc-blue}{8}
10\htmlClass{lc-blue}{10}
12\htmlClass{lc-blue}{12}
15\htmlClass{lc-blue}{15}
10\htmlClass{lc-blue}{10}
12\htmlClass{lc-blue}{12}
14\htmlClass{lc-blue}{14}
15\htmlClass{lc-blue}{15}
17\htmlClass{lc-blue}{17}
20\htmlClass{lc-blue}{20}
22\htmlClass{lc-blue}{22}
30\htmlClass{lc-blue}{30}
Q1=  ?Q3=  ?\htmlClass{lc-blue}{Q_1} = \;? \qquad \htmlClass{lc-blue}{Q_3} = \;?
Text solution
Leave the median out when the cut hits a number (odd count)With 99 ordered numbers, the middle cut lands directly on the 5th number, so 7\stat{7} acts as the divider and stays out of both 4-number halves:
1, 2 ∣ 4, 5⏟left half7Median8, 10 ∣ 12, 15⏟right half\displaystyle \underbrace{\val{1,\ 2}\ \stat{\big|}\ \val{4,\ 5}}_{\text{left half}} \quad \underset{\stat{\text{Median}}}{\boxed{\stat{7}}} \quad \underbrace{\val{8,\ 10}\ \stat{\big|}\ \val{12,\ 15}}_{\text{right half}}
Average the two numbers around each half's middle gapEach 4-number half splits in the gap between its second and third numbers, putting Q1\stat{Q_1} and Q3\stat{Q_3} halfway between them:
Q1\displaystyle \stat{Q_1} =2+42\displaystyle = \frac{\val{2} + \val{4}}{2} =3andQ3\displaystyle = \stat{3} \qquad \text{and} \qquad \stat{Q_3} =10+122\displaystyle = \frac{\val{10} + \val{12}}{2} =11\displaystyle = \stat{11}
Keep every number when the median cut falls in a gap (even count)With 88 ordered numbers, the median cut falls cleanly into the gap between 15\val{15} and 17\val{17}, so both numbers stay inside their own halves when we cut each group of four again:
10, 12 ∣ 14, 15⏟left half (Q1=13)∣Median=1617, 20 ∣ 22, 30⏟right half (Q3=21)\displaystyle \underbrace{\val{10,\ 12}\ \stat{\big|}\ \val{14,\ 15}}_{\text{left half } (\stat{Q_1} = \stat{13})} \quad \underset{\stat{\text{Median}} = \stat{16}}{\stat{\Big|}} \quad \underbrace{\val{17,\ 20}\ \stat{\big|}\ \val{22,\ 30}}_{\text{right half } (\stat{Q_3} = \stat{21})}
3

The Five-Number Summary and Shape

Leaving out the extremes gave us a clean measure of typical spread, but we still want to see the lowest and highest values without letting them distort the middle. The five-number summary puts the minimum at the start and the maximum at the end of the three quartiles to show the center, spread, extremes, and shape of a dataset in five numbers.

The Five-Number Summary and Shape
2\htmlClass{lc-blue}{2}
3\htmlClass{lc-blue}{3}
3\htmlClass{lc-blue}{3}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
5\htmlClass{lc-blue}{5}
6\htmlClass{lc-blue}{6}
6\htmlClass{lc-blue}{6}
7\htmlClass{lc-blue}{7}
8\htmlClass{lc-blue}{8}
45\htmlClass{lc-blue}{45}
Q1\htmlClass{lc-blue}{Q_1}
Median\htmlClass{lc-blue}{\text{Median}}
Q3\htmlClass{lc-blue}{Q_3}
0\htmlClass{lc-ink}{0}
10\htmlClass{lc-ink}{10}
20\htmlClass{lc-ink}{20}
30\htmlClass{lc-ink}{30}
40\htmlClass{lc-ink}{40}
0\htmlClass{lc-ink}{0}
20\htmlClass{lc-ink}{20}
40\htmlClass{lc-ink}{40}
2\htmlClass{lc-blue}{2}
Min\htmlClass{lc-blue}{\text{Min}}
3\htmlClass{lc-blue}{3}
Q1\htmlClass{lc-blue}{Q_1}
5\htmlClass{lc-blue}{5}
Median\htmlClass{lc-blue}{\text{Median}}
7\htmlClass{lc-blue}{7}
Q3\htmlClass{lc-blue}{Q_3}
45\htmlClass{lc-blue}{45}
Max\htmlClass{lc-blue}{\text{Max}}
25%\htmlClass{lc-green}{25\%}
25%\htmlClass{lc-green}{25\%}
25%\htmlClass{lc-green}{25\%}
25%\htmlClass{lc-green}{25\%}
Text solution
Place the minimum and maximum on the ends of the quartilesAdding the fastest and slowest wait times to the outer ends of our coffee shop quartiles summarizes all 1111 customers in five numbers:
2⏟Min,3⏟Q1,5⏟Median,7⏟Q3,45⏟Max\displaystyle \underbrace{\stat{2}}_{\stat{\text{Min}}},\quad \underbrace{\stat{3}}_{\stat{Q_1}},\quad \underbrace{\stat{5}}_{\stat{\text{Median}}},\quad \underbrace{\stat{7}}_{\stat{Q_3}},\quad \underbrace{\stat{45}}_{\stat{\text{Max}}}
Compare the widths of the four 25%\share{25\%} intervals to read the shapeEach step from one number to the next holds one-quarter of the customers, so subtracting consecutive numbers shows how tightly or loosely each quarter is packed:
3−2=1⏟first 25%,5−3=2⏟second 25%,7−5=2⏟third 25%,45−7=38⏟top 25% (right tail)\displaystyle \begin{aligned} &\underbrace{\stat{3} - \stat{2} = \spread{1}}_{\text{first } \share{25\%}},\quad &&\underbrace{\stat{5} - \stat{3} = \spread{2}}_{\text{second } \share{25\%}},\quad \\ &\underbrace{\stat{7} - \stat{5} = \spread{2}}_{\text{third } \share{25\%}},\quad &&\underbrace{\stat{45} - \stat{7} = \spread{38}}_{\text{top } \share{25\%} \text{ (right tail)}} \end{aligned}

So the first three quarters of the customers are bunched tightly into 1\spread{1}- and 2\spread{2}-minute gaps on the left, while the slowest 25%\share{25\%} stretches across 38\spread{38} minutes on the right, showing that the distribution is skewed to the right.

See how the four 25%\share{25\%} sections stack up on the number line when you move the points:

Each gap between the five summary numbers always holds 25% of the data, so narrow gaps stack up tall and wide gaps stretch out flat.
4

Quartiles from a Stemplot or Dotplot

When a dataset has dozens of values in a stemplot or dotplot, writing every number out in a line takes too long. Instead, we find the exact positions of the median and quartiles from the total count first, and then count leaves or dots directly to those spots.

Quartiles from a Stemplot or Dotplot
01234\htmlClass{lc-ink}{\def\arraystretch{1.2964}\begin{matrix}0\\1\\2\\3\\4\end{matrix}}
457889\htmlClass{lc-blue}{4\hspace{0.4723em}5\hspace{0.4723em}7\hspace{0.4723em}8\hspace{0.4723em}8\hspace{0.4723em}9}
012245689\htmlClass{lc-blue}{0\hspace{0.4723em}1\hspace{0.4723em}2\hspace{0.4723em}2\hspace{0.4723em}4\hspace{0.4723em}5\hspace{0.4723em}6\hspace{0.4723em}8\hspace{0.4723em}9}
124578\htmlClass{lc-blue}{1\hspace{0.4723em}2\hspace{0.4723em}4\hspace{0.4723em}5\hspace{0.4723em}7\hspace{0.4723em}8}
035\htmlClass{lc-blue}{0\hspace{0.4723em}3\hspace{0.4723em}5}
2\htmlClass{lc-blue}{2}
Key: 1∣4=14 minutes\htmlClass{lc-ink}{\text{Key: } 1 \mid 4 = 14\text{ minutes}}
Q1=  ?\htmlClass{lc-blue}{Q_1} = \;?
Median=  ?\htmlClass{lc-blue}{\text{Median}} = \;?
Q3=  ?\htmlClass{lc-blue}{Q_3} = \;?
01234\htmlClass{lc-ink}{\def\arraystretch{2.4487}\begin{matrix}0\\1\\2\\3\\4\end{matrix}}
4\htmlClass{lc-blue}{4}
1st\htmlClass{lc-ink}{1\text{st}}
5788\htmlClass{lc-blue}{5\hspace{0.7856em}7\hspace{0.7856em}8\hspace{0.7856em}8}
9\htmlClass{lc-blue}{9}
6th\htmlClass{lc-ink}{6\text{th}}
0\htmlClass{lc-blue}{0}
7th\htmlClass{lc-ink}{7\text{th}}
12245\htmlClass{lc-blue}{1\hspace{0.7856em}2\hspace{0.7856em}2\hspace{0.7856em}4\hspace{0.7856em}5}
6\htmlClass{lc-blue}{6}
13th\htmlClass{lc-ink}{13\text{th}}
89\htmlClass{lc-blue}{8\hspace{0.7856em}9}
124\htmlClass{lc-blue}{1\hspace{0.7856em}2\hspace{0.7856em}4}
5\htmlClass{lc-blue}{5}
19th\htmlClass{lc-ink}{19\text{th}}
7\htmlClass{lc-blue}{7}
20th\htmlClass{lc-ink}{20\text{th}}
8\htmlClass{lc-blue}{8}
035\htmlClass{lc-blue}{0\hspace{0.7856em}3\hspace{0.7856em}5}
2\htmlClass{lc-blue}{2}
25th\htmlClass{lc-ink}{25\text{th}}
69631\htmlClass{lc-ink}{\def\arraystretch{2.7548}\begin{matrix}6\\9\\6\\3\\1\end{matrix}}
Key: 1∣4=14 minutes\htmlClass{lc-ink}{\text{Key: } 1 \mid 4 = 14\text{ minutes}}
Text solution
Split the total count to find the median positionWith 2525 customers in total, taking out 11 for the middle number leaves 2424 customers that split evenly into 1212 on each side, putting the median right on the 13th spot:
12 numbers⏟positions 1–1213thMedian12 numbers⏟positions 14–25\displaystyle \underbrace{12\text{ numbers}}_{\text{positions } 1\text{–}12} \quad \underset{\stat{\text{Median}}}{\boxed{13\text{th}}} \quad \underbrace{12\text{ numbers}}_{\text{positions } 14\text{–}25}
Split each half's count to find the quartile positionsLeaving the 13th number out gives 1212 numbers in each half, so each half splits into 66 and 66 at the gap after its 6th number:
Q1 position=between 6th and 7th,Q3 position=between (13+6)th and 20th\displaystyle \begin{aligned} \stat{Q_1} \text{ position} &= \text{between } 6\text{th and } 7\text{th}, \\ \stat{Q_3} \text{ position} &= \text{between } (13 + 6)\text{th and } 20\text{th} \end{aligned}
Count leaves to read the values and compute the IQR\spread{\text{IQR}}Using the row counts (66 leaves in stem 00, then 99 in stem 11) to jump to positions 11, 6–76\text{–}7, 1313, 19–2019\text{–}20, and 2525 gives the wait times in minutes:
Q1=9+102=9.5,Median=16,Q3=25+272=26\displaystyle \begin{aligned} \stat{Q_1} &= \frac{\val{9} + \val{10}}{2} = \stat{9.5}, \\ \stat{\text{Median}} &= \stat{16}, \\ \stat{Q_3} &= \frac{\val{25} + \val{27}}{2} = \stat{26} \end{aligned}
Five-Number Summary: 4, 9.5, 16, 26, 42andIQR=26−9.5=16.5 minutes\displaystyle \begin{aligned} &\text{Five-Number Summary: } \stat{4,\ 9.5,\ 16,\ 26,\ 42} \qquad \text{and} \\ &\spread{\text{IQR}} = \stat{26} - \stat{9.5} = \spread{16.5}\text{ minutes} \end{aligned}

In a dotplot, you count dots from left to right the exact same way; if you ever count backward from the high end of a stemplot to reach Q3\stat{Q_3}, remember to count leaves from right to left so you move from largest to smallest.

5

Quartiles from a Frequency Table

Now for a frequency table. Here, repeated values are grouped into a single row rather than drawn as individual leaves or dots, so we add the frequencies as a running total to see which row holds each quartile's position.

Quartiles from a Frequency Table
Items\htmlClass{lc-ink}{\text{Items}}
bought\htmlClass{lc-ink}{\text{bought}}
Customers\htmlClass{lc-ink}{\text{Customers}}
123456\htmlClass{lc-blue}{\def\arraystretch{1.0533}\begin{matrix}1\\2\\3\\4\\5\\6\end{matrix}}
14115631\htmlClass{lc-ink}{\def\arraystretch{1.0533}\begin{matrix}14\\11\\5\\6\\3\\1\end{matrix}}
Total\htmlClass{lc-ink}{\text{Total}}
40\htmlClass{lc-ink}{40}
Q1=  ?Median=  ?Q3=  ?\htmlClass{lc-blue}{Q_1} = \;? \qquad \htmlClass{lc-blue}{\text{Median}} = \;? \qquad \htmlClass{lc-blue}{Q_3} = \;?
Items\htmlClass{lc-ink}{\text{Items}}
bought\htmlClass{lc-ink}{\text{bought}}
123456\htmlClass{lc-blue}{\def\arraystretch{1.2154}\begin{matrix}1\\2\\3\\4\\5\\6\end{matrix}}
Customers\htmlClass{lc-ink}{\text{Customers}}
14115631\htmlClass{lc-ink}{\def\arraystretch{1.2154}\begin{matrix}14\\11\\5\\6\\3\\1\end{matrix}}
Running\htmlClass{lc-ink}{\text{Running}}
total\htmlClass{lc-ink}{\text{total}}
142530363940\htmlClass{lc-ink}{\def\arraystretch{1.2154}\begin{matrix}14\\25\\30\\36\\39\\40\end{matrix}}
1st–14th15th–25th26th–30th31st–36th37th–39th40th\htmlClass{lc-ink}{\def\arraystretch{1.2913}\begin{matrix}1\text{st}\text{–}14\text{th}\\15\text{th}\text{–}25\text{th}\\26\text{th}\text{–}30\text{th}\\31\text{st}\text{–}36\text{th}\\37\text{th}\text{–}39\text{th}\\40\text{th}\end{matrix}}
Text solution
Split the total frequency to find the median and quartile positionsAn even total of 4040 orders splits cleanly into two halves of 2020, and each 20-order half splits into two quarters of 1010:
Median: between 20th and 21st,Q1: between 10th and 11th,Q3: between 30th and 31st\displaystyle \begin{aligned} \stat{\text{Median}}&\text{: between } 20\text{th and } 21\text{st}, \\ \stat{Q_1}&\text{: between } 10\text{th and } 11\text{th}, \\ \stat{Q_3}&\text{: between } 30\text{th and } 31\text{st} \end{aligned}
Add a running total of frequencies to locate those positionsAdding the customer counts down the table (1414, 2525, 3030, 3636, 3939, 4040) shows that positions 1010 and 1111 are both in the 1-item row, positions 2020 and 2121 are both in the 2-item row, and position 3030 is at the end of the 3-item row while position 3131 is at the start of the 4-item row:
Q1=1+12=1,Median=2+22=2,Q3=3+42=3.5\displaystyle \begin{aligned} \stat{Q_1} &= \frac{\val{1} + \val{1}}{2} = \stat{1}, \\ \stat{\text{Median}} &= \frac{\val{2} + \val{2}}{2} = \stat{2}, \\ \stat{Q_3} &= \frac{\val{3} + \val{4}}{2} = \stat{3.5} \end{aligned}
Put the five summary numbers together and subtract Q1\stat{Q_1} from Q3\stat{Q_3}Including the 1st order (Min=1\stat{\text{Min}} = \stat{1}) and 40th order (Max=6\stat{\text{Max}} = \stat{6}) gives the summary and the spread of the middle half:
Five-Number Summary: 1, 1, 2, 3.5, 6andIQR=3.5−1=2.5 items\displaystyle \begin{aligned} &\text{Five-Number Summary: } \stat{1,\ 1,\ 2,\ 3.5,\ 6} \qquad \text{and} \\ &\spread{\text{IQR}} = \stat{3.5} - \stat{1} = \spread{2.5}\text{ items} \end{aligned}

Key concepts

Once a dataset is in order from least to greatest, the median cut divides it into a left half and a right half, and the quartiles Q1\stat{Q_1} and Q3\stat{Q_3} are the medians of those two halves. Everything depends on where that first cut lands:

Cut hits a number (odd count) →\rightarrow leave it out

In 2,4,5,8,9\val{2, 4}, \boxed{\stat{5}}, \val{8, 9}, the median 5\stat{5} is the divider and stays out of both halves, leaving 2,4\val{2, 4} (Q1=3\stat{Q_1} = \stat{3}) and 8,9\val{8, 9} (Q3=8.5\stat{Q_3} = \stat{8.5}).

Cut falls in a gap (even count) →\rightarrow keep everything

In 2,4∣8,9\val{2, 4} \stat{\mid} \val{8, 9}, the median is 6\stat{6}, and every number stays in its half (Q1=3\stat{Q_1} = \stat{3} and Q3=8.5\stat{Q_3} = \stat{8.5}).

For a short list, walk directly in from the ends. When data is grouped in a stemplot, dotplot, or frequency table, do not write all the numbers out in a row and do not take the middle of the value column (1,2,3,4,5,6\val{1, 2, 3, 4, 5, 6}). Instead, split the total count first to find the position numbers (for 2525 items, the median is 13th13\text{th}, Q1\stat{Q_1} is between 6th6\text{th} and 7th7\text{th}, and Q3\stat{Q_3} is between 19th19\text{th} and 20th20\text{th}), then count leaves or track running frequency totals to read the values at those spots.

Putting the minimum and maximum on the ends of the quartiles gives the complete picture of the dataset:

Five-Number Summary: Min, Q1, Median, Q3, MaxandIQR=Q3−Q1\displaystyle \begin{aligned} &\text{Five-Number Summary: } \stat{\text{Min}},\ \stat{Q_1},\ \stat{\text{Median}},\ \stat{Q_3},\ \stat{\text{Max}} \qquad \text{and} \\ &\spread{\text{IQR}} = \stat{Q_3} - \stat{Q_1} \end{aligned}

Use the IQR\spread{\text{IQR}} instead of Range=Max−Min\spread{\text{Range}} = \stat{\text{Max}} - \stat{\text{Min}} whenever an outlier stretches one end, because the IQR\spread{\text{IQR}} measures only the middle 50%\share{50\%} of the data. Since each of the four steps between consecutive summary numbers holds 25%\share{25\%} of the data, narrow gaps (2\stat{2} to 3\stat{3} to 5\stat{5} to 7\stat{7}) show a tall, dense cluster while a wide gap on one side (7\stat{7} to 45\stat{45}) shows a long tail skewed in that direction.

6

Practice

1

Nine customers rated their wait time satisfaction on a 30-point scale: 14,7,22,5,11,18,9,25,12\val{14, 7, 22, 5, 11, 18, 9, 25, 12}. Find the five-number summary and the IQR\spread{\text{IQR}}.

Put the nine ratings in order from least to greatest first. Then does the middle cut hit a single rating or fall in a gap?

Ordered list: 5,7,9,11,12,14,18,22,25\val{5, 7, 9, 11, 12, 14, 18, 22, 25}. (Warning: Finding the middle of the original scrambled list gives Median=11\stat{\text{Median}} = \miss{11} and IQR=2.5\spread{\text{IQR}} = \miss{2.5}, which is meaningless before ordering the numbers.) The middle cut hits the 5th number, so Median=12\stat{\text{Median}} = \stat{12}, which is left out of both halves. (Warning: Keeping 12\stat{12} inside both 5-number halves puts Q1=9\stat{Q_1} = \miss{9} and Q3=18\stat{Q_3} = \miss{18}, giving a wrong IQR\spread{\text{IQR}} of 9\miss{9}.) Left half (5,7,9,11\val{5, 7, 9, 11}): Q1=7+92=8\stat{Q_1} = \frac{\val{7} + \val{9}}{2} = \stat{8}. Right half (14,18,22,25\val{14, 18, 22, 25}): Q3=18+222=20\stat{Q_3} = \frac{\val{18} + \val{22}}{2} = \stat{20}. Five-Number Summary: Min=5\stat{\text{Min}} = \stat{5}, Q1=8\stat{Q_1} = \stat{8}, Median=12\stat{\text{Median}} = \stat{12}, Q3=20\stat{Q_3} = \stat{20}, Max=25\stat{\text{Max}} = \stat{25}. IQR=20−8=12\spread{\text{IQR}} = \stat{20} - \stat{8} = \spread{12}.
2

Eight delivery times, in minutes, are listed in order: 12,15,16,18,20,22,25,30\val{12, 15, 16, 18, 20, 22, 25, 30}. (a) Find the median, IQR\spread{\text{IQR}}, and range. (b) If the last driver gets stuck in traffic and the 30-minute delivery becomes 90 minutes instead, what are the new IQR\spread{\text{IQR}} and the new range?

For 88 ordered numbers, where does the middle cut fall, and do 18\val{18} and 20\val{20} stay in their halves or get left out?

(a) The middle cut falls in the gap between 18\val{18} and 20\val{20}, so Median=19\stat{\text{Median}} = \stat{19} and all numbers stay in their halves. (Warning: Crossing out 18\val{18} and 20\val{20} after averaging them leaves only three numbers per half, which gives Q1=15\stat{Q_1} = \miss{15}, Q3=25\stat{Q_3} = \miss{25}, and a wrong IQR\spread{\text{IQR}} of 10\miss{10} minutes.) Left half (12,15,16,18\val{12, 15, 16, 18}): Q1=15.5\stat{Q_1} = \stat{15.5}. Right half (20,22,25,30\val{20, 22, 25, 30}): Q3=23.5\stat{Q_3} = \stat{23.5}. IQR=23.5−15.5=8 minutes\spread{\text{IQR}} = \stat{23.5} - \stat{15.5} = \spread{8}\text{ minutes}, and Range=30−12=18 minutes\spread{\text{Range}} = \stat{30} - \stat{12} = \spread{18}\text{ minutes}. (b) Changing 30\stat{30} to 90\stat{90} only moves the maximum on the outer edge and leaves Q1=15.5\stat{Q_1} = \stat{15.5} and Q3=23.5\stat{Q_3} = \stat{23.5} unchanged. (Warning: Recalculating the spread from the new maximum confuses the IQR\spread{\text{IQR}} with the range. The 6th and 7th numbers are still 22\val{22} and 25\val{25}, so Q3\stat{Q_3} stays 23.5\stat{23.5}.) New IQR=8 minutes\spread{\text{IQR}} = \spread{8}\text{ minutes}, and new Range=90−12=78 minutes\spread{\text{Range}} = \stat{90} - \stat{12} = \spread{78}\text{ minutes}.
3

On a 100-point exam taken by 200200 students, the five-number summary of scores is Min=35\stat{\text{Min}} = \stat{35}, Q1=72\stat{Q_1} = \stat{72}, Median=84\stat{\text{Median}} = \stat{84}, Q3=90\stat{Q_3} = \stat{90}, Max=96\stat{\text{Max}} = \stat{96}. (a) What is the IQR\spread{\text{IQR}}, and how many students scored between 72\stat{72} and 90\stat{90}? (b) What does the five-number summary tell you about the shape of the score distribution?

What share of the class is inside the box from Q1\stat{Q_1} to Q3\stat{Q_3}, and which end of the summary has the widest 25%\share{25\%} gap?

(a) IQR=90−72=18 points\spread{\text{IQR}} = \stat{90} - \stat{72} = \spread{18}\text{ points}. The box from Q1\stat{Q_1} to Q3\stat{Q_3} holds the middle 50%\share{50\%} of the 200200 students. (Warning: Taking 25%\share{25\%} of 200200 to get 50\miss{50} students counts only one quarter, whereas Q1\stat{Q_1} to Q3\stat{Q_3} spans two quarters, or 50%\share{50\%}.) Number of students between 72\stat{72} and 90=100 students\stat{90} = \share{100}\text{ students}. (b) Each interval holds 25%\share{25\%} of the students, so the bottom 25%\share{25\%} is stretched across a 37-point tail on the left (35\stat{35} to 72\stat{72}), while the upper quarters are packed tightly on the right (gaps of 12\spread{12}, 6\spread{6}, and 6\spread{6} points from 72\stat{72} to 96\stat{96}). (Warning: Seeing most scores bunched near the high end and calling the distribution "skewed right" gets the name backward: skew is named for the direction of the long, stretched tail.) Shape: skewed to the left.
4

The stemplot below shows the ages (in years) of 2222 trees in a park (Key: 2∣0=20 years\text{Key: } 2 \mid 0 = 20\text{ years}). Find the positions of the median and quartiles first, then find the five-number summary and IQR\spread{\text{IQR}}. ```text 1 | 5 6 8 9 2 | 0 1 3 5 5 7 8 3 | 0 2 4 4 6 7 9 4 | 1 3 5 5 | 2 ```

Split 2222 in half first. Does that cut hit a tree or fall in a gap, and how many trees are in each half when you find the positions for Q1\stat{Q_1} and Q3\stat{Q_3}?

With 2222 trees, the median cut falls in the gap between the 11th and 12th trees. Keeping all 1111 trees in each half puts Q1\stat{Q_1} at the 6th tree and Q3\stat{Q_3} at the 17th tree (11+6=1711 + 6 = 17). Counting leaves across the rows: 1st =15= \stat{15} (Min\stat{\text{Min}}), 6th =21= \stat{21} (Q1\stat{Q_1}), 11th =28= \val{28} and 12th =30= \val{30} so Median=29\stat{\text{Median}} = \stat{29}, 17th =37= \stat{37} (Q3\stat{Q_3}), and 22nd =52= \stat{52} (Max\stat{\text{Max}}). (Warning: Counting backward from the 22nd tree to the 17th, the 6th leaf from the high end, but reading row 33 from left to right instead of right to left lands on 32\miss{32} instead of 37\stat{37} for Q3\stat{Q_3}, giving a wrong IQR\spread{\text{IQR}} of 11\miss{11}.) Five-Number Summary: 15,21,29,37,52\stat{15, 21, 29, 37, 52}. IQR=37−21=16 years\spread{\text{IQR}} = \stat{37} - \stat{21} = \spread{16}\text{ years}.
5

A frequency table records the number of mistakes made by 4949 students on a quiz: 00 mistakes (99 students), 11 mistake (1515 students), 22 mistakes (1313 students), 33 mistakes (88 students), 44 mistakes (44 students). Find the five-number summary and the IQR\spread{\text{IQR}}.

With 4949 students total, which student position is the median, and what running totals do you get as you add the student counts down the rows?

With 4949 students, the median is the 25th student; leaving it out splits the rest into 2424 and 2424, so Q1\stat{Q_1} is between the 12th and 13th students and Q3\stat{Q_3} is between the 37th and 38th students. (Warning: Finding the quartiles of the five mistake numbers 0,1,2,3,4\val{0, 1, 2, 3, 4} ignores the frequencies and gives Q1=0.5\stat{Q_1} = \miss{0.5}, Q3=3.5\stat{Q_3} = \miss{3.5}, and a wrong IQR\spread{\text{IQR}} of 3\miss{3}.) Using running totals (9,24,37,45,499, 24, 37, 45, 49): Min\stat{\text{Min}} (1st) =0= \stat{0}; 12th and 13th are both in the 1-mistake row, so Q1=1\stat{Q_1} = \stat{1}; 25th is the first value in the 2-mistakes row, so Median=2\stat{\text{Median}} = \stat{2}; 37th is the last 2\val{2} and 38th is the first 3\val{3}, so Q3=2.5\stat{Q_3} = \stat{2.5}; Max\stat{\text{Max}} (49th) =4= \stat{4}. (Warning: Seeing the running total 3737 at the end of the 2-mistakes row and writing Q3=2\stat{Q_3} = \miss{2} misses the fact that the 38th student is in the 3-mistakes row, which would give a wrong IQR\spread{\text{IQR}} of 1\miss{1}.) Five-Number Summary: 0,1,2,2.5,4\stat{0, 1, 2, 2.5, 4}. IQR=2.5−1=1.5 mistakes\spread{\text{IQR}} = \stat{2.5} - \stat{1} = \spread{1.5}\text{ mistakes}.
6

Nine numbers are listed in order from least to greatest: 4,6,x,11,14,15,y,24,30\val{4, 6, x, 11, 14, 15, y, 24, 30}. If Q1=8\stat{Q_1} = \stat{8} and the IQR\spread{\text{IQR}} is 12\spread{12}, find x\val{x} and y\val{y}.

Once the middle number is left out, which two numbers in each 4-number half get averaged to give Q1\stat{Q_1} and Q3\stat{Q_3}?

The middle cut hits 14\stat{14}, leaving 4,6,x,11\val{4, 6, x, 11} in the left half and 15,y,24,30\val{15, y, 24, 30} in the right half. In the left half, Q1\stat{Q_1} is halfway between 6\val{6} and x\val{x}, so 6+x2=8\frac{\val{6} + \val{x}}{2} = \stat{8}, which gives x=10\val{x} = \val{10}. (Warning: Setting x=Q1=8\val{x} = \stat{Q_1} = \stat{8} directly treats x\val{x} as the only middle number of the left half instead of averaging the two middle numbers 6\val{6} and x\val{x}.) Since IQR=Q3−Q1=12\spread{\text{IQR}} = \stat{Q_3} - \stat{Q_1} = \spread{12} and Q1=8\stat{Q_1} = \stat{8}, Q3=8+12=20\stat{Q_3} = \stat{8} + \spread{12} = \stat{20}. (Warning: Using the IQR\spread{\text{IQR}} value 12\spread{12} as Q3\stat{Q_3} instead of adding Q1+IQR=20\stat{Q_1} + \spread{\text{IQR}} = \stat{20} sets y+242=12\frac{\val{y} + \val{24}}{2} = \miss{12} and gives a wrong answer of y=0\val{y} = \miss{0}.) In the right half, Q3\stat{Q_3} is halfway between y\val{y} and 24\val{24}, so y+242=20\frac{\val{y} + \val{24}}{2} = \stat{20}, which gives y=16\val{y} = \val{16}. So x=10\val{x} = \val{10} and y=16\val{y} = \val{16}.