StatisticsConfidence Intervals6 of 6
Confidence Intervals · 6

Bootstrap Confidence Intervals

We need a confidence interval to show how much a sample estimate might vary, and in the real world we have only a single sample to build it from.

1

Why We Resample with Replacement

We want to find how much our sample average of xˉ=28 minutes\stat{\bar{x}} = \stat{28}\text{ minutes} (from a random sample of 100100 city commuters) would vary from sample to sample, without going back to the city to collect new samples and without relying on a formula.

Normally, if we could take 10,00010{,}000 separate samples of 100100 people from the city, the standard deviation of those 10,00010{,}000 sample averages, called the standard error, would tell us how much a sample average typically varies. When we have only one sample of size nn with sample standard deviation s\spread{s}, the traditional tt-interval estimates that spread using a formula:

estimated standard error\displaystyle \text{estimated standard error} =sn\displaystyle = \spread{\frac{s}{\sqrt{n}}}

Instead of using a formula, we can use our single random sample as a miniature stand-in for the city and draw repeated samples straight from it.

Why We Resample with Replacement
1,000,000 people\text{1,000,000 people}
μ=?\htmlClass{lc-violet}{\mu} = {?}
median=?\htmlClass{lc-violet}{\text{median}} = {?}
n=100n = 100
xˉ=28 min\htmlClass{lc-blue}{\bar{x}} = \htmlClass{lc-blue}{28}\text{ min}
confidence interval=\text{confidence interval} =
estimate±margin of error\htmlClass{lc-blue}{\text{estimate}} \pm \htmlClass{lc-pink}{\text{margin of error}}
2

Building the Bootstrap Distribution

We want to measure how much the sample average of xˉ=30 minutes\stat{\bar{x}} = \stat{30}\text{ minutes} varies for a small sample of 55 commute times, [10,20,20,30,70][10, 20, 20, 30, 70], by generating thousands of bootstrap resamples.

Building the Bootstrap Distribution
μ=?\htmlClass{lc-violet}{\mu} = {?}
1010
2020
2020
3030
7070
xˉ=30 min\htmlClass{lc-blue}{\bar{x}} = \htmlClass{lc-blue}{30}\text{ min}
Resample #1\text{Resample \#1}
00
1010
2020
3030
4040
5050
6060
7070
8080
min\text{min}
Text solution
Original sample averageAdd the 55 commute times in the original sample [10,20,20,30,70][10, 20, 20, 30, 70] and divide by 55 to find our starting estimate.
xˉ\displaystyle \stat{\bar{x}} =10+20+20+30+705\displaystyle = \frac{10 + 20 + 20 + 30 + 70}{5} =1505\displaystyle = \frac{150}{5} =30 minutes\displaystyle = \stat{30}\text{ minutes}
Draw one bootstrap sample with replacementPick 55 numbers at random from the original 55 numbers, putting each number back after it is picked so values can repeat or be missed, and average them to plot one dot.
[20,10,20,30,20]⏟Resample #1 (5 draws with replacement)  ⟹  bootstrap average=20+10+20+30+205=1005=20 minutes\displaystyle \begin{aligned} &\underbrace{[20, 10, 20, 30, 20]}_{\text{Resample \#1 (5 draws with replacement)}} \\ &\implies \text{bootstrap average} \\ &\qquad = \frac{20 + 10 + 20 + 30 + 20}{5} \\ &\qquad = \frac{100}{5} = \stat{20}\text{ minutes} \end{aligned}
Repeat to build the bootstrap distributionDrawing more 55-number resamples shows how picking the 7070-minute commute pulls the average up, and repeating this 10,00010{,}000 times on a computer builds a distribution of 10,00010{,}000 bootstrap averages centered at the original sample average of 30 minutes\stat{30}\text{ minutes}.
Resample #2: [30,70,20,70,10]  ⟹  bootstrap average=30+70+20+70+105=2005=40 minutesResample #3: [10,20,30,20,70]  ⟹  bootstrap average=10+20+30+20+705=1505=30 minutes\displaystyle \begin{aligned} &\text{Resample \#2: } [30, 70, 20, 70, 10] \\ &\implies \text{bootstrap average} \\ &\qquad = \frac{30 + 70 + 20 + 70 + 10}{5} \\ &\qquad = \frac{200}{5} = \stat{40}\text{ minutes} \\[10pt] &\text{Resample \#3: } [10, 20, 30, 20, 70] \\ &\implies \text{bootstrap average} \\ &\qquad = \frac{10 + 20 + 30 + 20 + 70}{5} \\ &\qquad = \frac{150}{5} = \stat{30}\text{ minutes} \end{aligned}

