StatisticsExploring One-Variable Data8 of 8
Exploring One-Variable Data · 8

Comparing Distributions

We often want to compare two groups of numbers side by side on the same scale, because a single average can make two very different groups look identical.

1

Back-to-Back Stemplots

Suppose two college statistics sections, the Morning Class and the Night Class, both have an exam average of 75\mean{75}. Looking at the 1111 individual scores in each class shows why we need a graph that puts both groups on one shared scale:

Morning Class:64,68,71,73,74,75,76,78,79,82,85Night Class:34,55,72,76,78,80,82,84,86,88,90\displaystyle \begin{aligned} \text{Morning Class:} &\quad \val{64, 68, 71, 73, 74, 75,} \\ &\quad \val{76, 78, 79, 82, 85} \\ \text{Night Class:} &\quad \val{34, 55, 72, 76, 78, 80,} \\ &\quad \val{82, 84, 86, 88, 90} \end{aligned}

A back-to-back stemplot puts the shared tens digits in a single center column and lists the ones digits outward to the right for one group and to the left for the other.

Back-to-Back Stemplots
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
64, 68, 71, 73, 74, 75, 76, 78, 79, 82, 85\htmlClass{lc-blue}{\text{64, 68, 71, 73, 74, 75, 76, 78, 79, 82, 85}}
average=75\htmlClass{lc-violet}{\text{average}} = \htmlClass{lc-violet}{75}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
34, 55, 72, 76, 78, 80, 82, 84, 86, 88, 90\htmlClass{lc-blue}{\text{34, 55, 72, 76, 78, 80, 82, 84, 86, 88, 90}}
average=75\htmlClass{lc-violet}{\text{average}} = \htmlClass{lc-violet}{75}
Text solution
Shared stems and outward leavesPut the tens digits (33 to 99) in the center column and list the ones digits in increasing order moving outward from the stem on both sides, with a key showing how to read from the center stem outward.
Night ClassStemMorning Class4345564  88  6  271  3  4  5  6  8  98  6  4  2  082  509Key: 2∣7∣1 means 72for Night and 71 for Morning\displaystyle \begin{gathered} \begin{array}{r|c|l} \scriptstyle \text{Night Class} & \scriptstyle \text{Stem} & \scriptstyle \text{Morning Class} \\ \hline \scriptstyle \val{4} & \scriptstyle 3 & \\ & \scriptstyle 4 & \\ \scriptstyle \val{5} & \scriptstyle 5 & \\ & \scriptstyle 6 & \scriptstyle \val{4\ \ 8} \\ \scriptstyle \val{8\ \ 6\ \ 2} & \scriptstyle 7 & \scriptstyle \val{1\ \ 3\ \ 4\ \ 5\ \ 6\ \ 8\ \ 9} \\ \scriptstyle \val{8\ \ 6\ \ 4\ \ 2\ \ 0} & \scriptstyle 8 & \scriptstyle \val{2\ \ 5} \\ \scriptstyle \val{0} & \scriptstyle 9 & \\ \hline \end{array} \\ \scriptstyle \text{Key: } \val{2} \mid 7 \mid \val{1} \text{ means } \val{72} \\ \scriptstyle \text{for Night and } \val{71} \text{ for Morning} \end{gathered}
Compare the shapes on the shared scaleReading outward from the stem shows that the Morning Class is clustered tightly in the 70s\val{70\text{s}}, while more than half of the Night Class scored 80\val{80} or higher, with two low scores (55\val{55} and 34\val{34}) pulling its mean down to match the Morning Class at 75\mean{75}.
Morning mean=82511=75,Night mean=82511=75\displaystyle \begin{aligned} \text{Morning } \mean{\text{mean}} &= \frac{825}{11} = \mean{75}, \\ \text{Night } \mean{\text{mean}} &= \frac{825}{11} = \mean{75} \end{aligned}
2

Parallel Boxplots and Comparing Distributions

When classes have hundreds of students or we want to compare three or more groups at once, a back-to-back stemplot runs out of room. Parallel boxplots draw the boxplots for two or more groups along the same number line so we can compare their centers, spreads, shapes, and outliers side by side.

Before drawing the whiskers, we check for outliers using the 1.5×IQR1.5 \times \spread{\text{IQR}} rule and stop each whisker at the furthest score inside the fences:

