The mean and the median measure the center of a quantitative data set; the range, the interquartile range (IQR) and the standard deviation measure its variability. The median and IQR resist skew and outliers, while the mean, standard deviation and range are pulled by them. So report the median and IQR for skewed data or data with outliers, and the mean and standard deviation for roughly symmetric data.
Quick check
A histogram has a long tail toward the smaller values. What is its shape?Show answerHide answer
Skewed left. Skew is named for the direction of the long tail.
For the values 2, 3, 4, 5 and 36, which is closer to most of the data: the middle value or the average?Show answerHide answer
The middle value, 4. The average is 10, because 36 drags it upward.
Know these already? Jump to the practice questions
What you'll be able to do
- Calculate the mean, median, quartiles, range and IQR of a data set.
- Calculate a sample standard deviation and interpret it in context.
- Explain which measures are resistant to skew and outliers.
- Choose the pair of summary statistics to report, and justify the choice.
Key terms
Resistant
A statistic is resistant if extreme values have little effect on it.
- In plain English
- One wild value barely moves it.
- Don't write
- "the mean is resistant"; one outlier can move the mean a lot.
Interquartile range (IQR)
The third quartile minus the first quartile, : the spread of the middle half of the data.
- In plain English
- How wide the central 50% of the values is.
- Don't write
- The IQR as an interval such as "41 to 53"; it is one number, 12.
Standard deviation
A measure of how far the values typically fall from their mean, in the units of the data.
- In plain English
- The usual distance from the average.
- Don't write
- "the values are within one standard deviation of the mean"; many are not.
How do the mean and the median differ?
On the formula sheet: the mean , the sum of the values divided by how many there are. Learn this: the median is the middle value of the ordered data, or the mean of the two middle values when is even.
The mean is the balance point of the data, so every value pulls on it. The median only needs half the values on each side, so it ignores how far out the extremes are. For hypothetical wait times of 4, 7, 8, 9, 10, 12, 15 and 31 minutes, the mean is minutes but the median is minutes. Remove the 31 and the mean drops to about 9.29 while the median only moves to 9.
Key idea
Skew pulls the mean toward the long tail: skewed right gives mean > median, and skewed left gives mean < median.
Check yourself
Show answerHide answer
The mean. The few very expensive houses pull it toward the right tail.
What do range, IQR and standard deviation measure?
Learn this: the range is the maximum minus the minimum, so it depends on just two values. The IQR measures the spread of the middle half and ignores the extremes.
On the formula sheet:
The standard deviation is roughly the typical distance of the values from the mean. It has the units of the data, it is never negative, and it equals 0 only when every value is the same. Squaring the deviations means one far-off value adds a lot, so is not resistant.
Interpret in context: "The commute times typically vary by about 4.5 minutes from the mean of 21 minutes."
Check yourself
Show answerHide answer
- Every score equals the mean, so every deviation is 0.
How do you find quartiles and percentiles?
Order the data and find the median. Learn this: is the median of the lower half and is the median of the upper half. When is odd, leave the overall median out of both halves; a graphing calculator uses this method.
The pth percentile is the value with p% of the data at or below it. So is about the 25th percentile, the median the 50th and the 75th. A score at the 90th percentile is at least as high as 90% of the scores; it does not mean 90% correct.
Check yourself
Show answerHide answer
and . The halves are 3, 5, 7, 8 and 10, 12, 15, 20, with medians and .
Which pair should you report?
Match the measure of center to the measure of variability. The median and IQR are resistant, so they suit skewed data or data with outliers. The mean and standard deviation use every value, so they suit roughly symmetric data without outliers. The range is never resistant.
Calculator output lists , , a sample and a population standard deviation, then the minimum, , median, and maximum. Use the sample value unless the data are a whole population.
Examiner's eye
Marks are lost when the choice is not justified. Say why: "the distribution is skewed right, so the median and IQR are better summaries."
Check yourself
Show answerHide answer
The median and the IQR, because both are resistant to the very high incomes.
Which method fits the question?
| Shape of the data | Center | Variability |
|---|---|---|
| Roughly symmetric, no outliers | Mean | Standard deviation |
| Skewed, or with outliers | Median | IQR |
Worked example 1: A standard deviation by hand
Question: Five students in a hypothetical class read 6, 8, 9, 11 and 16 books over the summer. Calculate the mean and the standard deviation, and interpret the standard deviation.
What tells you the method
"standard deviation" of a sample means the formula, which needs the mean first.
Step 1: Find the mean.
books.
WhyEvery deviation is measured from the mean.
Step 2: Square the deviations and add them.
The deviations are , so the sum of squares is .
WhySquaring stops negative and positive deviations cancelling.
Step 3: Divide by and take the square root.
books.
WhyA sample standard deviation divides by .
Check it
The deviations add to , as they always do, and 3.808 is a sensible typical distance for values 1 to 6 away from 10.
Answer
The mean is 10 books and books: the number of books read typically varies by about 3.8 from the mean of 10.
Worked example 2: Reading calculator output
Question: Hypothetical daily social media use for 30 students gives , minutes, minutes, minimum 35, , median 128, and maximum 310. (a) Calculate the IQR and the range. (b) Which pair of statistics best summarizes the data?
- A) Mean and standard deviation
- B) Median and IQR
- C) Mean and IQR
- D) Median and range
What tells you the method
Comparing the mean with the median, and the gaps between quartiles, shows the shape, and the shape decides the pair.
Step 1: Subtract.
minutes and range minutes.
WhyBoth are differences, so they are single numbers.
Step 2: Judge the shape.
The mean, 142.6, is above the median, 128. Also is more than , and the maximum is far above .
WhyAll three signs point to skew to the right.
Step 3: Choose the pair.
Skewed right, so report the median and IQR, which are resistant.
WhyCenter and variability should match, and both should resist the long tail.
Check it
C and D mix measures, and A uses statistics the long tail pulls upward.
Answer
B) Median and IQR, for part (b). For part (a), the IQR is 77 minutes and the range is 275 minutes.
Your turn
Question: Hypothetical daily high temperatures for 11 days are 52, 55, 57, 58, 60, 61, 63, 64, 66, 70 and 79 °F. Find the median, , and the IQR.
Step 1:
With 11 values, the median is the 6th: 61 °F.
Step 2: Your go: find and from the halves, leaving out the 61, then the IQR.
Show the full solutionHide the solution
The lower half is 52, 55, 57, 58, 60, so . The upper half is 63, 64, 66, 70, 79, so . Then °F.
Answer: The median is 61 °F, °F, °F and the IQR is 9 °F.
Traps
Trap
Thinking the median is resistant, so it never changes.
It seems right because outliers barely move it. But resistant means extreme values have little effect; adding or removing ordinary values still shifts the median.
Check yourself
Show answerHide answer
Still 6. Making an extreme value more extreme does not change the middle value.
Trap
Using the population standard deviation from calculator output for a sample.
It seems right because both appear in the same output. But it divides by , not , so for a sample it is slightly too small.
Check yourself
Show answerHide answer
.
What's examined
Summary statistics are tested on the AP® Statistics exam, in both the multiple-choice and free-response sections. Expect to calculate statistics, interpret a standard deviation in context, say how an outlier affects each measure, and justify which pair to report. A graphing calculator does the arithmetic; name the statistic and give its value with units.
Practice questions
- Recall Which statistic is resistant to outliers?
- A) The mean
- B) The range
- C) The interquartile range
- D) The standard deviation
Show answer
Answer: C) The interquartile range
Marking points:
- The IQR uses only the quartiles, so extreme values hardly affect it.
- A and D use every value, and B uses the two most extreme values.
- Recall Find the mean and the median of 3, 5, 6, 8, 12 and 14.
Show answer
Answer: The mean is 8 and the median is 7.
Marking points:
- Mean: .
- Median: is even, so .
- Apply In a data set of 20 values, the largest value is changed from 40 to 90. Which of the mean, median, standard deviation, IQR and range change?
- A) The median and IQR only
- B) The mean only
- C) The mean and range only
- D) The mean, standard deviation and range
Show answer
Answer: D) The mean, standard deviation and range.
Marking points:
- The sum, the deviations from the mean and the maximum all grow.
- The middle value and the quartiles do not change, so A is backward; B and C miss the standard deviation.
- Apply Calculate the sample standard deviation of 2, 4, 4 and 10. Give your answer to 3 decimal places.
Show answer
Answer: .
Marking points:
- The mean is , and the squared deviations are , which add to .
- .
- Exam-style The standard deviation of the hypothetical commute times of 50 employees is 6.2 minutes. Which is the correct interpretation?
- A) The commute times typically vary by about 6.2 minutes from the mean commute time.
- B) Every commute time is within 6.2 minutes of the median.
- C) The middle 50% of commute times span 6.2 minutes.
- D) The longest and shortest commute times differ by 6.2 minutes.
Show answer
Answer: A) The commute times typically vary by about 6.2 minutes from the mean commute time.
Marking points:
- The standard deviation is a typical distance from the mean, in the data's units.
- B confuses it with a bound, C describes the IQR, and D describes the range.
- Exam-style Hypothetical reaction times for 25 drivers give , minimum 30, , median 46, and maximum 89, all in hundredths of a second. (a) Calculate the IQR and the range. (b) Is the mean or the median larger, and what does that suggest about the shape?
Show answer
Answer: (a) The IQR is 12 and the range is 59 hundredths of a second. (b) The mean is larger, which suggests the distribution is skewed right.
Marking points:
- and range .
- , and the maximum lies far above , so the high values pull the mean up.
Key points
Recall, then reveal
Say the main points from memory first, then check them.
Show key pointsHide key points
- The mean is pulled toward the long tail and toward outliers; the median is resistant.
- The range uses two values, the IQR covers the middle half, and is a typical distance from the mean.
- Quartiles are medians of the lower and upper halves, leaving out the overall median when is odd.
- Report the median and IQR for skewed data or outliers, and the mean and standard deviation for roughly symmetric data.