Wherever the original sample happens to land relative to the true city average, the entire 10,00010{,}000-dot bootstrap distribution stays centered right on the sample's own average while keeping the exact same spread.

Wherever the sample lands, the bootstrap distribution moves right along with it, keeping the same spread and never shifting toward the true city average.
3

Bootstrap Percentile and Standard Error Intervals

We want to use the spread of our 10,00010{,}000 bootstrap averages (centered at 30 minutes\stat{30}\text{ minutes}) to build a 95%\share{95\%} confidence interval for the true city average commute time.

One way is to count the middle 95%\share{95\%} of the dots directly. A second way uses the standard 95%\share{95\%} confidence interval formula, which starts at the sample estimate and goes out two standard errors on either side:

95% confidence interval\displaystyle \share{\text{95\%}}\text{ confidence interval} =estimate±2×standard error⏟margin of error\displaystyle = \stat{\text{estimate}} \pm \underbrace{\spread{2 \times \text{standard error}}}_{\text{margin of error}}
Bootstrap Percentile and Standard Error Intervals
95% confidence interval=?\htmlClass{lc-green}{95\%}\text{ confidence interval} = {?}
1010
2020
2020
3030
7070
xˉ=30 min\htmlClass{lc-blue}{\bar{x}} = \htmlClass{lc-blue}{30}\text{ min}
bootstrap distribution\htmlClass{lc-blue}{\text{bootstrap distribution}}
10,000 resamples\text{10,000 resamples}
00
1010
2020
3030
4040
5050
6060
7070
8080
min\text{min}
10,000\text{10,000}
bootstrap\text{bootstrap}
averages\text{averages}
250250
250250
95%\htmlClass{lc-green}{95\%}
1010
2020
3030
4040
5050
6060
7070
min\text{min}
14\htmlClass{lc-pink}{14}
20\htmlClass{lc-pink}{20}
16\htmlClass{lc-blue}{16}
50\htmlClass{lc-blue}{50}
percentile\text{percentile}
18.8\htmlClass{lc-pink}{18.8}
18.8\htmlClass{lc-pink}{18.8}
11.2\htmlClass{lc-blue}{11.2}
48.8\htmlClass{lc-blue}{48.8}
standard\text{standard}
error\text{error}
Text solution
Chop 2.5%\share{2.5\%} off each tail for the percentile intervalTo keep the middle 95%\share{95\%} of the 10,00010{,}000 sorted bootstrap averages, split the outside 5%\share{5\%} equally into 2.5%\share{2.5\%} on the left and 2.5%\share{2.5\%} on the right to find how many dots to count in from each end.
dots in each tail\displaystyle \text{dots in each tail} =0.025⏟2.5% per tail×10,000\displaystyle = \underbrace{\share{0.025}}_{\text{2.5\% per tail}} \times 10{,}000 =250 dots\displaystyle = 250\text{ dots}
Read the 95% bootstrap percentile intervalCounting in 250250 dots from the left end lands at 16 minutes\stat{16}\text{ minutes} and counting in 250250 dots from the right end lands at 50 minutes\stat{50}\text{ minutes}, giving an interval that stretches farther above 30 minutes\stat{30}\text{ minutes} than below it because resamples with multiple 7070s pull the right tail up.
95% bootstrap percentile interval\displaystyle \share{\text{95\%}}\text{ bootstrap percentile interval} =[16⏟14 below 30, 50⏟20 above 30] minutes\displaystyle = [\underbrace{\stat{16}}_{\spread{14}\text{ below }\stat{30}},\, \underbrace{\stat{50}}_{\spread{20}\text{ above }\stat{30}}]\text{ minutes}
Plug the bootstrap standard error into estimate±2SE\stat{\text{estimate}} \pm \spread{2\text{SE}}The standard deviation of all 10,00010{,}000 bootstrap averages is about 9.4 minutes\spread{9.4}\text{ minutes}, which is our bootstrap standard error, so we go 22 standard errors on either side of the original sample average of 30 minutes\stat{30}\text{ minutes}.
95% bootstrap standarderror interval\displaystyle \share{\text{95\%}}\text{ bootstrap standard} \\ \text{error interval} =30±2(9.4⏟bootstrap SE)\displaystyle = \stat{30} \pm \spread{2(\underbrace{9.4}_{\text{bootstrap SE}})} =30±18.8\displaystyle = \stat{30} \pm \spread{18.8} =[11.2, 48.8] minutes\displaystyle = [\stat{11.2},\, \stat{48.8}]\text{ minutes}

