Measures of Center
The mean is the fair-share average. The median is the middle value of the sorted list (the average of the two middle values when is even). The mode is the most frequent value.
The mean is what each value would be if the total were shared out equally; the median is the value with half the data on each side. Use the mean when the distribution is roughly symmetric and you want every value to count; use the median when the data is skewed or has outliers and you want a typical value. Newspapers report median house prices for exactly this reason: one mansion should not change what "typical" means.
Data: . Mean: the total shared among values is . Median: is even, so average the rd and th sorted values, . The mean is larger because the single value pulls the balance point toward it; the median only knows that is on the upper side.
A team's goals per game over games: goals times, goal times, goals times, goals twice, goals once. Total goals , so the mean is . The median is the th value: the first values are and the next (positions to ) are , so the median is .
Five test scores have mean ; four of them are . The mean fixes the total: . The four known scores add to , so the fifth is . Working with totals rather than averages is the key move in every "missing value" or "new average" problem.
Taking the middle of the list as written instead of the sorted list. For the middle entry is , but sorted the data are and the median is .
Nine employees earn (in thousands) . Find the mean and median, and say which describes a typical salary.
Show the answerHide the answer
Total , mean ; median (the th of sorted values) . The median — eight of the nine earn less than the mean, which is inflated by the one .
Measures of Spread
The range is max minus min. The interquartile range is the spread of the middle half. The standard deviation is the typical distance of a value from the mean.
Standard deviation is built from squared deviations, so it is in the same units as the data once the square root is taken, and it weights far-away values heavily. That makes it the natural partner of the mean: both are sensitive to outliers. The IQR is the partner of the median: both depend only on positions in the sorted list.
Data: ; mean . Deviations from the mean: (they sum to , as they must). Squared: , sum . Sample variance , . (The population version divides by : .)
Set A: . Set B: . Both have mean and median . Squared deviations sum to for A and for B, so and . B is ten times as spread out, and centre alone would never reveal it.
Add a ninth value, , to the data . The mean stays and the sum of squared deviations stays , but the divisor grows from to : , down from . A value right at the centre makes the data look more concentrated.
Forgetting to square the deviations (they would sum to zero), or dividing by when the data is a sample — the corrects for the fact that the sample mean sits closer to the sample than the true mean does.
Find the sample standard deviation of .
Show the answerHide the answer
Mean ; deviations ; squared , sum . Divide by : variance , so .
Shifting and Scaling
Adding to every value shifts the mean and median by and leaves every measure of spread unchanged. Multiplying every value by multiplies the mean and median by and the standard deviation, IQR and range by . So for : and .
Shifting slides the whole data set along the number line: the distances between values — which is all that spread measures — do not change. Scaling stretches those distances by the factor , and the mean, being a sum divided by , follows along. The only way to change the shape of a distribution is a nonlinear transformation such as a logarithm; linear changes of units change only the labels on the axis.
Test scores have mean and standard deviation . The teacher adds points to every score. New mean ; new standard deviation still , because every score moved by the same amount and no two scores got any closer or farther apart.
Temperatures in Celsius have mean and standard deviation . With : mean ; standard deviation . The multiplier stretches the spread; the shifts everything and so does not spread anything.
For the data (mean , population SD ), subtract the mean and divide by the SD: gives . By the rules, the new mean is and the new SD is . Every data set standardizes to mean and SD , which is why z-scores compare values from different scales.
Letting the added constant into the spread: "SD in Fahrenheit ". A standard deviation of °F would mean temperatures scattered over a huge range; the shift of moves every value equally and adds nothing to the spread.
Salaries have mean and standard deviation . Everyone gets a raise plus a bonus. Find the new mean and standard deviation.
Show the answerHide the answer
New salary . Mean ; standard deviation (the bonus shifts but does not spread).
Why It Works
The deviations from the sample mean are not free: they must sum to zero, so only of them carry information — once are known, the last is forced. Dividing by instead of makes the sample variance an unbiased estimate of the population variance: averaged over all possible samples, it hits the true value exactly. Dividing by would systematically underestimate, because the sample mean is always at least as close to the sample points as the true mean is.