Lower fence=Q1−1.5×(Q3−Q1)⏟IQR,Upper fence=Q3+1.5×IQR\displaystyle \begin{aligned} \spread{\text{Lower fence}} &= \stat{Q_1} - 1.5 \times \underbrace{(\stat{Q_3} - \stat{Q_1})}_{\spread{\text{IQR}}}, \\ \spread{\text{Upper fence}} &= \stat{Q_3} + 1.5 \times \spread{\text{IQR}} \end{aligned}
Parallel Boxplots and Comparing Distributions
Night Class\htmlClass{lc-ink}{\text{Night Class}}
stem\htmlClass{lc-ink}{\text{stem}}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
3456789\htmlClass{lc-ink}{\def\arraystretch{1.0533}\begin{matrix}3\\4\\5\\6\\7\\8\\9\end{matrix}}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
48\htmlClass{lc-blue}{4\hspace{0.3264em}8}
862\htmlClass{lc-blue}{8\hspace{0.3264em}6\hspace{0.3264em}2}
1345689\htmlClass{lc-blue}{1\hspace{0.3264em}3\hspace{0.3264em}4\hspace{0.3264em}5\hspace{0.3264em}6\hspace{0.3264em}8\hspace{0.3264em}9}
86420\htmlClass{lc-blue}{8\hspace{0.3264em}6\hspace{0.3264em}4\hspace{0.3264em}2\hspace{0.3264em}0}
25\htmlClass{lc-blue}{2\hspace{0.3264em}5}
0\htmlClass{lc-blue}{0}
key\htmlClass{lc-ink}{\text{key}}
2∣7∣1\htmlClass{lc-ink}{\htmlClass{lc-blue}{2} \mid 7 \mid \htmlClass{lc-blue}{1}}
72\htmlClass{lc-blue}{72}
71\htmlClass{lc-blue}{71}
30\htmlClass{lc-ink}{30}
40\htmlClass{lc-ink}{40}
50\htmlClass{lc-ink}{50}
60\htmlClass{lc-ink}{60}
70\htmlClass{lc-ink}{70}
80\htmlClass{lc-ink}{80}
90\htmlClass{lc-ink}{90}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
64\htmlClass{lc-blue}{64}
71\htmlClass{lc-blue}{71}
75\htmlClass{lc-blue}{75}
79\htmlClass{lc-blue}{79}
85\htmlClass{lc-blue}{85}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
34\htmlClass{lc-blue}{34}
55\htmlClass{lc-blue}{55}
72\htmlClass{lc-blue}{72}
80\htmlClass{lc-blue}{80}
86\htmlClass{lc-blue}{86}
90\htmlClass{lc-blue}{90}
Text solution
Morning Class fences and whiskersWith Q1=71\stat{Q_1} = \stat{71} and Q3=79\stat{Q_3} = \stat{79}, every Morning Class score sits inside the fences at 59\spread{59} and 91\spread{91}, so there are no outliers and the whiskers reach straight to the minimum (64\stat{64}) and maximum (85\stat{85}).
IQR=79−71=8Lower fence=71−1.5(8)=59Upper fence=79+1.5(8)=91Morning summary:Min=64,  Q1=71,  Median=75,  Q3=79,  Max=85\displaystyle \begin{gathered} \begin{aligned} \spread{\text{IQR}} &= \stat{79} - \stat{71} = \spread{8} \\ \spread{\text{Lower fence}} &= \stat{71} - 1.5(\spread{8}) = \spread{59} \\ \spread{\text{Upper fence}} &= \stat{79} + 1.5(\spread{8}) = \spread{91} \end{aligned} \\ \text{Morning summary:} \\ \begin{aligned} \stat{\text{Min}} &= \stat{64},\ \ \\ \stat{Q_1} &= \stat{71},\ \ \\ \stat{\text{Median}} &= \stat{75},\ \ \\ \stat{Q_3} &= \stat{79},\ \ \\ \stat{\text{Max}} &= \stat{85} \end{aligned} \end{gathered}
Night Class fences and outlier whiskerWith Q1=72\stat{Q_1} = \stat{72} and Q3=86\stat{Q_3} = \stat{86}, the score of 34\val{34} falls below the lower fence at 51\spread{51}, so we mark 34\val{34} as an outlier and stop the left whisker at the lowest non-outlier score, 55\val{55}.
IQR=86−72=14Lower fence=72−1.5(14)=51Upper fence=86+1.5(14)=107Night summary:Min=34 (outlier),  left whisker=55,  Q1=72,  Median=80,  Q3=86,  Max=90\displaystyle \begin{gathered} \begin{aligned} \spread{\text{IQR}} &= \stat{86} - \stat{72} = \spread{14} \\ \spread{\text{Lower fence}} &= \stat{72} - 1.5(\spread{14}) = \spread{51} \\ \spread{\text{Upper fence}} &= \stat{86} + 1.5(\spread{14}) = \spread{107} \end{aligned} \\ \text{Night summary:} \\ \begin{aligned} \stat{\text{Min}} &= \stat{34}\text{ (outlier)},\ \ \\ \val{\text{left whisker}} &= \val{55},\ \ \\ \stat{Q_1} &= \stat{72},\ \ \\ \stat{\text{Median}} &= \stat{80},\ \ \\ \stat{Q_3} &= \stat{86},\ \ \\ \stat{\text{Max}} &= \stat{90} \end{aligned} \end{gathered}
Compare feature by featureRather than listing facts about each class in separate paragraphs, compare the two exam-score distributions directly across center, spread, shape, and outliers:
Center:Night median (80)>Morning median (75);top 50% of Night (≥80)outscored 75% of Morning (≤79)Spread:Morning is more consistent (IQR=8, range=21)than Night (IQR=14, range=56)Shape:Morning is roughly symmetric;Night is skewed left towardlower exam scoresOutliers:Morning has no outliers;Night has one low outlierat 34 points\displaystyle \begin{aligned} &\text{Center:} \\ &\quad \text{Night median } (\stat{80}) \\ &\quad {} > \text{Morning median } (\stat{75})\text{;} \\ &\quad \text{top } \share{50\%}\text{ of Night } (\ge \stat{80}) \\ &\quad \text{outscored } \share{75\%}\text{ of Morning } \\ &\quad (\le \stat{79}) \\ &\text{Spread:} \\ &\quad \text{Morning is more consistent } \\ &\quad (\spread{\text{IQR}} = \spread{8},\ \spread{\text{range}} = \spread{21}) \\ &\quad \text{than Night } \\ &\quad (\spread{\text{IQR}} = \spread{14},\ \spread{\text{range}} = \spread{56}) \\ &\text{Shape:} \\ &\quad \text{Morning is roughly symmetric;} \\ &\quad \text{Night is skewed left toward} \\ &\quad \text{lower exam scores} \\ &\text{Outliers:} \\ &\quad \text{Morning has no outliers;} \\ &\quad \text{Night has one low outlier} \\ &\quad \text{at } \val{34}\text{ points} \end{aligned}