When the highest commute time sits close to the other four values, the bootstrap distribution is symmetric and the two intervals nearly match. When that high value sits far to the right, it stretches the upper tail so the percentile interval becomes lopsided, while the standard error interval stays symmetric around the sample average.

When an outlier skews the bootstrap distribution, the percentile interval stretches with the long tail while the standard error interval stays symmetric around the sample average.
4

Bootstrapping the Median and Other Statistics

Because the 7070-minute outlier skews the average commute time, we now want a 95%\share{95\%} confidence interval for the population median (the middle number). Here the tt-interval cannot help because sn\spread{\frac{s}{\sqrt{n}}} only estimates the standard error of a mean.

Bootstrapping the Median and Other Statistics
95% confidence interval for the median?\htmlClass{lc-green}{95\%}\text{ confidence interval for the median?}
1010
2020
2020
3030
7070
mean    xˉ=30SE=snmedian=20SE=?\begin{alignedat}{2} \text{mean}\;\; \htmlClass{lc-blue}{\bar{x}} &= \htmlClass{lc-blue}{30} &\qquad \htmlClass{lc-pink}{\text{SE}} &= \htmlClass{lc-pink}{\frac{s}{\sqrt{n}}} \\[6pt] \text{median} &= \htmlClass{lc-blue}{20} & \htmlClass{lc-pink}{\text{SE}} &= {?} \end{alignedat}
Text solution
Original sample medianPut the 55 original commute times in order from smallest to largest and take the middle (3rd) number.
[10,20,20⏟original median,30,70]  ⟹  sample median\displaystyle [10, 20, \underbrace{\stat{20}}_{\text{original median}}, 30, 70] \implies \text{sample median} =20 minutes\displaystyle = \stat{20}\text{ minutes}
Sort each resample to find its bootstrap medianPut the 55 numbers in each resample in order from smallest to largest before picking the middle number, then plot that median on the number line.
Resample #1: [20,10,20,30,20]→sort[10,20,20⏟median,20,30]  ⟹  bootstrap median=20 minutesResample #2: [30,70,20,70,10]→sort[10,20,30⏟median,70,70]  ⟹  bootstrap median=30 minutes\displaystyle \begin{aligned} &\text{Resample \#1: } [20, 10, 20, 30, 20] \\ &\qquad \xrightarrow{\text{sort}} [10, 20, \underbrace{\stat{20}}_{\text{median}}, 20, 30] \\ &\implies \text{bootstrap median} \\ &\qquad = \stat{20}\text{ minutes} \\[10pt] &\text{Resample \#2: } [30, 70, 20, 70, 10] \\ &\qquad \xrightarrow{\text{sort}} [10, 20, \underbrace{\stat{30}}_{\text{median}}, 70, 70] \\ &\implies \text{bootstrap median} \\ &\qquad = \stat{30}\text{ minutes} \end{aligned}
Build the interval from 10,00010{,}000 bootstrap mediansRepeat 10,00010{,}000 times and either chop 2.5%\share{2.5\%} of the median dots off each tail or take the standard deviation of the 10,00010{,}000 medians to get the bootstrap standard error.

When working a problem by hand, remember that a resample is drawn in random order. Always sort the resample from smallest to largest before picking the middle number, or you will just pick whichever value happened to be drawn third.

5

Where the Bootstrap Stops Working

We need to know when a bootstrap confidence interval cannot be trusted, even if a computer runs 10,00010{,}000 resamples.

