StatisticsExploring One-Variable Data6 of 8
Exploring One-Variable Data · 6

Standard Deviation

The mean tells us where the center of a dataset is, but we also need a way to measure how far the numbers typically spread out around that center.

1

What Standard Deviation Measures

The standard deviation is the typical distance of the data points from the mean. Two datasets can have the exact same mean and still spread out very differently, like five days of wait times for Bus A (9,10,10,10,11\val{9, 10, 10, 10, 11} minutes) and Bus B (2,6,10,14,18\val{2, 6, 10, 14, 18} minutes).

Standard Deviation as the Typical Distance from the Mean
Bus A: 9, 10, 10, 10, 11 min\htmlClass{lc-ink}{\text{Bus A: }\htmlClass{lc-blue}{9,\ 10,\ 10,\ 10,\ 11}\text{ min}}
mean=10\htmlClass{lc-violet}{\text{mean} = 10}
05101520\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{3.4091em}\mathclap{5}\hspace{3.4091em}\mathclap{10}\hspace{3.4091em}\mathclap{15}\hspace{3.4091em}\mathclap{20}}
Bus B: 2, 6, 10, 14, 18 min\htmlClass{lc-ink}{\text{Bus B: }\htmlClass{lc-blue}{2,\ 6,\ 10,\ 14,\ 18}\text{ min}}
mean=10\htmlClass{lc-violet}{\text{mean} = 10}
05101520\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{3.4091em}\mathclap{5}\hspace{3.4091em}\mathclap{10}\hspace{3.4091em}\mathclap{15}\hspace{3.4091em}\mathclap{20}}
Bus A\htmlClass{lc-ink}{\text{Bus A}}
mean=10\htmlClass{lc-violet}{\text{mean} = 10}
05\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{3.4091em}\mathclap{5}}
1520\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{15}\hspace{3.4091em}\mathclap{20}}
Bus B\htmlClass{lc-ink}{\text{Bus B}}
mean=10\htmlClass{lc-violet}{\text{mean} = 10}
05101520\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{3.4091em}\mathclap{5}\hspace{3.4091em}\mathclap{10}\hspace{3.4091em}\mathclap{15}\hspace{3.4091em}\mathclap{20}}
wait time (minutes)\htmlClass{lc-ink}{\text{wait time (minutes)}}
2

Why We Square the Deviations and Take the Square Root

To find the typical distance from the mean, we start by finding each number's deviation, which is its signed distance from the mean. However, we cannot simply average those deviations, because the negative distances below the mean and the positive distances above it always cancel out to zero. Let's see how we fix that using the dataset 2,4,6,8,10\val{2, 4, 6, 8, 10}, which has a mean of 6\ctr{6}.

Why We Square Deviations and Take the Square Root
mean=6\htmlClass{lc-violet}{\text{mean} = 6}
246810\htmlClass{lc-blue}{\hspace{0.7231em}\mathclap{2}\hspace{2.6860em}\mathclap{4}\hspace{2.6860em}\mathclap{6}\hspace{2.6860em}\mathclap{8}\hspace{2.6860em}\mathclap{10}}
0\htmlClass{lc-ink}{0}
12\htmlClass{lc-ink}{12}
Text solution
Find each point's deviation from the meanSubtract the mean of 6\ctr{6} from each value in 2,4,6,8,10\val{2, 4, 6, 8, 10}. The negative distances below 6\ctr{6} and positive distances above 6\ctr{6} add up to zero.
Deviations: −4,−2,0,+2,+4(−4)+(−2)+0+2+4=0\displaystyle \begin{aligned} &\spread{\text{Deviations: }} \spread{{-4}, -2, 0, +2, +4} \\ &\spread{(-4)} + \spread{(-2)} + \spread{0} + \spread{2} + \spread{4} = 0 \end{aligned}
Square each deviation and average the squares to find the varianceSquaring removes every negative sign and makes the outer distances of 4\spread{4} grow much more than the inner distances of 2\spread{2}, giving the average squared distance in square units.
Variance=(−4)2+(−2)2+02+22+425=16+4+0+4+165=405=8 square units\displaystyle \begin{aligned} &\spread{\text{Variance}} \\ &= \frac{\spread{(-4)^2} + \spread{(-2)^2} + \spread{0^2} + \spread{2^2} + \spread{4^2}}{5} \\ &= \frac{\spread{16} + \spread{4} + \spread{0} + \spread{4} + \spread{16}}{5} \\ &= \frac{\spread{40}}{5} = \spread{8}\text{ square units} \end{aligned}
Take the square root to get back to the original unitsTaking the square root turns the variance of 8 square units\spread{8}\text{ square units} back into a typical distance on the number line, slightly larger than the Mean Absolute Deviation of 2.4\spread{2.4}.
Standard Deviation\displaystyle \spread{\text{Standard Deviation}} =8≈2.83 units\displaystyle = \sqrt{\spread{8}} \approx \spread{2.83}\text{ units}