See what happens when you stretch one section of a boxplot:

Every half-box, and every whisker together with any outliers past it, holds about 25% of the class, so a longer section means those scores are more spread out, not that more students are in it.
3

Comparing Distributions from a Summary Table

Often we are not given a graph or the raw scores at all, only a summary table that lists both pairs of center and spread. To choose between Mean and SD and Median and IQR, we first read the shape and check for outliers directly from the five-number summary in the table:

GroupMeanSDMinQ1MedianQ3MaxMorning Class75.06.06471757985Night Class75.016.63472808690\displaystyle \begin{array}{lccccccc} \text{Group} & \mean{\text{Mean}} & \spread{\text{SD}} & \stat{\text{Min}} & \stat{Q_1} & \stat{\text{Median}} & \stat{Q_3} & \stat{\text{Max}} \\ \hline \text{Morning Class} & \mean{75.0} & \spread{6.0} & \stat{64} & \stat{71} & \stat{75} & \stat{79} & \stat{85} \\ \text{Night Class} & \mean{75.0} & \spread{16.6} & \stat{34} & \stat{72} & \stat{80} & \stat{86} & \stat{90} \end{array}
Comparing Distributions from a Summary Table
MeanSDMinQ1MedianQ3Max\hspace{1.9029em}\mathclap{\htmlClass{lc-violet}{\text{Mean}}}\hspace{2.9648em}\mathclap{\htmlClass{lc-pink}{\text{SD}}}\hspace{2.6798em}\mathclap{\htmlClass{lc-blue}{\text{Min}}}\hspace{2.3548em}\mathclap{\htmlClass{lc-blue}{Q_1}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{\text{Median}}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{Q_3}}\hspace{2.4498em}\mathclap{\htmlClass{lc-blue}{\text{Max}}}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
75.06.06471757985\hspace{1.9029em}\mathclap{\htmlClass{lc-violet}{75.0}}\hspace{2.9648em}\mathclap{\htmlClass{lc-pink}{6.0}}\hspace{2.6798em}\mathclap{\htmlClass{lc-blue}{64}}\hspace{2.3548em}\mathclap{\htmlClass{lc-blue}{71}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{75}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{79}}\hspace{2.4498em}\mathclap{\htmlClass{lc-blue}{85}}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
75.016.63472808690\hspace{1.9029em}\mathclap{\htmlClass{lc-violet}{75.0}}\hspace{2.9648em}\mathclap{\htmlClass{lc-pink}{16.6}}\hspace{2.6798em}\mathclap{\htmlClass{lc-blue}{34}}\hspace{2.3548em}\mathclap{\htmlClass{lc-blue}{72}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{80}}\hspace{3.0998em}\mathclap{\htmlClass{lc-blue}{86}}\hspace{2.4498em}\mathclap{\htmlClass{lc-blue}{90}}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
30\htmlClass{lc-ink}{30}
40\htmlClass{lc-ink}{40}
50\htmlClass{lc-ink}{50}
60\htmlClass{lc-ink}{60}
70\htmlClass{lc-ink}{70}
80\htmlClass{lc-ink}{80}
90\htmlClass{lc-ink}{90}
Text solution
Check symmetry and fences for the Morning ClassThe Morning Class mean (75.0\mean{75.0}) equals its median (75\stat{75}), its quartiles and extremes sit at nearly equal distances on both sides of the median, and its lowest and highest scores lie well inside the fences, showing a symmetric distribution with no outliers.
Distances from median (75):Q1=75−4,Q3=75+4,Min=75−11,Max=75+10Fences:71−1.5(8)=59≤scores≤79+1.5(8)=91\displaystyle \begin{gathered} \text{Distances from median } (\stat{75})\text{:} \\ \begin{aligned} \stat{Q_1} &= \stat{75} - \spread{4},\quad \\ \stat{Q_3} &= \stat{75} + \spread{4},\quad \\ \stat{\text{Min}} &= \stat{75} - \spread{11},\quad \\ \stat{\text{Max}} &= \stat{75} + \spread{10} \end{aligned} \\ \text{Fences:} \\ \begin{aligned} \stat{71} - 1.5(\spread{8}) &= \spread{59} \le \val{\text{scores}} \\ &\le \stat{79} + 1.5(\spread{8}) = \spread{91} \end{aligned} \end{gathered}
Check skewness and fences for the Night ClassThe Night Class mean (75.0\mean{75.0}) is pulled 5\spread{5} points below its median (80\stat{80}) because the minimum (34\stat{34}) lies 46\spread{46} points below the median and outside the lower fence at 51\spread{51}, showing a left-skewed distribution with a low outlier.
Distances from median (80):Min=80−46=34,Max=80+10=90Lower fence:72−1.5(86−72)=51  ⟹  34<51 (low outlier)\displaystyle \begin{gathered} \text{Distances from median } (\stat{80})\text{:} \\ \begin{aligned} \stat{\text{Min}} &= \stat{80} - \spread{46} = \stat{34},\quad \\ \stat{\text{Max}} &= \stat{80} + \spread{10} = \stat{90} \end{aligned} \\ \text{Lower fence:} \\ \stat{72} - 1.5(\stat{86} - \stat{72}) = \spread{51} \\ \implies \val{34} < \spread{51}\text{ (low outlier)} \end{gathered}
Use Median and IQR for both groupsBecause the Night Class outlier at 34\val{34} pulls its mean down from 79.1\mean{79.1} to 75.0\mean{75.0} and pushes its standard deviation up to 16.6\spread{16.6}, we compare the two classes using the median and IQR for both groups.
Center (Medians): 80>75,Spread (IQRs): 14>8\displaystyle \begin{aligned} \text{Center (Medians): } &\stat{80} > \stat{75}, \\ \text{Spread (IQRs): } &\spread{14} > \spread{8} \end{aligned}

