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 minutes) and Bus B (2,6,10,14,18 minutes).
Standard Deviation as the Typical Distance from the Mean
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, which has a mean of 6.
Why We Square Deviations and Take the Square Root
Text solution
Find each point's deviation from the meanSubtract the mean of 6 from each value in 2,4,6,8,10. The negative distances below 6 and positive distances above 6 add up to zero.
Deviations: −4,−2,0,+2,+4(−4)+(−2)+0+2+4=0
Square each deviation and average the squares to find the varianceSquaring removes every negative sign and makes the outer distances of 4 grow much more than the inner distances of 2, giving the average squared distance in square units.
Take the square root to get back to the original unitsTaking the square root turns the variance of 8 square units back into a typical distance on the number line, slightly larger than the Mean Absolute Deviation of 2.4.
Standard Deviation=8≈2.83 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
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:
sσSample: =sample variance s2one less thansample sizen−1∑(x−xˉdeviation fromsample mean xˉ)2Entire population: =N∑(x−μ)2
Note that the 2 in s2 tells you the variance is the square of the standard deviation s, which is why it is measured in square units. Once you divide by n−1 to get s2, you take its square root to find 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 for the sample of n=5 days of wait times on Bus B (2,6,10,14,18 minutes) and compare it with Bus A (9,10,10,10,11 minutes).
Calculating and Interpreting Sample Standard Deviation
Text solution
Subtract the sample mean xˉ=10 to find the deviationsDo a quick mental check that the deviations add to zero so you know your mean is right before squaring.
Square each deviation and divide the sum by n−1=4Because these n=5 days are a sample, dividing the sum of squares by 5−1=4 gives the sample variance s2.
Take the square root to return to minutesRunning the same steps for Bus A (9,10,10,10,11 minutes) gives a sum of squares of 2, a variance of 2÷4=0.5 square minutes, and s=0.5≈0.71 minutes.
s=40≈6.32 minutes
So the wait times for Bus B typically vary by about 6.32 minutes from the mean wait time of 10 minutes, whereas Bus A's wait times typically vary by only about 0.71 minutes from the mean of 10 minutes. To interpret 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" (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
Graph 1
012345678910
Graph 2
012345678910
Graph 1
mean=5
0
1
1
012345678910
Most distances are 0 or 1
from the mean (small s)
Graph 2
mean=5
4
4
5
5
012345678910
Most distances are 4 or 5
from the mean (large s)
Even when the minimum at 0, the maximum at 10, and the mean at 5 stay the same, the standard deviation is small when most of the data clusters near 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 when the fifth day changes from 10 minutes to a 50-minute traffic delay.
Outliers, Skew, and Choosing Summary Measures
2,4,6,8,10
2,4,6,8,50
xˉ
6
?
s
3.16
?
median
6
?
IQR
6
?
01020304050
Text solution
Without the outlier (2,4,6,8,10), the sample mean is xˉ=6Dividing the sum of squared deviations (40) by n−1=4 gives a sample standard deviation that matches the typical 2- to 4-minute distances from the center.
s=5−116+4+0+4+16=440=10≈3.16 minutes
With the outlier (2,4,6,8,50), the sample mean gets pulled up to xˉ=14The outlier sits 50−14=36 minutes above the new mean, and squaring that distance gives 362=1,296, which dominates the sum of squares and makes s huge.
Compare with the median and IQRChanging 10 to 50 leaves the median at 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 5 numbers Q3 is the median of the top two values, so it moves from 28+10=9 to 28+50=29 while Q1 stays at 3, and the IQR grows from 6 to 26.
As the highest point moves out from 10 to 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 minutes, s≈6.32 minutes), wait times typically vary by about 6.32 minutes from the mean of 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 0), 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:
Always check whether the dataset is a sample or an entire population before dividing. For the dataset 2,4,6,8,10 (mean =6, sum of squared deviations =40), treat it as a sample by dividing by n−1=4 to get s=40÷4≈3.16 (making up for sample points sitting closer to xˉ than to μ), or treat it as an entire population by dividing by N=5 to get σ=40÷5≈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 huge (changing 10 to 50 in 2,4,6,8,50 pulls xˉ from 6 to 14 and raises s from 3.16 to 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=5 orders from a café: 14,18,20,22,26. Find the sample mean xˉ, the sample variance s2 (with units), and the sample standard deviation s (rounded to two decimal places), then interpret s in context.
Find the signed distance of each delivery time from xˉ, and check whether these 5 orders are a sample or an entire population before dividing the sum of squares.
xˉ=514+18+20+22+26=5100=20 minutes
The deviations (x−xˉ) are −6,−2,0,+2,+6 (which add up to 0), and squaring them gives 36,4,0,4,36, for a sum of 80. Because this is a sample of n=5 orders, divide by n−1=4 (dividing by n=5 is a common mistake and gives the wrong variance of 16 square minutes and standard deviation of 4 minutes):
s2⟹s=5−180=20 square minutes=20≈4.47 minutes
Interpretation: The delivery times for orders from this café typically vary by about 4.47 minutes from the mean delivery time of 20 minutes.
2
A sample of n=4 packages has a mean weight of xˉ=12 pounds. The deviations from the mean (x−xˉ) for the first three packages are −3 pounds, −1 pound, and +2 pounds. Find the fourth package's deviation from the mean, its actual weight, and the sample standard deviation s of the four weights.
Use what the four signed deviations (x−xˉ) from the mean must add up to before squaring all four of them.
Because deviations from the mean always add up to 0:
(−3)+(−1)+2+d⟹d=0=+2 pounds
The fourth package sits 2 pounds above the mean of 12 pounds, so its actual weight is 12+2=14 pounds. Squaring all four deviations gives (−3)2=9,(−1)2=1,22=4, and 22=4 (be careful not to leave out the fourth package's square of 4, which gives a sum of 14, or divide by n=4 instead of n−1=3, which gives 4.5≈2.12 pounds):
Two machines fill 500 mL bottles. Over a population of N=4 test runs, Machine X produces fills of 498,498,502,502 mL (mean=500 mL) and Machine Y produces fills of 496,500,500,504 mL (mean=500 mL). Show that both machines have the same Mean Absolute Deviation, then find the population standard deviation σ for each machine and explain why they differ.
Because the N=4 runs are the entire population, divide the sum of squared deviations by N=4 (not n−1=3, which would give 2.31 mL and 3.27 mL).
Compare what happens to four small errors of 2 mL versus two larger errors of 4 mL when you average the absolute distances versus when you square them for a population of size N=4.
Dropping the minus signs gives absolute distances of 2,2,2,2 mL for Machine X and 4,0,0,4 mL for Machine Y, so both have the same Mean Absolute Deviation:
Machine Y has a larger standard deviation because squaring the deviations makes the two large 4 mL errors (42=16) grow much more than the four small 2 mL errors (22=4).
4
A small office has 6 employees whose commute times have a sum of squared deviations from the mean of ∑(x−xˉ)2=90 square minutes. Find the standard deviation (with the correct symbol) first if these 6 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−1 for a sample.
Notice that 90 square minutes is already the sum of the squared deviations ∑(x−xˉ)2, so start at the division step.
Do not square 90 again (squaring 90 to get 8,100 is a common mistake when ∑(x−xˉ)2 is already given). As an entire population of N=6 employees, divide by 6:
σ=690=15≈3.87 minutes
As a sample of n=6 employees, divide by n−1=5:
s=6−190=590=18≈4.24 minutes
We divide by n−1 for a sample because sample points sit closer to their own sample mean xˉ than to the true population mean μ, which tends to underestimate the population spread; dividing by the smaller number n−1 makes s slightly larger to fix that underestimate.
5
Three histograms (A, B, and C) each display 30 test scores spanning from 0 to 10 with a mean of 5. Histogram A has almost all of its data in tall bars at 4,5, and 6 and tiny bars at 0 and 10; Histogram B has bars of equal height from 0 to 10; Histogram C has almost all of its data piled at 0,1 and 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 to 10) does not give them the same standard deviation.
Don't get fooled into thinking they are equal because they share the same 0-to-10 range, or that A is largest just because its central bars are the tallest.
Instead of looking at the minimum and maximum or the height of the tallest bar, ask how far most of the 30 scores sit from the mean of 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-to-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, not just the distance between the minimum and maximum: in A, almost all scores sit only 0 or 1 unit from the mean; in B, distances are spread evenly from 0 to 5; and in C, almost all scores sit 4 or 5 units away from the mean at the outer edges.
6
Five daily wait times for a shuttle are 3,5,7,9,11 minutes (xˉ=7 minutes, median=7 minutes, s≈3.16 minutes, IQR=6 minutes). If a breakdown changes the fifth day's wait from 11 minutes to 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 to 61 pulls the sample mean xˉ up from 7 to 53+5+7+9+61=17 minutes. The outlier sits 61−17=44 minutes from the new mean (be careful not to subtract the old mean of 7, which gives 54), and squaring 44 gives 1,936, raising the sample standard deviation from 3.16 minutes all the way to:
Meanwhile, the median stays at 7 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 5 numbers Q3 is the median of the top two values, so it moves from 29+11=10 to 29+61=35 while Q1 stays at 4, and the IQR grows from 6 to 31 minutes. Before the outlier, report the Mean and Standard Deviation because the data is symmetric with no outliers; with the 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 minutes still describes a typical day.