As a point moves farther from the mean, the signed deviations still add up to zero, but its squared distance grows fast and pulls the standard deviation above the Mean Absolute Deviation.

Squaring each distance from the mean turns it into an area so far-out points pull the standard deviation past the average distance, and the square root brings that average area back to a length on the line.
3

Population vs. Sample Standard Deviation

Dividing the sum of squares by the total count works when our numbers are the entire population we care about, but in most problems we only have a sample and want to estimate the spread of a larger population.

Population vs. Sample Standard Deviation
entire population: 405=8sample: 40?\begin{aligned} \text{entire population: } & \dfrac{\htmlClass{lc-pink}{40}}{5} = \htmlClass{lc-pink}{8} \\[4pt] \text{sample: } & \dfrac{\htmlClass{lc-pink}{40}}{?} \end{aligned}
x\htmlClass{lc-ink}{\htmlClass{lc-blue}{x}}
246810\htmlClass{lc-blue}{\hspace{0.7231em}\mathclap{2}\hspace{1.8595em}\mathclap{4}\hspace{1.8595em}\mathclap{6}\hspace{1.8595em}\mathclap{8}\hspace{1.8595em}\mathclap{10}}
(x−6)2\htmlClass{lc-ink}{(\htmlClass{lc-blue}{x} - \htmlClass{lc-violet}{6})^{\htmlClass{lc-pink}{2}}}
1640416\htmlClass{lc-pink}{\hspace{0.7231em}\mathclap{16}\hspace{1.8595em}\mathclap{4}\hspace{1.8595em}\mathclap{0}\hspace{1.8595em}\mathclap{4}\hspace{1.8595em}\mathclap{16}}
sum\htmlClass{lc-mute}{\text{sum}}
40\htmlClass{lc-pink}{40}
5 days out of a year\htmlClass{lc-ink}{\text{5 days out of a year}}

Read the formula from the inside out as the same four-step method: subtract the mean, square the deviations, divide to get the variance, and take the square root:

Sample: s=∑(x−xˉ⏞deviation fromsample mean xˉ)2n−1⏟one less thansample size⏟sample variance s2Entire population: σ=∑(x−μ)2N\displaystyle \begin{aligned} &\text{Sample: } \\ \spread{s} &= \sqrt{\underbrace{\frac{\sum (\overbrace{\val{x} - \ctr{\bar{x}}}^{\begin{gathered}\scriptstyle\text{deviation from} \\ \scriptstyle\text{sample mean } \ctr{\bar{x}}\end{gathered}})^{\spread{2}}}{\underbrace{n - 1}_{\begin{gathered}\scriptstyle\text{one less than} \\ \scriptstyle\text{sample size}\end{gathered}}}}_{\text{sample variance } \spread{s^2}}} \\[1.5ex] &\text{Entire population: } \\ \spread{\sigma} &= \sqrt{\frac{\sum (\val{x} - \ctr{\mu})^{\spread{2}}}{N}} \end{aligned}

Note that the 2\spread{2} in s2\spread{s^2} tells you the variance is the square of the standard deviation s\spread{s}, which is why it is measured in square units. Once you divide by n−1n - 1 to get s2\spread{s^2}, you take its square root to find s\spread{s} rather than squaring the number again.

4

Calculating and Interpreting Sample Standard Deviation

Now let's find and interpret the sample standard deviation s\spread{s} for the sample of n=5n = 5 days of wait times on Bus B (2,6,10,14,18\val{2, 6, 10, 14, 18} minutes) and compare it with Bus A (9,10,10,10,11\val{9, 10, 10, 10, 11} minutes).