Where the Bootstrap Stops Working
μ=?\htmlClass{lc-violet}{\mu} = {?}
train station\text{train station}
station sample: 100 people\text{station sample: 100 people}
walkers\text{walkers}
00
1010
2020
3030
4040
5050
6060
7070
8080
9090
100100
min\text{min}
true average\htmlClass{lc-violet}{\text{true average}}
train station: 100 people\text{train station: 100 people}
city\htmlClass{lc-violet}{\text{city}}
10,000 bootstrap\text{10,000 bootstrap}
averages\text{averages}
sample average\htmlClass{lc-blue}{\text{sample average}}
random sample: 5 people\text{random sample: 5 people}
gaps\htmlClass{lc-orange}{\text{gaps}}
00
1010
2020
3030
4040
5050
6060
7070
8080
9090
100100
min\text{min}

Key concepts

Bootstrapping estimates how much a sample statistic varies by treating your original random sample of size nn as a stand-in population. To build one bootstrap resample, draw nn values with replacement from the original nn data points. So from [10,20,20,30,70][10, 20, 20, 30, 70], a valid resample must have 55 numbers drawn only from that list, such as [20,10,20,30,20][20, 10, 20, 30, 20]. Then compute your statistic. Repeating this thousands of times builds the bootstrap distribution, which is always centered at your original sample estimate (xˉ=30\stat{\bar{x}} = \stat{30}), never the true population value. Taking more resamples (100,000100{,}000 instead of 10,00010{,}000) only smooths out the distribution and never moves the center closer to the truth.

Once you have a distribution of BB bootstrap statistics (such as B=10,000B = 10{,}000), how you build a 95%\share{95\%} confidence interval depends on the distribution's shape:

95% Bootstrap Percentile Interval (works for any shape, and best when skewed)

Chop the extreme 5%\share{5\%} off the outside by counting in 2.5%\share{2.5\%} of the dots (0.025×B\share{0.025} \times B) from each tail. For 10,00010{,}000 dots, count in 250250 dots from the left and 250250 dots from the right to get [16,50] minutes[\stat{16}, \stat{50}]\text{ minutes}. Because it uses the tails directly, it naturally captures lopsided uncertainty when high outliers skew the data.

95% Bootstrap Standard Error Interval (use only when symmetric and bell-shaped)

Find the standard deviation of the bootstrap statistics, called the bootstrap standard error, and plug it into the symmetric formula around your original sample estimate:

estimate±2(bootstrap standard error)e.g., 30±2(9.4)\displaystyle \stat{\text{estimate}} \pm \spread{2(\text{bootstrap standard error})} \\ \text{e.g., } \stat{30} \pm \spread{2(9.4)} =[11.2,48.8] minutes\displaystyle = [\stat{11.2}, \stat{48.8}]\text{ minutes}