Watch how dragging a single score down into an outlier changes the mean and SD while leaving the median and IQR alone:

A single low score in the Night Class pulls its mean down to match the Morning Class and increases its standard deviation, while its median and IQR stay the same.
4

Choosing Between Stemplots and Boxplots

Parallel boxplots cleanly compare large datasets or three or more groups at once, but summarizing a distribution with just five numbers hides what happens inside the box. When comparing two small groups, we need to know when a boxplot is enough and when we need a back-to-back stemplot to see the individual scores.

Choosing Between Stemplots and Boxplots
Back-to-Back Stemplot\htmlClass{lc-ink}{\text{Back-to-Back Stemplot}}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
stem\htmlClass{lc-ink}{\text{stem}}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
3456789\htmlClass{lc-ink}{\def\arraystretch{0.9642}\begin{matrix}3\\4\\5\\6\\7\\8\\9\end{matrix}}
4\htmlClass{lc-blue}{4}
5\htmlClass{lc-blue}{5}
48\htmlClass{lc-blue}{4\hspace{0.3264em}8}
862\htmlClass{lc-blue}{8\hspace{0.3264em}6\hspace{0.3264em}2}
1345689\htmlClass{lc-blue}{1\hspace{0.3264em}3\hspace{0.3264em}4\hspace{0.3264em}5\hspace{0.3264em}6\hspace{0.3264em}8\hspace{0.3264em}9}
86420\htmlClass{lc-blue}{8\hspace{0.3264em}6\hspace{0.3264em}4\hspace{0.3264em}2\hspace{0.3264em}0}
25\htmlClass{lc-blue}{2\hspace{0.3264em}5}
0\htmlClass{lc-blue}{0}
Parallel Boxplots\htmlClass{lc-ink}{\text{Parallel Boxplots}}
Morning Class\htmlClass{lc-ink}{\text{Morning Class}}
Night Class\htmlClass{lc-ink}{\text{Night Class}}
30\htmlClass{lc-ink}{30}
40\htmlClass{lc-ink}{40}
50\htmlClass{lc-ink}{50}
60\htmlClass{lc-ink}{60}
70\htmlClass{lc-ink}{70}
80\htmlClass{lc-ink}{80}
90\htmlClass{lc-ink}{90}
Text solution
Two peaks visible in the stemplotIn a third class where half the students scored in the 60s\val{60\text{s}} and the other half scored in the 80s\val{80\text{s}}, the stemplot immediately shows a bimodal distribution (two peaks) with an almost empty gap in the 70s\val{70\text{s}}.
60  1  2  2  37587  8  8  9  9\displaystyle \begin{array}{c|l} 6 & \val{0\ \ 1\ \ 2\ \ 2\ \ 3} \\ 7 & \val{5} \\ 8 & \val{7\ \ 8\ \ 8\ \ 9\ \ 9} \end{array}
Central gap hidden by the boxplotBecause the boxplot only plots the five-number summary, it draws one solid, symmetric-looking box from Q1=62\stat{Q_1} = \stat{62} to Q3=88\stat{Q_3} = \stat{88} with the median at 75\stat{75}, hiding the split into two clusters.
Min\displaystyle \stat{\text{Min}} =60,Q1\displaystyle = \stat{60}, \quad \stat{Q_1} =62,Median\displaystyle = \stat{62}, \quad \stat{\text{Median}} =75,Q3\displaystyle = \stat{75}, \quad \stat{Q_3} =88,Max\displaystyle = \stat{88}, \quad \stat{\text{Max}} =89\displaystyle = \stat{89}