Calculating and Interpreting Sample Standard Deviation
s=∑(x−xˉ)2n−1=?\htmlClass{lc-pink}{s} = \sqrt{\dfrac{\sum (\htmlClass{lc-blue}{x} - \htmlClass{lc-violet}{\bar{x}})^{\htmlClass{lc-pink}{2}}}{n - 1}} = {?}
Bus B\htmlClass{lc-ink}{\text{Bus B}}
n=5\htmlClass{lc-ink}{n = 5}
26101418\htmlClass{lc-blue}{\hspace{0.7231em}\mathclap{2}\hspace{2.6033em}\mathclap{6}\hspace{2.6033em}\mathclap{10}\hspace{2.6033em}\mathclap{14}\hspace{2.6033em}\mathclap{18}}
0\htmlClass{lc-ink}{0}
20\htmlClass{lc-ink}{20}
wait time (minutes)\htmlClass{lc-ink}{\text{wait time (minutes)}}
Text solution
Subtract the sample mean xˉ=10\ctr{\bar{x}} = \ctr{10} to find the deviationsDo a quick mental check that the deviations add to zero so you know your mean is right before squaring.
Deviations (x−xˉ):−8,−4,0,+4,+8(−8)+(−4)+0+4+8=0\displaystyle \begin{aligned} &\spread{\text{Deviations }} (\val{x} - \ctr{\bar{x}}): \\ &\spread{{-8}, -4, 0, +4, +8} \\ &\spread{(-8)} + \spread{(-4)} + \spread{0} + \spread{4} + \spread{8} = 0 \end{aligned}
Square each deviation and divide the sum by n−1=4n - 1 = 4Because these n=5n = 5 days are a sample, dividing the sum of squares by 5−1=45 - 1 = 4 gives the sample variance s2\spread{s^2}.
s2=(−8)2+(−4)2+02+42+825−1=64+16+0+16+644=1604=40 square minutes\displaystyle \begin{aligned} \spread{s^2} &= \frac{\spread{(-8)^2} + \spread{(-4)^2} + \spread{0^2} + \spread{4^2} + \spread{8^2}}{5 - 1} \\ &= \frac{\spread{64} + \spread{16} + \spread{0} + \spread{16} + \spread{64}}{4} \\ &= \frac{\spread{160}}{4} = \spread{40}\text{ square minutes} \end{aligned}
Take the square root to return to minutesRunning the same steps for Bus A (9,10,10,10,11\val{9, 10, 10, 10, 11} minutes) gives a sum of squares of 2\spread{2}, a variance of 2÷4=0.5 square minutes\spread{2} \div 4 = \spread{0.5}\text{ square minutes}, and s=0.5≈0.71 minutes\spread{s} = \sqrt{\spread{0.5}} \approx \spread{0.71}\text{ minutes}.
s\displaystyle \spread{s} =40≈6.32 minutes\displaystyle = \sqrt{\spread{40}} \approx \spread{6.32}\text{ minutes}

So the wait times for Bus B typically vary by about 6.32\spread{6.32} minutes from the mean wait time of 10\ctr{10} minutes, whereas Bus A's wait times typically vary by only about 0.71\spread{0.71} minutes from the mean of 10\ctr{10} minutes. To interpret s\spread{s} in context, don't just state the number: write a sentence that names what is being measured, states that it "typically varies by about s\spread{s}" (with units), and gives the mean it varies from.

5

Comparing Standard Deviations from Graphs

When we are given histograms or dotplots instead of a list of numbers, we can tell which distribution has a larger standard deviation without calculating by seeing how closely most of the data clusters around the mean.