Use the bootstrap when your data is skewed or when you need a confidence interval for a statistic like the median, 90th percentile, or correlation that has no simple sn\spread{\frac{s}{\sqrt{n}}} formula (if you simply need a confidence interval for a mean from a large, symmetric random sample, the standard tt-interval with sn\spread{\frac{s}{\sqrt{n}}} already works without a computer). Do not use the bootstrap if your original sample is biased (resampling 10,00010{,}000 times only centers the interval tightly around the wrong value) or too small (a tiny sample of 44 or 55 observations misses too much of the population's variation to estimate the spread reliably).

6

Practice

1

A biologist measures the weights (in grams) of a random sample of 5 mice: [18,21,21,24,36][18, 21, 21, 24, 36]. Which of the following could be a valid bootstrap sample from this data: (A) [18,21,24,36][18, 21, 24, 36], (B) [21,21,21,18,24][21, 21, 21, 18, 24], (C) [18,21,22,24,36][18, 21, 22, 24, 36], or (D) [18,21,21,24,36,36][18, 21, 21, 24, 36, 36]? Explain why the others are invalid.

Check the two rules every bootstrap resample must follow: how many numbers are in the original sample, and where can each drawn number come from?

When checking the choices, watch out for the common mistake of picking (A) [18,21,24,36][18, 21, 24, 36] just because every number in it appears in the original sample without repeating more times than it did originally. That comes from sampling without replacement and forgetting that a bootstrap sample must have the exact same sample size (55 mice) as the original sample.
(B) [21,21,21,18,24][21, 21, 21, 18, 24]is the only valid bootstrap sample because it has the exact same size as the original sample (55 mice) and is drawn from the original numbers with replacement, allowing 2121 to be picked three times and 3636 to be missed. (A) has only 44 numbers, (C) includes a number (2222) not in the original sample, and (D) has 66 numbers instead of 55.
2

From a random sample of 80 house prices with a sample average of $310 thousand\$\stat{310}\text{ thousand}, a computer generates 4,000 bootstrap averages. To build a 95% bootstrap percentile interval, how many dots do you count in from each end of the distribution? If those cutoffs land at $285 thousand\$\stat{285}\text{ thousand} and $350 thousand\$\stat{350}\text{ thousand}, why is the upper bound ($350 thousand\$\stat{350}\text{ thousand}) farther from $310 thousand\$\stat{310}\text{ thousand} than the lower bound ($285 thousand\$\stat{285}\text{ thousand}) is?

If the middle 95%\share{95\%} of the 4,0004{,}000 dots stay inside the interval, what percentage is left over in the two tails combined, and how much goes into each tail?

To keep the middle 95%\share{95\%} of the 4,0004{,}000 dots, you chop off the remaining 5%\share{5\%} equally across both ends, which is 2.5%\share{2.5\%} from each tail. Be careful not to multiply 4,0004{,}000 by the full 5%\share{5\%} (0.05×4,000=200 dots0.05 \times 4{,}000 = 200\text{ dots}), which forgets to split the 5%\share{5\%} between the two tails and would chop 200200 dots off each end to leave only a 90%90\% interval.
dots in each tail\displaystyle \text{dots in each tail} =0.025×4,000\displaystyle = \share{0.025} \times 4{,}000 =100 dots\displaystyle = 100\text{ dots}
Counting in 100100 dots from the left end and 100100 dots from the right end gives the 95%\share{95\%} percentile interval of $285 thousand\$\stat{285}\text{ thousand} to $350 thousand\$\stat{350}\text{ thousand}. The interval is lopsided ($25 thousand\$\spread{25}\text{ thousand} below the sample average versus $40 thousand\$\spread{40}\text{ thousand} above) because the original house price data is skewed to the right by expensive houses; resamples that draw those high prices multiple times pull the bootstrap average far up in the right tail.
3

For the same sample of 80 house prices (sample average =$310 thousand= \$\stat{310}\text{ thousand}), the standard deviation of the 4,000 bootstrap averages is $16 thousand\$\spread{16}\text{ thousand}. Find the 95% confidence interval using the bootstrap standard error method, and explain which interval, the percentile interval ($285 thousand\$\stat{285}\text{ thousand} to $350 thousand\$\stat{350}\text{ thousand}) or the standard error interval, better captures the uncertainty here.

How many bootstrap standard errors go on each side of the sample average for a 95%\share{95\%} interval, and what shape does a ±\pm interval always assume?

The standard deviation of the 4,0004{,}000 bootstrap averages ($16 thousand\$\spread{16}\text{ thousand}) is already the bootstrap standard error. Don't divide $16 thousand\$\spread{16}\text{ thousand} by 80\sqrt{80} to get 310±2(1680)=\stat{310} \pm 2\left(\frac{\spread{16}}{\sqrt{80}}\right) = [$306.4 thousand,$313.6 thousand][\$306.4\text{ thousand}, \$313.6\text{ thousand}] (that confuses the standard deviation of the bootstrap averages with the standard deviation s\spread{s} of a single sample), and don't forget to multiply the standard error by 22 (which would give 310±16=\stat{310} \pm \spread{16} = [$294 thousand,$326 thousand][\$294\text{ thousand}, \$326\text{ thousand}]).
Using estimate±2(standard error)\stat{\text{estimate}} \pm \spread{2(\text{standard error})} gives:
310±2(16)\displaystyle \stat{310} \pm \spread{2(16)} =310±32\displaystyle = \stat{310} \pm \spread{32} =[$278 thousand, $342 thousand]\displaystyle = [\$\stat{278}\text{ thousand},\, \$\stat{342}\text{ thousand}]
Because the bootstrap distribution is skewed to the right rather than symmetric and bell-shaped, the percentile interval ($285 thousand\$\stat{285}\text{ thousand} to $350 thousand\$\stat{350}\text{ thousand}) is better because it reflects the lopsided uncertainty in the right tail instead of forcing the interval to be symmetric around $310 thousand\$\stat{310}\text{ thousand}.
4

A random sample of 5 customer wait times (in minutes) is [4,6,6,10,44][4, 6, 6, 10, 44]. You need a confidence interval for the population median wait time. Find the median of the original sample, then find the bootstrap median for Resample #1: [6,4,6,4,10][6, 4, 6, 4, 10], Resample #2: [10,44,6,44,10][10, 44, 6, 44, 10], and Resample #3: [4,6,44,6,6][4, 6, 44, 6, 6]. Why can't you use the tt-interval formula with sn\spread{\tfrac{s}{\sqrt{n}}} to find a confidence interval for the median?

Before picking the middle (3rd) number of each resample, what must you do to the list of 5 numbers?

The original sample [4,6,6,10,44][4, 6, 6, 10, 44] is already in order and has a median (middle number) of 6 minutes\stat{6}\text{ minutes}.
For the resamples, watch out for the common mistake of picking the 3rd number as written without sorting first, which gives 66, 66, and 44 minutes44\text{ minutes}, getting the last two medians wrong (because 66 sits third in [10,44,6,44,10][10, 44, \mathbf{6}, 44, 10] and 4444 sits third in [4,6,44,6,6][4, 6, \mathbf{44}, 6, 6]). Sorting each resample from smallest to largest first gives:
Resample #1[4,4,6,6,10]  ⟹  [4, 4, \mathbf{\stat{6}}, 6, 10] \implies median=6 minutes\text{median} = \stat{6}\text{ minutes}
Resample #2[6,10,10,44,44]  ⟹  [6, 10, \mathbf{\stat{10}}, 44, 44] \implies median=10 minutes\text{median} = \stat{10}\text{ minutes}
Resample #3[4,6,6,6,44]  ⟹  [4, 6, \mathbf{\stat{6}}, 6, 44] \implies median=6 minutes\text{median} = \stat{6}\text{ minutes}
You cannot use the tt-interval formula because sn\spread{\tfrac{s}{\sqrt{n}}} only estimates the standard error of the mean, and there is no simple formula like sn\spread{\tfrac{s}{\sqrt{n}}} for the standard error of a median.
5

Suppose the true average commute time in a city is 32 minutes, but your random sample of 100 people happens to have an average of 27 minutes. Where will your bootstrap distribution of 10,000 resample averages be centered, and will taking 100,000 bootstrap resamples instead of 10,000 move the center closer to 32 minutes?

Where do the numbers in every bootstrap resample come from: the whole city of 32\truth{32}-minute commuters, or your 27\stat{27}-minute sample?

Don't confuse the bootstrap distribution with the true sampling distribution and answer that the center is 32 minutes\truth{32}\text{ minutes} (or that 100,000100{,}000 resamples pulls it toward 32 minutes\truth{32}\text{ minutes}). The computer never sees the rest of the city and only draws from your 100100-person sample.
The bootstrap distribution will be centered at 27 minutes\stat{27}\text{ minutes}, your original sample's average, not the true city average of 32 minutes\truth{32}\text{ minutes}. Taking 100,000100{,}000 bootstrap resamples will not move the center closer to 32 minutes\truth{32}\text{ minutes} because every resample is drawn from copies of your original sample. Since your sample missed the true city average by 5 minutes\miss{5}\text{ minutes}, the entire bootstrap distribution is shifted down by those same 5 minutes\miss{5}\text{ minutes}. Bootstrapping only measures the spread of your estimate, not where the true center is.
6

Two students build 95% bootstrap confidence intervals for the average textbook spending at their college using 10,000 bootstrap resamples each. Student A samples 150 students leaving the medical school bookstore, where books are unusually expensive. Student B takes a truly random sample of just 4 students from the whole college. Explain why bootstrapping fails to give a trustworthy confidence interval in each case.

Ask what the stand-in population looks like in each case: does Student A's sample have the right center, and does Student B's sample have enough variety to show the true spread?

A bootstrap distribution is only as good as the original sample used to build it. Don't make the mistake of thinking that 10,00010{,}000 resamples gives Student B a large sample size of 10,00010{,}000 students (every resample still has size n=4n = 4 drawn from the same 44 people) or that n=150n = 150 fixes Student A's biased sample.
Student A's sample is biasedtoward high-spending medical students, so resampling it 10,00010{,}000 times simply produces 10,00010{,}000 resamples of medical bookstore shoppers, centering the interval around the wrong value.
Student B's sample of 4 students is far too smalleven though it is random, to capture the true shape and variation of the college population, so the stand-in population is missing too much of the college's variation to estimate the spread reliably.