Math · Introductory statistics · Concept
Mean, median and standard deviation
Three numbers describe most data sets. The mean is the balance point, the median is the middle value, and the standard deviation measures how far values typically sit from the mean. The median resists outliers, but the mean and the standard deviation do not.
A concrete case
Two quizzes with the same average
Two groups of five students take the same 15-point quiz. Group A scores
Both groups total
To put a number on that difference, measure how far each score sits from the average. For group A the distances are
| Group | Scores | Distance from | Standard deviation |
|---|---|---|---|
| A | |||
| B |
The rule
The mean and the median
The mean
The standard deviation
Each value’s deviation is its signed distance from the mean,
When the data are a whole population rather than a sample, its mean is written
Quartiles, the and outliers
The first quartile
The minimum,
Why it works
Why square the deviations
Deviations from the mean always add to zero. The mean is the balance point, so the values above it lie exactly as far above, in total, as the values below it lie below. The algebra agrees. The sum of the
Squaring removes the signs, so every value adds to the total. It also weights a value
Why divide by
The mean of a sample sits closer to its own data than any other number does. In group A, the squared distances from
The population mean
Why the median ignores an outlier
The median depends only on which values sit in the middle of the sorted list. Make the largest value ten times larger and the middle does not move. The mean adds every value, so the same change moves it, and the standard deviation squares the new, larger distance as well. The median and the
The method
The standard deviation in seven steps
The table finds
| Step | What to do | For group B |
|---|---|---|
| 1 | Add the values and divide by | |
| 2 | Subtract the mean from each value | |
| 3 | Check that the deviations add to | |
| 4 | Square each deviation | |
| 5 | Add the squares | |
| 6 | Divide by | |
| 7 | Take the square root and give the units |
The median and quartiles in five steps
The same five scores give the five-number summary
| Step | What to do | For group B |
|---|---|---|
| 1 | Sort the data | |
| 2 | Take the middle value, or average the two middle values | |
| 3 | Split into a lower and an upper half, leaving out the median when | |
| 4 | Take the median of each half | |
| 5 | Subtract, then find the fences |
Where it breaks
Where it breaks
The mean and the standard deviation describe a symmetric, single-peaked data set well. For skewed data or data with an outlier they mislead. In the pay of
The standard deviation is not the average distance from the mean. For group A the distances
A sample and a population use different divisors.
The
Quartile methods differ. Software that interpolates gives
A mean needs numbers that measure something. The mean of zip codes or jersey numbers is arithmetic on labels.
Check your answer
Check your answer
A standard deviation is a long chain of small sums, and each link can be tested on its own.
Add the deviations. They must total
Find the sum of squares a second way. The squared deviations add to
Check the size.
To have Chalk check the work, put the data list on the first row of a Math box, such as
A row that names the statistic, such as
The data sets , , , , and , , , , have the same mean and the same range. Do they have the same ?
No. Both have mean
Degrees of freedom, and what spread can promise
The
The mean and the median each make a kind of distance as small as possible. The mean minimizes the sum of squared distances to the data, and the median minimizes the sum of plain distances. That is the deeper reason the median shrugs off an outlier and the mean does not.
For any data at all, Chebyshev’s inequality guarantees that at least
Common mistakes
- Finding the median without sorting. In the list
, , , , , , , , the 4th and 5th entries are and , which average . Sorted, the middle two are and , so the median is . The median is defined by order. - Dividing by
for a sample. is the population formula. The sleep data are a sample, so . Deviations from run small, and dividing by corrects for that. - Averaging the deviations without squaring them. The sleep deviations
, , , , , , and add to , as every set of deviations does. Square them first, and the squares add to . - Reporting the variance as the spread. The sleep data have
in hours squared, which is not a length of time. The standard deviation, , is in the data’s units and can sit beside the mean. - Rounding the mean before taking deviations. For the mistyped sleep data
, , , , , , , , . If it is rounded to , the squared deviations add to instead of . Keep the mean unrounded and round only the final . - Describing skewed data with the mean. In
, , , and the mean is , larger than four of the five values. The median, , describes a typical value, because one large value pulls the mean and not the middle.
Key terms
- Mean
- The average:
, written for a sample and for a whole population. One extreme value can pull it a long way. - Median
- The middle value when the data are in order. With an even count, it is the average of the two middle values. Extreme values affect it less than the mean.
- Standard deviation
- How spread out the values are around the mean, in the data’s own units: the square root of the variance. It describes individual values, not how precise the mean is.
- Sample variance
- The average squared distance from the sample mean, with
in the denominator: . Dividing by instead of corrects the tendency to underestimate the population variance. - Variance
- The average of the squared distances from the mean, a measure of spread in squared units. The population variance divides by
, and the sample variance divides by . - Quartile
- The three values that split ordered data into four equal parts:
(25th percentile), the median (50th) and (75th). Methods differ slightly for samples. Chalk Inverse takes the median of each half, leaving the overall median out of both halves when the count is odd. - Interquartile range
, the spread of the middle half of the data. Extreme values affect it much less than the full range. - Outlier
- A value far from the rest of the data, often flagged when it lies more than
beyond a quartile. It may be an error, a rare real case or a sign of something different, so don’t delete it without a reason.
Work through an example
Eight students report how many hours they slept:
Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
Try it, then study it
Open the example in its tool to check steps or change values, then review the key terms as flashcards.
Summarize the data in Statistics Check the arithmetic in Math Study the 8 key terms Open worked example on a board Sample standard deviation in Math ReferenceYour existing work stays on this device. Examples open as editable copies.