Comparing Standard Deviations from Graphs
mean=5\htmlClass{lc-violet}{\text{mean} = 5}
Graph 1\htmlClass{lc-ink}{\text{Graph 1}}
012345678910\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{1.5496em}\mathclap{1}\hspace{1.5496em}\mathclap{2}\hspace{1.5496em}\mathclap{3}\hspace{1.5496em}\mathclap{4}\hspace{1.5496em}\mathclap{5}\hspace{1.5496em}\mathclap{6}\hspace{1.5496em}\mathclap{7}\hspace{1.5496em}\mathclap{8}\hspace{1.5496em}\mathclap{9}\hspace{1.5496em}\mathclap{10}}
Graph 2\htmlClass{lc-ink}{\text{Graph 2}}
012345678910\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{1.5496em}\mathclap{1}\hspace{1.5496em}\mathclap{2}\hspace{1.5496em}\mathclap{3}\hspace{1.5496em}\mathclap{4}\hspace{1.5496em}\mathclap{5}\hspace{1.5496em}\mathclap{6}\hspace{1.5496em}\mathclap{7}\hspace{1.5496em}\mathclap{8}\hspace{1.5496em}\mathclap{9}\hspace{1.5496em}\mathclap{10}}
Graph 1\htmlClass{lc-ink}{\text{Graph 1}}
mean=5\htmlClass{lc-violet}{\text{mean} = 5}
0\htmlClass{lc-pink}{0}
1\htmlClass{lc-pink}{1}
1\htmlClass{lc-pink}{1}
012345678910\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{1.5496em}\mathclap{1}\hspace{1.5496em}\mathclap{2}\hspace{1.5496em}\mathclap{3}\hspace{1.5496em}\mathclap{4}\hspace{1.5496em}\mathclap{5}\hspace{1.5496em}\mathclap{6}\hspace{1.5496em}\mathclap{7}\hspace{1.5496em}\mathclap{8}\hspace{1.5496em}\mathclap{9}\hspace{1.5496em}\mathclap{10}}
Most distances are 0 or 1\text{Most distances are }\htmlClass{lc-pink}{0}\text{ or }\htmlClass{lc-pink}{1}
from the mean (small s)\text{from the mean (small }\htmlClass{lc-pink}{s}\text{)}
Graph 2\htmlClass{lc-ink}{\text{Graph 2}}
mean=5\htmlClass{lc-violet}{\text{mean} = 5}
4\htmlClass{lc-pink}{4}
4\htmlClass{lc-pink}{4}
5\htmlClass{lc-pink}{5}
5\htmlClass{lc-pink}{5}
012345678910\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{1.5496em}\mathclap{1}\hspace{1.5496em}\mathclap{2}\hspace{1.5496em}\mathclap{3}\hspace{1.5496em}\mathclap{4}\hspace{1.5496em}\mathclap{5}\hspace{1.5496em}\mathclap{6}\hspace{1.5496em}\mathclap{7}\hspace{1.5496em}\mathclap{8}\hspace{1.5496em}\mathclap{9}\hspace{1.5496em}\mathclap{10}}
Most distances are 4 or 5\text{Most distances are }\htmlClass{lc-pink}{4}\text{ or }\htmlClass{lc-pink}{5}
from the mean (large s)\text{from the mean (large }\htmlClass{lc-pink}{s}\text{)}

Even when the minimum at 0\val{0}, the maximum at 10\val{10}, and the mean at 5\ctr{5} stay the same, the standard deviation is small when most of the data clusters near 5\ctr{5} and large when most of the data piles up near the outer edges.

Even when the mean and the overall span stay the same, the standard deviation grows as more data moves away from the center toward the edges.
6

Outliers, Skew, and Choosing Summary Measures

Because standard deviation measures distances from the mean and squares them, a single extreme outlier or a long skewed tail will pull both numbers way off. Let's see what happens to our five-day sample 2,4,6,8,10\val{2, 4, 6, 8, 10} when the fifth day changes from 10\val{10} minutes to a 50\val{50}-minute traffic delay.