See how the scores inside the box can split into two clusters without changing the boxplot at all:

Moving values inside the box can split the stemplot from one peak into two without changing the boxplot at all.

Key concepts

When comparing distributions, start by picking the display that fits the size and number of groups:

Back-to-back stemplot

(two small groups when individual scores and clusters inside the data matter, such as spotting a bimodal gap between the 60s\val{60\text{s}} and 80s\val{80\text{s}}): read leaves outward from the center stem on both sides (2∣7∣1\val{2} \mid 7 \mid \val{1} means 72\val{72} on the left and 71\val{71} on the right). Do not use a stemplot for hundreds of scores or three or more groups.

Parallel boxplots

(large datasets, three or more groups, or quick comparisons of medians and quartiles): every half-box, and every whisker together with any outliers past it, holds about 25%\share{25\%} of the group, so a longer section means more spread, not more people. Check the fences first and stop each whisker at the furthest non-outlier score:

Lower fence=Q1−1.5(IQR),Upper fence=Q3+1.5(IQR),IQR=Q3−Q1\displaystyle \begin{aligned} \spread{\text{Lower fence}} &= \stat{Q_1} - 1.5(\spread{\text{IQR}}), \\ \spread{\text{Upper fence}} &= \stat{Q_3} + 1.5(\spread{\text{IQR}}), \\ \spread{\text{IQR}} &= \stat{Q_3} - \stat{Q_1} \end{aligned}

Whether you are reading a graph or a summary table, always compare Center, Spread, Shape, and Outliers directly in context using words like higher, lower, or more consistent, rather than describing each group in a separate list. In a summary table, check symmetry by comparing the mean to the median and checking the distances from the median to Q1,Q3,Min,\stat{Q_1}, \stat{Q_3}, \stat{\text{Min}}, and Max\stat{\text{Max}}. Use Mean and SD for both groups only when both are roughly symmetric with no outliers. If even one group is skewed or has an outlier (such as the Night Class score of 34<51\val{34} < \spread{51} pulling its mean down to 75.0\mean{75.0}), do not use the mean; compare Median and IQR for both groups instead.

5

Practice

1

The back-to-back stemplot below shows quiz scores (out of 100100) for 99 students in Section A and 99 students in Section B.

Section AStemSection B856  3  164  79  7  4  272  5  5  8  9083  6Key: 1∣6∣4 means 61for Section A and 64 for Section B.\displaystyle \begin{gathered} \begin{array}{r|c|l} \scriptstyle \text{Section A} & \scriptstyle \text{Stem} & \scriptstyle \text{Section B} \\ \hline \scriptstyle \val{8} & \scriptstyle 5 & \\ \scriptstyle \val{6\ \ 3\ \ 1} & \scriptstyle 6 & \scriptstyle \val{4\ \ 7} \\ \scriptstyle \val{9\ \ 7\ \ 4\ \ 2} & \scriptstyle 7 & \scriptstyle \val{2\ \ 5\ \ 5\ \ 8\ \ 9} \\ \scriptstyle \val{0} & \scriptstyle 8 & \scriptstyle \val{3\ \ 6} \\ \hline \end{array} \\ \scriptstyle \text{Key: } \val{1} \mid 6 \mid \val{4} \text{ means } \val{61} \\ \scriptstyle \text{for Section A and } \val{64} \text{ for Section B.} \end{gathered}

