Summary Statistics for One Quantitative Variable
Mean and median, quartiles and percentiles, range, IQR and standard deviation, two rules for outliers, which statistics resist outliers, what changing units does, and how to compare two samples with numbers.
A summary statistic boils a whole data set down to one number. Some describe the center (mean, median), some describe position (quartiles, percentiles), and some describe variability (range, IQR, standard deviation). Choosing well matters: the mean and standard deviation are pulled by outliers, while the median and IQR barely notice them.
Most of this guide uses one data set: the points a high school basketball player scored in her 11 games this season, in order.
6, 9, 10, 12, 13, 14, 15, 16, 17, 18, 35
1Center: mean and median
The mean is the sum of the values divided by how many values there are. For a sample it is written \(\bar{x}\), read “x-bar”:
Here \(x_i\) is the \(i\)th data value and \(n\) is the number of values. For the 11 games the sum is 165, so \(\bar{x} = 165 \div 11 = 15\) points.
The median is the middle value once the data are in order from smallest to largest. With an odd number of values it is the one in the middle position, \((n + 1) \div 2\). With an even number it is the mean of the two middle values. For 11 games, the middle is the 6th value: 14 points.
The smallest value is the minimum (6 points) and the largest is the maximum (35 points).
Walking to school
Eight students timed their walk to school, in minutes: 5, 8, 9, 12, 14, 15, 20, 29. Find the mean and the median.
- 1Mean: add the values and divide by \(n = 8\). The sum is \(5 + 8 + 9 + 12 + 14 + 15 + 20 + 29 = 112\), so \(\bar{x} = 112 \div 8 = 14\) minutes.
- 2Median: the data are already in order. With an even number of values there are two middle values, the 4th and 5th: 12 and 14.
- 3The median is their mean: \((12 + 14) \div 2 = 13\) minutes.
2Position: quartiles and percentiles
The first quartile, \(Q_1\), is the median of the lower half of the ordered data, the values below the median’s position. About 25% of the values are less than or equal to \(Q_1\). The third quartile, \(Q_3\), is the median of the upper half; about 75% of the values are less than or equal to it. The median itself is the second quartile. Together, \(Q_1\) and \(Q_3\) mark off the middle 50% of the data.
The \(p\)th percentile is the value with \(p\)% of the data less than or equal to it. \(Q_1\) is the 25th percentile and \(Q_3\) is the 75th. In the 11 games, 9 scores are at most 17 points, and \(9 \div 11 \approx 0.818\), so a 17-point game is at about the 82nd percentile of her season.
Walking to school
Find Q1, Q3, and the IQR for the eight walking times: 5, 8, 9, 12, 14, 15, 20, 29.
- 1With \(n = 8\), the median falls between the 4th and 5th values, so the halves split cleanly: lower half 5, 8, 9, 12 and upper half 14, 15, 20, 29.
- 2Q1 is the median of the lower half: \((8 + 9) \div 2 = 8.5\) minutes.
- 3Q3 is the median of the upper half: \((15 + 20) \div 2 = 17.5\) minutes.
- 4\(IQR = Q_3 - Q_1 = 17.5 - 8.5 = 9\) minutes.
With 11 values, the median (the 6th) belongs to neither half. Each half has 5 values. If you include it, the lower half becomes 6, 9, 10, 12, 13, 14 and you get \(Q_1 = 11\) instead of 10. Calculators leave the median out, and so should you.
3Variability: range, IQR, standard deviation
Three statistics measure how spread out the values are.
- The range is maximum minus minimum: \(35 - 6 = 29\) points. It uses only the two most extreme values.
- The interquartile range is \(IQR = Q_3 - Q_1 = 17 - 10 = 7\) points: the width of the middle half of the data.
- The standard deviation \(s\) is a typical distance of the values from their mean.
In words: find each value’s distance from the mean, square those distances, add them up, divide by \(n - 1\), and take the square root. The number before the square root, \(s^2\), is the sample variance. It is in squared units (squared points), which is why the standard deviation is the one you interpret.
For the 11 games the squared deviations add to 570, so \(s^2 = 570 \div 10 = 57\) and \(s = \sqrt{57} \approx 7.55\) points.
Five quiz scores
Find the standard deviation of the quiz scores 4, 6, 7, 8, 10 (out of 10), and interpret it.
- 1Mean: \(\bar{x} = (4 + 6 + 7 + 8 + 10) \div 5 = 35 \div 5 = 7\).
- 2Deviations \(x_i - \bar{x}\): \(-3, -1, 0, 1, 3\). They add to 0, as they always do.
- 3Square them: \(9, 1, 0, 1, 9\). Their sum is \(20\).
- 4Divide by \(n - 1 = 4\): \(s^2 = 20 \div 4 = 5\). This is the sample variance, in squared points.
- 5Take the square root to get back to points: \(s = \sqrt{5} \approx 2.24\).
Enter the data in a list (STAT, EDIT, L1). Then STAT, CALC, 1-Var Stats. The screen shows \(\bar{x}\), the sample standard deviation Sx, \(n\), and the five-number summary: minX, Q1, Med, Q3, maxX.
The calculator also shows σx, the standard deviation computed with \(n\) instead of \(n - 1\). For a sample, use Sx.
Interpret a standard deviation as a typical distance from the mean, in context with units: “The player’s game scores typically vary by about 7.55 points from her mean of 15 points.”
The sample standard deviation divides by \(n - 1\), not \(n\). And the variance \(s^2 = 57\) is not a typical distance; its units are squared points. Take the square root and report \(s \approx 7.55\) points.
4Outliers: two rules
A graph can suggest an outlier, but a rule makes the call the same way every time. Two rules are common.
- The 1.5 × IQR rule. A value is an outlier if it is more than \(1.5 \times IQR\) above \(Q_3\) or more than \(1.5 \times IQR\) below \(Q_1\). The two cutoffs, \(Q_1 - 1.5 \times IQR\) and \(Q_3 + 1.5 \times IQR\), are called the fences.
- The 2 standard deviation rule. A value is an outlier if it is more than 2 standard deviations above or below the mean, outside \(\bar{x} \pm 2s\).
The 11 games
The player’s 11 scores are 6, 9, 10, 12, 13, 14, 15, 16, 17, 18, 35, with mean 15 and standard deviation 7.55 points. Use both rules to check for outliers.
- 11.5 × IQR rule. \(Q_1 = 10\), \(Q_3 = 17\), \(IQR = 7\), and \(1.5 \times 7 = 10.5\).
- 2Lower fence: \(10 - 10.5 = -0.5\). Upper fence: \(17 + 10.5 = 27.5\). Only 35 is beyond a fence.
- 32 standard deviation rule. \(15 - 2(7.55) = -0.10\) and \(15 + 2(7.55) = 30.10\).
- 4Only 35 is outside that range too.
In the walking times 5, 8, 9, 12, 14, 15, 20, 29, the value 29 looks far out. But \(IQR = 9\), so the upper fence is \(17.5 + 1.5(9) = 31\). 29 is inside the fence, so it is not an outlier by the 1.5 × IQR rule. Do the arithmetic before you label a value.
5Choosing statistics: resistant or not
A statistic is resistant if an extreme value barely changes it. The median and the IQR are resistant: they depend on the order of the values, not on how far out the largest or smallest one sits. The mean, the standard deviation and the range are not: they use the actual size of every value, so one outlier can move them a lot. (Resistant statistics are also called robust.)
| Statistic | All 11 games | Without the 35 | Change |
|---|---|---|---|
| Mean | 15 | 13 | down 2 |
| Median | 14 | 13.5 | down 0.5 |
| Standard deviation | 7.55 | 3.80 | cut in half |
| IQR | 7 | 6 | down 1 |
| Range | 29 | 12 | down 17 |
The rule for choosing follows directly. When a distribution is skewed or has outliers, report the median and the IQR. When it is roughly symmetric with no outliers, the mean and the standard deviation are the usual choice, because they use every value.
“Because the scores include a high outlier of 35 points, the median (14 points) and IQR (7 points) describe a typical game better than the mean and standard deviation, which the outlier pulls upward.”
For incomes, home prices, or anything with a long tail, the mean can sit far from where most values are. If you report it, say why, or report the median alongside it.
6Changing units
Changing the units of measurement changes the values of the statistics, in a predictable way.
| What you do to every value | Center and position (mean, median, quartiles) | Variability (range, IQR, s) |
|---|---|---|
| Add a constant \(a\) | add \(a\) | no change |
| Multiply by a positive constant \(b\) | multiply by \(b\) | multiply by \(b\) |
| Multiply by \(b\), then add \(a\) | multiply by \(b\), then add \(a\) | multiply by \(b\) only |
Why variability ignores adding: if everyone’s score goes up 5 points, the distances between scores do not change, so neither does any measure of spread.
A week of temperatures
Daily high temperatures for one week had a mean of 20°C, a median of 19°C, a standard deviation of 3°C, and an IQR of 4°C. Convert each to Fahrenheit using \(F = 1.8C + 32\).
- 1Measures of center and position change like every single value: multiply by 1.8, then add 32.
- 2Mean: \(1.8(20) + 32 = 68\)°F. Median: \(1.8(19) + 32 = 66.2\)°F.
- 3Measures of variability are distances between values. Adding 32 shifts every value the same amount, so distances do not change; only multiplying by 1.8 matters.
- 4Standard deviation: \(1.8(3) = 5.4\)°F. IQR: \(1.8(4) = 7.2\)°F.
7Comparing two samples with numbers
Summary statistics make comparisons of two or more independent samples precise: compare their centers, their variability, their shapes, and their outliers, choosing resistant statistics when outliers are present.
Two players, 11 games each
Player A scored 6, 9, 10, 12, 13, 14, 15, 16, 17, 18, 35. Player B scored 9, 11, 12, 13, 14, 15, 16, 16, 17, 18, 19. Use summary statistics to compare them.
| Min | Q1 | Median | Q3 | Max | Mean | s | IQR | |
|---|---|---|---|---|---|---|---|---|
| Player A | 6 | 10 | 14 | 17 | 35 | 15.00 | 7.55 | 7 |
| Player B | 9 | 12 | 15 | 17 | 19 | 14.55 | 3.08 | 5 |
- 1Player A has an outlier (35), so use the median and IQR, which resist it, for the comparison.
- 2Center: Player B’s median (15 points) is 1 point higher than Player A’s (14 points).
- 3Variability: Player A’s IQR (7 points) is larger than Player B’s (5 points), so A’s typical games are more spread out.
- 4Shape and outliers: A’s mean is above A’s median, a sign of the high outlier pulling it up. B has no outliers (fences 4.5 and 24.5).
Every comparison sentence names both groups and uses a comparing word: “Player B’s median score was 1 point higher than Player A’s,” not “Player A’s median is 14. Player B’s median is 15.”
Quick reference
| Statistic | How to find it | Resistant? |
|---|---|---|
| Mean \(\bar{x}\) | sum ÷ \(n\) | No |
| Median | middle of ordered data (mean of the two middle values if \(n\) is even) | Yes |
| \(Q_1\), \(Q_3\) | medians of the lower and upper halves | Yes |
| Range | max − min | No |
| IQR | \(Q_3 - Q_1\) | Yes |
| Standard deviation \(s\) | \(\sqrt{\sum (x_i - \bar{x})^2 / (n-1)}\) | No |
| Outlier fences | \(Q_1 - 1.5 \times IQR\) and \(Q_3 + 1.5 \times IQR\) |