Outliers, Skew, and Choosing Summary Measures
2,4,6,8,10\htmlClass{lc-blue}{2, 4, 6, 8, 10}
2,4,6,8,50\htmlClass{lc-blue}{2, 4, 6, 8, 50}
xˉ\htmlClass{lc-violet}{\bar{x}}
6\htmlClass{lc-violet}{6}
?\htmlClass{lc-ink}{?}
s\htmlClass{lc-pink}{s}
3.16\htmlClass{lc-pink}{3.16}
?\htmlClass{lc-ink}{?}
median\htmlClass{lc-blue}{\text{median}}
6\htmlClass{lc-blue}{6}
?\htmlClass{lc-ink}{?}
IQR\htmlClass{lc-pink}{\text{IQR}}
6\htmlClass{lc-pink}{6}
?\htmlClass{lc-ink}{?}
01020304050\htmlClass{lc-ink}{\hspace{0.7231em}\mathclap{0}\hspace{3.0992em}\mathclap{10}\hspace{3.0992em}\mathclap{20}\hspace{3.0992em}\mathclap{30}\hspace{3.0992em}\mathclap{40}\hspace{3.0992em}\mathclap{50}}
Text solution
Without the outlier (2,4,6,8,10\val{2, 4, 6, 8, 10}), the sample mean is xˉ=6\ctr{\bar{x}} = \ctr{6}Dividing the sum of squared deviations (40\spread{40}) by n−1=4n - 1 = 4 gives a sample standard deviation that matches the typical 2\spread{2}- to 4\spread{4}-minute distances from the center.
s\displaystyle \spread{s} =16+4+0+4+165−1\displaystyle = \sqrt{\frac{\spread{16} + \spread{4} + \spread{0} + \spread{4} + \spread{16}}{5 - 1}} =404\displaystyle = \sqrt{\frac{\spread{40}}{4}} =10≈3.16 minutes\displaystyle = \sqrt{\spread{10}} \approx \spread{3.16}\text{ minutes}
With the outlier (2,4,6,8,50\val{2, 4, 6, 8, 50}), the sample mean gets pulled up to xˉ=14\ctr{\bar{x}} = \ctr{14}The outlier sits 50−14=36\val{50} - \ctr{14} = \spread{36} minutes above the new mean, and squaring that distance gives 362=1,296\spread{36^2} = \spread{1{,}296}, which dominates the sum of squares and makes s\spread{s} huge.
s=(−12)2+(−10)2+(−8)2+(−6)2+3625−1=1,6404=410≈20.2 minutes\displaystyle \begin{aligned} \spread{s} &= \sqrt{\frac{\begin{aligned} &\spread{(-12)^2} + \spread{(-10)^2} + \spread{(-8)^2} \\ &\quad + \spread{(-6)^2} + \spread{36^2} \end{aligned}}{5 - 1}} \\ &= \sqrt{\frac{\spread{1{,}640}}{4}} = \sqrt{\spread{410}} \\ &\approx \spread{20.2}\text{ minutes} \end{aligned}
Compare with the median and IQRChanging 10\val{10} to 50\val{50} leaves the median at 6\stat{6} minutes, because the median looks only at the middle of the ordered data. In a larger dataset the IQR wouldn't move either, but with only 55 numbers Q3\stat{Q_3} is the median of the top two values, so it moves from 8+102=9\frac{\val{8} + \val{10}}{2} = \stat{9} to 8+502=29\frac{\val{8} + \val{50}}{2} = \stat{29} while Q1\stat{Q_1} stays at 3\stat{3}, and the IQR grows from 6\spread{6} to 26\spread{26}.

As the highest point moves out from 10\val{10} to 50\val{50}, it pulls the mean toward the tail and its giant squared deviation makes the standard deviation much larger, while the median stays right where it is.

An outlier pulls the mean and stretches the standard deviation, while the median stays right where it is.

Key concepts

Standard deviation measures the typical distance from the mean in the original units of the data: for Bus B (xˉ=10\ctr{\bar{x}} = \ctr{10} minutes, s≈6.32\spread{s} \approx \spread{6.32} minutes), wait times typically vary by about 6.32\spread{6.32} minutes from the mean of 10\ctr{10} minutes. To calculate it, work from the inside of the formula outward: find each point's deviation from the mean (checking that they add up to 00), square the deviations so negatives become positive and large distances stand out, average the squares to get the variance in square units, and take the square root:

Sample: s=∑(x−xˉ)2n−1Entire population: σ=∑(x−μ)2N\displaystyle \begin{aligned} \text{Sample: } \spread{s} &= \sqrt{\frac{\sum (\val{x} - \ctr{\bar{x}})^{\spread{2}}}{n - 1}} \\ \text{Entire population: } \spread{\sigma} &= \sqrt{\frac{\sum (\val{x} - \ctr{\mu})^{\spread{2}}}{N}} \end{aligned}

Always check whether the dataset is a sample or an entire population before dividing. For the dataset 2,4,6,8,10\val{2, 4, 6, 8, 10} (mean =6= \ctr{6}, sum of squared deviations =40= \spread{40}), treat it as a sample by dividing by n−1=4n - 1 = 4 to get s=40÷4≈3.16\spread{s} = \sqrt{\spread{40} \div 4} \approx \spread{3.16} (making up for sample points sitting closer to xˉ\ctr{\bar{x}} than to μ\ctr{\mu}), or treat it as an entire population by dividing by N=5N = 5 to get σ=40÷5≈2.83\spread{\sigma} = \sqrt{\spread{40} \div 5} \approx \spread{2.83}.

When comparing graphs, look past the overall range and check where most of the data sits: a graph clustered tightly around the mean has a smaller standard deviation than one with data piled near the edges. Finally, check the shape of the data to decide when not to use the mean and standard deviation: because squaring an extreme distance makes s\spread{s} huge (changing 10\val{10} to 50\val{50} in 2,4,6,8,50\val{2, 4, 6, 8, 50} pulls xˉ\ctr{\bar{x}} from 6\ctr{6} to 14\ctr{14} and raises s\spread{s} from 3.16\spread{3.16} to 20.2\spread{20.2}), report the Mean and Standard Deviation only for roughly symmetric distributions without outliers, and switch to the resistant pair, Median and IQR, whenever the distribution is strongly skewed or has outliers.