(a) What are the lowest score, highest score, and range for Section A?

(b) Find the median score for each section. Which section had the higher typical score?

On the left side of the stemplot, read each score starting from the center stem and moving outward to the left, so the smallest ones digit in each row sits closest to the stem.

(a) Reading outward from the center stem to the left, Section A's scores in order are 58,61,63,66,72,74,77,79,\val{58, 61, 63, 66, 72, 74, 77, 79}, and 80\val{80}. (Be careful not to read left-to-right across the bar, which turns 8∣5\val{8} \mid 5 into 85\miss{85} and 0∣8\val{0} \mid 8 into 08\miss{08}.) The lowest score is 58\val{58}, the highest score is 80\val{80}, and the range is 80−58=22 points\val{80} - \val{58} = \spread{22}\text{ points}.
(b) With 99 students in each section, the median is the 5th5\text{th} score in order from smallest to largest. Counting outward from the stem on row 77 (not inward from the left edge, which would pick 79\miss{79} instead of 72\stat{72}), Section A's 5th5\text{th} score is 72 points\stat{72}\text{ points}. Section B's ordered scores are 64,67,72,75,75,78,79,83,86\val{64, 67, 72, 75, 75, 78, 79, 83, 86}, so its 5th5\text{th} score is 75 points\stat{75}\text{ points}. Section B had the higher typical quiz score (75 points\stat{75}\text{ points} vs. 72 points\stat{72}\text{ points}).
2

Delivery times (in minutes) were recorded for 1111 deliveries on each of two routes:

Route A: 22,25,27,28,29,30,\val{22, 25, 27, 28, 29, 30,} 31,32,33,35,38\val{31, 32, 33, 35, 38}

Route B: 18,20,21,22,23,24,\val{18, 20, 21, 22, 23, 24,} 26,28,30,33,52\val{26, 28, 30, 33, 52}

(a) Find the five-number summary for each route, use the 1.5×IQR1.5 \times \spread{\text{IQR}} rule to check for outliers, and state the exact values where the left and right whiskers end on each boxplot.

(b) Write a comparison of the two delivery-time distributions in context.

When a group has an outlier, remember where the whisker stops. It does not stop at the fence value itself.

(a) For the 1111 ordered deliveries on Route A, the median is the 6th6\text{th} value (30\stat{30}), Q1\stat{Q_1} is the 3rd3\text{rd} value (27\stat{27}), and Q3\stat{Q_3} is the 9th9\text{th} value (33\stat{33}):
Route A:Min\displaystyle \text{Route A:} \quad \stat{\text{Min}} =22,Q1\displaystyle = \stat{22}, \quad \stat{Q_1} =27,Median\displaystyle = \stat{27}, \quad \stat{\text{Median}} =30,Q3\displaystyle = \stat{30}, \quad \stat{Q_3} =33,Max\displaystyle = \stat{33}, \quad \stat{\text{Max}} =38,IQR\displaystyle = \stat{38}, \quad \spread{\text{IQR}} =33−27\displaystyle = \stat{33} - \stat{27} =6\displaystyle = \spread{6}
With 1.5×6=91.5 \times \spread{6} = \spread{9}, the fences are 27−9=18\stat{27} - \spread{9} = \spread{18} and 33+9=42\stat{33} + \spread{9} = \spread{42}. Route A has no outliers, so its whiskers end at 22\val{22} and 38\val{38}.
For Route B:
Route B:Min\displaystyle \text{Route B:} \quad \stat{\text{Min}} =18,Q1\displaystyle = \stat{18}, \quad \stat{Q_1} =21,Median\displaystyle = \stat{21}, \quad \stat{\text{Median}} =24,Q3\displaystyle = \stat{24}, \quad \stat{Q_3} =30,Max\displaystyle = \stat{30}, \quad \stat{\text{Max}} =52,IQR\displaystyle = \stat{52}, \quad \spread{\text{IQR}} =30−21\displaystyle = \stat{30} - \stat{21} =9\displaystyle = \spread{9}
With 1.5×9=13.51.5 \times \spread{9} = \spread{13.5}, the fences are 21−13.5=7.5\stat{21} - \spread{13.5} = \spread{7.5} and 30+13.5=43.5\stat{30} + \spread{13.5} = \spread{43.5}. Because 52>43.5\val{52} > \spread{43.5}, 52\val{52} is a high outlier. Route B's left whisker ends at 18\val{18} and its right whisker ends at 33\val{33}, the highest non-outlier delivery time in the dataset (do not stop the whisker at the fence 43.5\spread{43.5} or extend it to the outlier 52\val{52}).
(b) (Avoid writing two separate lists for Route A and Route B; compare each feature directly.) Center: Route B had a faster typical delivery time (median 24 minutes\stat{24}\text{ minutes}) than Route A (median 30 minutes\stat{30}\text{ minutes}). Spread: Route A was more consistent, with a smaller IQR of 6 minutes\spread{6}\text{ minutes} and range of 16 minutes\spread{16}\text{ minutes}, compared to Route B's IQR of 9 minutes\spread{9}\text{ minutes} and range of 34 minutes\spread{34}\text{ minutes}. Shape: Route A is roughly symmetric, whereas Route B is skewed right toward longer delivery times. Outliers: Route A has no outliers, while Route B has one high outlier at 52 minutes\val{52}\text{ minutes}.
3

