In short
Measures of center are the mean and the median; measures of variability are the range, the interquartile range (IQR = Q3 − Q1) and the standard deviation . The median and IQR are resistant to outliers and skew; the mean and standard deviation are not. A value is an outlier if it lies more than 1.5 × IQR below Q1 or above Q3.
What you need to know
- Calculate the mean, median, quartiles, range, IQR and standard deviation.
- Identify outliers with the 1.5 × IQR rule.
- Describe how adding a constant or multiplying by a constant changes summary statistics.
- Justify the choice of summary statistics for a distribution.
Measures of center and position
The battery life, in hours, of 15 phones was: 8, 9, 9, 10, 10, 10, 11, 11, 11, 11, 12, 12, 13, 14, 19. The mean is the sum divided by the count; the median is the middle value when the data are in order.
The first quartile Q1 is the median of the lower half and the third quartile Q3 is the median of the upper half (leave out the overall median when n is odd). Lower half 8, 9, 9, 10, 10, 10, 11 gives Q1 = 10; upper half 11, 11, 12, 12, 13, 14, 19 gives Q3 = 12. Q1 is the 25th percentile and Q3 the 75th.
Measures of variability
- Range = max − min = 19 − 8 = 11 hours.
- IQR = Q3 − Q1 = 12 − 10 = 2 hours: the spread of the middle half of the data.
- Standard deviation : roughly the typical distance of the values from the mean. Here hours (use technology).
Outliers. Using the 1.5 × IQR rule: 1.5 × 2 = 3, so any value below 10 − 3 = 7 or above 12 + 3 = 15 is an outlier. The value 19 is an outlier. Removing it changes the mean to about 10.79 hours and the standard deviation to about 1.63 hours, but the median stays at 11 and Q1 and Q3 hardly move. That is what resistant means.
Changing units
Adding a constant to every value shifts measures of center and position by that constant but leaves the range, IQR and standard deviation unchanged. Multiplying every value by a positive constant multiplies the center, position and spread by that constant. Converting battery life from hours to minutes (× 60) gives a mean of 680 minutes and a standard deviation of about 158 minutes.
Key terms
- Mean (x̄)
- The sum of the values divided by the number of values.
- Median
- The middle value of the ordered data (the average of the two middle values if n is even).
- Quartiles
- Q1 and Q3: the medians of the lower and upper halves of the data.
- Interquartile range (IQR)
- Q3 − Q1, the spread of the middle 50% of the data.
- Standard deviation (s)
- A measure of the typical distance of values from the mean.
- Resistant
- Not strongly affected by outliers or skew; the median and IQR are resistant.
Common mistakes
Including the median in both halves when finding quartiles for odd n.
Leave the median out; find the medians of the values below it and above it.
Thinking adding a constant changes the standard deviation.
Shifting all values moves the center but not the spread.
Using the mean and SD for strongly skewed data.
Use the median and IQR, and say they are resistant.
How this topic is tested
- Show the outlier fences: Q1 − 1.5 × IQR and Q3 + 1.5 × IQR, with numbers.
- Justify a choice of summary with the shape: 'because the distribution is skewed right, the median is a better measure of center'.
- Give units with every summary statistic.
Practice questions
Original AP-style multiple-choice questions. Pick an answer to see the explanation.
Question 1 · SP 3 · Analyze Data
Test scores: 52, 61, 64, 66, 70, 71, 73, 75, 78, 80, 84, 95. What is the median?
Question 2 · SP 3 · Analyze Data
For those scores, Q1 = 65 and Q3 = 79. Which values are outliers by the 1.5 × IQR rule?
Question 3 · SP 3 · Analyze Data
Every student's score is increased by 5 points. What happens to the standard deviation?
Question 4 · SP 4 · Interpret Results
House prices in a town are strongly skewed right. Which summaries best describe a typical price and its spread?
Question 5 · SP 3 · Analyze Data
Temperatures in a data set have mean 20°C and standard deviation 4°C. In Fahrenheit (F = 1.8C + 32), what are the mean and standard deviation?
Free-response practice
Write your answer first, then mark it against the scoring guide.
Practices 3 and 4 (short) · 4 points
The numbers of messages sent in one day by 9 students were: 12, 15, 18, 20, 22, 25, 27, 30, 96.
- (a) Determine whether 96 is an outlier. Show your work.
- (b) Explain whether the mean or the median better describes a typical number of messages for these students.
Scoring guide: one point for each of the following
Part (a)
- Q1 = (15 + 18)/2 = 16.5 and Q3 = (27 + 30)/2 = 28.5, so IQR = 12.
- Upper fence = 28.5 + 1.5 × 12 = 46.5.
- 96 > 46.5, so 96 is an outlier.
Part (b)
- The median (22 messages), because it is resistant to the outlier; the mean (about 29.4) is pulled up by 96 and is larger than 7 of the 9 values.
Connected topics
Frequently asked questions
Why divide by n − 1 in the standard deviation?
Dividing by n − 1 makes the sample standard deviation a better estimate of the population's spread. Technology does this automatically.
Do calculators use the same quartile method?
AP Statistics uses medians of the halves. Some software uses slightly different rules, which can give slightly different quartiles; either is accepted if your method is clear.
What is a percentile?
The value below which a given percentage of the data fall. The median is the 50th percentile.