7

Practice

1

A student records the delivery times (in minutes) for a random sample of n=5n = 5 orders from a café: 14,18,20,22,26\val{14, 18, 20, 22, 26}. Find the sample mean xˉ\ctr{\bar{x}}, the sample variance s2\spread{s^2} (with units), and the sample standard deviation s\spread{s} (rounded to two decimal places), then interpret s\spread{s} in context.

Find the signed distance of each delivery time from xˉ\ctr{\bar{x}}, and check whether these 55 orders are a sample or an entire population before dividing the sum of squares.

xˉ\displaystyle \ctr{\bar{x}} =14+18+20+22+265\displaystyle = \frac{\val{14} + \val{18} + \val{20} + \val{22} + \val{26}}{5} =1005\displaystyle = \frac{100}{5} =20 minutes\displaystyle = \ctr{20}\text{ minutes}
The deviations (x−xˉ)(\val{x} - \ctr{\bar{x}}) are −6,−2,0,+2,+6\spread{-6, -2, 0, +2, +6} (which add up to 00), and squaring them gives 36,4,0,4,36\spread{36, 4, 0, 4, 36}, for a sum of 80\spread{80}. Because this is a sample of n=5n = 5 orders, divide by n−1=4n - 1 = 4 (dividing by n=5n = 5 is a common mistake and gives the wrong variance of 16 square minutes\miss{16}\text{ square minutes} and standard deviation of 4 minutes\miss{4}\text{ minutes}):
s2=805−1=20 square minutes  ⟹  s=20≈4.47 minutes\displaystyle \begin{aligned} \spread{s^2} &= \frac{\spread{80}}{5 - 1} = \spread{20}\text{ square minutes} \\ \implies \spread{s} &= \sqrt{\spread{20}} \approx \spread{4.47}\text{ minutes} \end{aligned}
Interpretation: The delivery times for orders from this café typically vary by about 4.47\spread{4.47} minutes from the mean delivery time of 20\ctr{20} minutes.
2

A sample of n=4n = 4 packages has a mean weight of xˉ=12\ctr{\bar{x}} = \ctr{12} pounds. The deviations from the mean (x−xˉ)(\val{x} - \ctr{\bar{x}}) for the first three packages are −3\spread{-3} pounds, −1\spread{-1} pound, and +2\spread{+2} pounds. Find the fourth package's deviation from the mean, its actual weight, and the sample standard deviation s\spread{s} of the four weights.

Use what the four signed deviations (x−xˉ)(\val{x} - \ctr{\bar{x}}) from the mean must add up to before squaring all four of them.