Two smartphone models (4040 phones of each model) were tested for battery life, in hours. Neither group had outliers, and their parallel boxplots had the following five-number summaries:

Model X: Min=6, Q1=10, Median=12, Q3=14, Max=16\stat{\text{Min}} = \stat{6},\ \stat{Q_1} = \stat{10},\ \stat{\text{Median}} = \stat{12},\ \stat{Q_3} = \stat{14},\ \stat{\text{Max}} = \stat{16}

Model Y: Min=4, Q1=7, Median=9, Q3=12, Max=13\stat{\text{Min}} = \stat{4},\ \stat{Q_1} = \stat{7},\ \stat{\text{Median}} = \stat{9},\ \stat{Q_3} = \stat{12},\ \stat{\text{Max}} = \stat{13}

(a) A student looks at the boxplot for Model Y and says, "Three times as many Model Y phones lasted between 4\stat{4} and 7 hours\stat{7}\text{ hours} as lasted between 12\stat{12} and 13 hours\stat{13}\text{ hours}, because the left whisker is 3 hours\spread{3}\text{ hours} long and the right whisker is only 1 hour\spread{1}\text{ hour} long." Explain why this reasoning is incorrect and what the whisker lengths actually mean.

(b) What percentage of Model X phones lasted longer than at least 75%\share{75\%} of Model Y phones? Explain how you can tell directly from the parallel boxplots.

For (b), find the cutoff hour mark where 75%\share{75\%} of Model Y phones fall below it, and see which part of Model X's boxplot sits at that exact number.

(a) Every section of a boxplot holds the exact same share of the group: 25%\share{25\%}, or 10 phones\share{10}\text{ phones} in each whisker (not 30 phones\miss{30}\text{ phones} on the left and 10 phones\share{10}\text{ phones} on the right). The longer left whisker (4\stat{4} to 7 hours\stat{7}\text{ hours}) means the bottom quarter of Model Y phones had more spread-out battery lives, while the short right whisker (12\stat{12} to 13 hours\stat{13}\text{ hours}) means the top quarter was packed tightly together.
(b) The 75%\share{75\%} mark for Model Y is its third quartile, Q3=12 hours\stat{Q_3} = \stat{12}\text{ hours}. On Model X's boxplot, 12 hours\stat{12}\text{ hours} is the median (do not confuse the two marks and answer 75%\miss{75\%}). Because the top half of Model X sits at or above 12 hours\stat{12}\text{ hours}, 50%\share{50\%} of Model X phones lasted longer than at least 75%\share{75\%} of Model Y phones.
4

A bank recorded customer wait times (in minutes) at two branches and produced the following summary table (no graph is given):

Branch North: Mean=15.0, SD=3.1, Min=9, Q1=13, Median=15, Q3=17, Max=21\mean{\text{Mean}} = \mean{15.0},\ \spread{\text{SD}} = \spread{3.1},\ \stat{\text{Min}} = \stat{9},\ \stat{Q_1} = \stat{13},\ \stat{\text{Median}} = \stat{15},\ \stat{Q_3} = \stat{17},\ \stat{\text{Max}} = \stat{21}

Branch South: Mean=15.0, SD=9.4, Min=6, Q1=8, Median=11, Q3=14, Max=42\mean{\text{Mean}} = \mean{15.0},\ \spread{\text{SD}} = \spread{9.4},\ \stat{\text{Min}} = \stat{6},\ \stat{Q_1} = \stat{8},\ \stat{\text{Median}} = \stat{11},\ \stat{Q_3} = \stat{14},\ \stat{\text{Max}} = \stat{42}

(a) Using only the numbers in the table, determine the shape and check for outliers at each branch.

(b) Which pair of measures should you use to compare the center and spread of the two branches, and why would comparing their means be misleading? State the comparison using the appropriate pair.

Compare the distance from the median to the minimum and maximum at each branch, and compute the upper fence Q3+1.5(IQR)\stat{Q_3} + 1.5(\spread{\text{IQR}}) for Branch South.