Because deviations from the mean always add up to 00:
(−3)+(−1)+2+d=0  ⟹  d=+2 pounds\displaystyle \begin{aligned} \spread{(-3)} + \spread{(-1)} + \spread{2} + \spread{d} &= 0 \\ \implies \spread{d} &= \spread{+2}\text{ pounds} \end{aligned}
The fourth package sits 2\spread{2} pounds above the mean of 12\ctr{12} pounds, so its actual weight is 12+2=14 pounds\ctr{12} + \spread{2} = \val{14}\text{ pounds}. Squaring all four deviations gives (−3)2=9\spread{(-3)^2} = \spread{9}, (−1)2=1\spread{(-1)^2} = \spread{1}, 22=4\spread{2^2} = \spread{4}, and 22=4\spread{2^2} = \spread{4} (be careful not to leave out the fourth package's square of 4\spread{4}, which gives a sum of 14\miss{14}, or divide by n=4n = 4 instead of n−1=3n - 1 = 3, which gives 4.5≈2.12 pounds\sqrt{\miss{4.5}} \approx \miss{2.12}\text{ pounds}):
s2=9+1+4+44−1=183=6 square pounds  ⟹  s=6≈2.45 pounds\displaystyle \begin{aligned} \spread{s^2} &= \frac{\spread{9} + \spread{1} + \spread{4} + \spread{4}}{4 - 1} = \frac{\spread{18}}{3} = \spread{6}\text{ square pounds} \\ \implies \spread{s} &= \sqrt{\spread{6}} \approx \spread{2.45}\text{ pounds} \end{aligned}
3

Two machines fill 500 mL\ctr{500}\text{ mL} bottles. Over a population of N=4N = 4 test runs, Machine X produces fills of 498,498,502,502 mL\val{498, 498, 502, 502}\text{ mL} (mean=500 mL\ctr{\text{mean}} = \ctr{500}\text{ mL}) and Machine Y produces fills of 496,500,500,504 mL\val{496, 500, 500, 504}\text{ mL} (mean=500 mL\ctr{\text{mean}} = \ctr{500}\text{ mL}). Show that both machines have the same Mean Absolute Deviation, then find the population standard deviation σ\spread{\sigma} for each machine and explain why they differ.

Compare what happens to four small errors of 2 mL\spread{2}\text{ mL} versus two larger errors of 4 mL\spread{4}\text{ mL} when you average the absolute distances versus when you square them for a population of size N=4N = 4.

Dropping the minus signs gives absolute distances of 2,2,2,2 mL\spread{2, 2, 2, 2}\text{ mL} for Machine X and 4,0,0,4 mL\spread{4, 0, 0, 4}\text{ mL} for Machine Y, so both have the same Mean Absolute Deviation:
Machine X: 2+2+2+24=2 mLMachine Y: 4+0+0+44=2 mL\displaystyle \begin{aligned} \text{Machine X: } & \frac{\spread{2} + \spread{2} + \spread{2} + \spread{2}}{4} = \spread{2}\text{ mL} \\ \text{Machine Y: } & \frac{\spread{4} + \spread{0} + \spread{0} + \spread{4}}{4} = \spread{2}\text{ mL} \end{aligned}
Because the N=4N = 4 runs are the entire population, divide the sum of squared deviations by N=4N = 4 (not n−1=3n - 1 = 3, which would give 2.31 mL\miss{2.31}\text{ mL} and 3.27 mL\miss{3.27}\text{ mL}):
Machine X: σ=4+4+4+44=164=4=2 mLMachine Y: σ=16+0+0+164=324=8≈2.83 mL\displaystyle \begin{aligned} \text{Machine X: } \spread{\sigma} &= \sqrt{\frac{\spread{4} + \spread{4} + \spread{4} + \spread{4}}{4}} = \sqrt{\frac{\spread{16}}{4}} = \sqrt{\spread{4}} = \spread{2}\text{ mL} \\ \text{Machine Y: } \spread{\sigma} &= \sqrt{\frac{\spread{16} + \spread{0} + \spread{0} + \spread{16}}{4}} = \sqrt{\frac{\spread{32}}{4}} = \sqrt{\spread{8}} \approx \spread{2.83}\text{ mL} \end{aligned}
Machine Y has a larger standard deviation because squaring the deviations makes the two large 4 mL\spread{4}\text{ mL} errors (42=16\spread{4^2} = \spread{16}) grow much more than the four small 2 mL\spread{2}\text{ mL} errors (22=4\spread{2^2} = \spread{4}).
4

A small office has 66 employees whose commute times have a sum of squared deviations from the mean of ∑(x−xˉ)2=90 square minutes\sum (\val{x} - \ctr{\bar{x}})^{\spread{2}} = \spread{90}\text{ square minutes}. Find the standard deviation (with the correct symbol) first if these 66 employees are the entire population of interest, and second if they are a sample from a large company, and explain why we divide by n−1n - 1 for a sample.

Notice that 90 square minutes\spread{90}\text{ square minutes} is already the sum of the squared deviations ∑(x−xˉ)2\sum (\val{x} - \ctr{\bar{x}})^{\spread{2}}, so start at the division step.

Do not square 90\spread{90} again (squaring 90\spread{90} to get 8,100\miss{8{,}100} is a common mistake when ∑(x−xˉ)2\sum (\val{x} - \ctr{\bar{x}})^{\spread{2}} is already given). As an entire population of N=6N = 6 employees, divide by 66:
σ\displaystyle \spread{\sigma} =906\displaystyle = \sqrt{\frac{\spread{90}}{6}} =15≈3.87 minutes\displaystyle = \sqrt{\spread{15}} \approx \spread{3.87}\text{ minutes}
As a sample of n=6n = 6 employees, divide by n−1=5n - 1 = 5:
s\displaystyle \spread{s} =906−1\displaystyle = \sqrt{\frac{\spread{90}}{6 - 1}} =905\displaystyle = \sqrt{\frac{\spread{90}}{5}} =18≈4.24 minutes\displaystyle = \sqrt{\spread{18}} \approx \spread{4.24}\text{ minutes}
We divide by n−1n - 1 for a sample because sample points sit closer to their own sample mean xˉ\ctr{\bar{x}} than to the true population mean μ\ctr{\mu}, which tends to underestimate the population spread; dividing by the smaller number n−1n - 1 makes s\spread{s} slightly larger to fix that underestimate.
5

Three histograms (A, B, and C) each display 3030 test scores spanning from 0\val{0} to 10\val{10} with a mean of 5\ctr{5}. Histogram A has almost all of its data in tall bars at 4,5,\val{4, 5,} and 6\val{6} and tiny bars at 0\val{0} and 10\val{10}; Histogram B has bars of equal height from 0\val{0} to 10\val{10}; Histogram C has almost all of its data piled at 0,1\val{0, 1} and 9,10\val{9, 10} with an almost empty middle. Rank A, B, and C from smallest to largest standard deviation without calculating, and explain why having the same range (0\val{0} to 10\val{10}) does not give them the same standard deviation.

Instead of looking at the minimum and maximum or the height of the tallest bar, ask how far most of the 3030 scores sit from the mean of 5\ctr{5} in each graph.

From smallest to largest standard deviation: Histogram A, Histogram B, Histogram C (don't get fooled into thinking they are equal because they share the same 0\val{0}-to-10\val{10} range, or that A is largest just because its central bars are the tallest). Standard deviation measures the typical distance of all points from the mean of 5\ctr{5}, not just the distance between the minimum and maximum: in A, almost all scores sit only 0\spread{0} or 1\spread{1} unit from the mean; in B, distances are spread evenly from 0\spread{0} to 5\spread{5}; and in C, almost all scores sit 4\spread{4} or 5\spread{5} units away from the mean at the outer edges.
6

Five daily wait times for a shuttle are 3,5,7,9,11\val{3, 5, 7, 9, 11} minutes (xˉ=7\ctr{\bar{x}} = \ctr{7} minutes, median=7\stat{\text{median}} = \stat{7} minutes, s≈3.16\spread{s} \approx \spread{3.16} minutes, IQR=6\spread{\text{IQR}} = \spread{6} minutes). If a breakdown changes the fifth day's wait from 11\val{11} minutes to 61\val{61} minutes, explain how the mean, standard deviation, median, and IQR change, and state which pair of center and spread should be reported before and after the change.

Check how the new fifth value affects the mean versus the middle of the ordered list, and remember never to mix the two pairs of summary measures.

Changing 11\val{11} to 61\val{61} pulls the sample mean xˉ\ctr{\bar{x}} up from 7\ctr{7} to 3+5+7+9+615=17 minutes\frac{\val{3} + \val{5} + \val{7} + \val{9} + \val{61}}{5} = \ctr{17}\text{ minutes}. The outlier sits 61−17=44\val{61} - \ctr{17} = \spread{44} minutes from the new mean (be careful not to subtract the old mean of 7\ctr{7}, which gives 54\miss{54}), and squaring 44\spread{44} gives 1,936\spread{1{,}936}, raising the sample standard deviation from 3.16 minutes\spread{3.16}\text{ minutes} all the way to:
s=(−14)2+(−12)2+(−10)2+(−8)2+4425−1=2,4404=610≈24.70 minutes\displaystyle \begin{aligned} \spread{s} &= \sqrt{\frac{\spread{(-14)^2} + \spread{(-12)^2} + \spread{(-10)^2} + \spread{(-8)^2} + \spread{44^2}}{5 - 1}} \\ &= \sqrt{\frac{\spread{2{,}440}}{4}} = \sqrt{\spread{610}} \approx \spread{24.70}\text{ minutes} \end{aligned}
Meanwhile, the median stays at 7 minutes\stat{7}\text{ minutes}, because changing the largest value doesn't change the middle of the ordered list. In a larger dataset the IQR wouldn't move either, but with only 55 numbers Q3\stat{Q_3} is the median of the top two values, so it moves from 9+112=10\frac{\val{9} + \val{11}}{2} = \stat{10} to 9+612=35\frac{\val{9} + \val{61}}{2} = \stat{35} while Q1\stat{Q_1} stays at 4\stat{4}, and the IQR grows from 6\spread{6} to 31 minutes\spread{31}\text{ minutes}. Before the outlier, report the Mean and Standard Deviation because the data is symmetric with no outliers; with the 61\val{61}-minute outlier included, report the Median and IQR (never mixing the pairs) because the outlier inflates the mean and standard deviation, while the median of 7\stat{7} minutes still describes a typical day.