(a) Branch North is symmetric with no outliers: its mean (15.0\mean{15.0}) equals its median (15\stat{15}), Q1\stat{Q_1} (13\stat{13}) and Q3\stat{Q_3} (17\stat{17}) are both 2 minutes\spread{2}\text{ minutes} from the median, Min\stat{\text{Min}} (9\stat{9}) and Max\stat{\text{Max}} (21\stat{21}) are both 6 minutes\spread{6}\text{ minutes} from the median, and all values lie inside the fences of 13−1.5(4)=7\stat{13} - 1.5(\spread{4}) = \spread{7} and 17+1.5(4)=23\stat{17} + 1.5(\spread{4}) = \spread{23}. Branch South is skewed right with at least one high outlier: its mean (15.0\mean{15.0}) is pulled 4 minutes\spread{4}\text{ minutes} above its median (11\stat{11}), its Max\stat{\text{Max}} (42\stat{42}) is 31 minutes\spread{31}\text{ minutes} above the median while its Min\stat{\text{Min}} (6\stat{6}) is only 5 minutes\spread{5}\text{ minutes} below, and 42\stat{42} is above the upper fence of 14+1.5(6)=23\stat{14} + 1.5(\spread{6}) = \spread{23}.
(b) You must use the Median and IQR for both branches because Branch South is skewed right with a high outlier (do not mix measures by using the mean of 15.0\mean{15.0} for North and the median of 11\stat{11} for South, and do not compare the equal means of 15.0\mean{15.0} vs. 15.0\mean{15.0}). Comparing the means makes the two branches look identical only because Branch South's high outlier pulled its mean up to 15.0\mean{15.0} and pushed its SD up to 9.4\spread{9.4}. Comparing medians and IQRs shows that Branch South actually had a shorter typical wait time (median 11 minutes\stat{11}\text{ minutes} vs. 15 minutes\stat{15}\text{ minutes} at Branch North) with a slightly wider spread in the middle 50%\share{50\%} (IQR\spread{\text{IQR}} of 6 minutes\spread{6}\text{ minutes} vs. 4 minutes\spread{4}\text{ minutes}).
5

(a) Which display, a back-to-back stemplot or parallel boxplots, should you choose first to compare exam scores across four lecture sections of 200200 students each, and second to compare two seminars of 1111 students each when you want to see every individual score?

(b) Two 1111-student seminars have the following exam scores:

Seminar A: 60,61,62,63,64,75,\val{60, 61, 62, 63, 64, 75,} 86,87,88,89,90\val{86, 87, 88, 89, 90}

Seminar B: 60,62,62,73,74,75,\val{60, 62, 62, 73, 74, 75,} 76,77,88,88,90\val{76, 77, 88, 88, 90}

Show that both seminars produce the exact same boxplot, and explain what difference between the two distributions is visible in a back-to-back stemplot but hidden by the parallel boxplots.

Find the 1st,3rd,6th,9th,1\text{st}, 3\text{rd}, 6\text{th}, 9\text{th}, and 11th11\text{th} scores in each seminar to check their five-number summaries, then look at how many students scored in the 70s\val{70\text{s}} in each group.

(a) Use parallel boxplots for the four 200200-student lectures because boxplots handle large datasets cleanly and can compare more than two groups on one scale (a back-to-back stemplot only has two sides and would be too crowded with 200200 leaves per group). Use a back-to-back stemplot for the two 1111-student seminars because there are only two small groups and the stemplot keeps every individual score and cluster inside the data visible.
(b) Both seminars have the exact same five-number summary:
Min\displaystyle \stat{\text{Min}} =60,Q1\displaystyle = \stat{60}, \quad \stat{Q_1} =62 (3rd score),Median\displaystyle = \stat{62}\ (3\text{rd score}), \quad \stat{\text{Median}} =75 (6th score),Q3\displaystyle = \stat{75}\ (6\text{th score}), \quad \stat{Q_3} =88 (9th score),Max\displaystyle = \stat{88}\ (9\text{th score}), \quad \stat{\text{Max}} =90\displaystyle = \stat{90}
With IQR=88−62=26\spread{\text{IQR}} = \stat{88} - \stat{62} = \spread{26} and fences at 62−39=23\stat{62} - \spread{39} = \spread{23} and 88+39=127\stat{88} + \spread{39} = \spread{127}, neither group has outliers, so both seminars produce identical, symmetric-looking boxplots. (Do not conclude from the identical boxplots that the two score distributions are the same.) In a back-to-back stemplot, Seminar A is clearly bimodal: it is split into a cluster of five scores in the 60s\val{60\text{s}} and five scores in the 80s\val{80\text{s}} and 90s\val{90\text{s}} with only a single student at 75\val{75}, whereas Seminar B has its main cluster of five students right in the 70s\val{70\text{s}}, a difference completely hidden inside the box from 62\stat{62} to 88\stat{88}.