AP Statistics · Topic 1.7 · Reading guide, about 6 min

Mean, median, quartiles, spread and outliers

Compute and interpret mean, median, quartiles, IQR and standard deviation, find outliers, and choose summaries for skewed data.

In one minute

To describe a distribution you often need numbers: one that says where the center is and one that says how spread out the data are. This topic builds that toolkit and shows how each tool reacts to unusual values, and to changes of units.

The skill is not just calculating but choosing: some summaries stay steady when an outlier appears, and others are pulled around by it.

Key terms

Mean
The sum of the values divided by how many there are; for a sample, xˉ=(∑xi)/n\bar{x} = (\sum x_i)/n.
Median
The middle value when data are in order, or the mean of the two middle values when nn is even.
Quartiles
Q1Q_1 and Q3Q_3: the medians of the lower half and upper half of the ordered data.
Percentile
The pth percentile is a value with about p percent of the data at or below it.
Interquartile range
IQR=Q3−Q1IQR = Q_3 - Q_1, the spread of the middle half of the data.
Standard deviation
A measure of the typical distance of values from the mean; for a sample, s=∑(xi−xˉ)2/(n−1)s = \sqrt{\sum (x_i - \bar{x})^2 / (n - 1)}.
Variance
The square of the standard deviation, s2s^2.
Resistant measure
A summary that changes little when extreme values are added or removed, such as the median and IQR.
Outlier rules
A value is flagged if it is more than 1.5×IQR1.5 \times IQR beyond a quartile, or more than 2 standard deviations from the mean.

Measures of center

The mean adds all values and divides by nn. It is the balance point of the data. The median is the middle value, so half the data lie at or below it. For an even number of values, average the two middle ones. The minimum and maximum are the smallest and largest values, and the range is the maximum minus the minimum.

Quartiles cut the ordered data into four parts. Q1Q_1 is the median of the lower half and Q3Q_3 is the median of the upper half; with an odd nn, leave the overall median out of both halves. Technology sometimes uses a slightly different rule, so small differences are normal. The pth percentile is a value with about p percent of the data at or below it, so Q1Q_1 is about the 25th percentile and the median is about the 50th.

Measures of spread

The range uses only the two extremes. The interquartile range, IQR=Q3−Q1IQR = Q_3 - Q_1, measures the width of the middle half of the data. The standard deviation ss adds up the squared distances from the mean, divides by n−1n - 1 for a sample, and takes the square root. Roughly, it is the typical distance from the mean, in the same units as the data. The variance is s2s^2.

The range, IQR and standard deviation are in the units of the data; the variance is in squared units (points squared), which is one reason ss is usually the number reported. If s=8.4s = 8.4 points, values are typically about 8.4 points from the mean. A value of ss near 0 means the values are nearly identical.

Outliers and resistance

Two rules flag outliers. The IQR rule marks a value as an outlier if it is below Q1−1.5×IQRQ_1 - 1.5 \times IQR or above Q3+1.5×IQRQ_3 + 1.5 \times IQR. The standard deviation rule marks a value that is more than 2 standard deviations from the mean. They need not agree, and either is a screen, not a verdict.

A resistant measure barely moves when an outlier enters or leaves. The median and IQR are resistant. The mean, range and standard deviation are not resistant, because every value, including an extreme one, goes into them. So for skewed data or data with outliers, report the median and IQR; for roughly symmetric data with no outliers, the mean and standard deviation are the natural pair.

Choosing a summary
Data shapeCenterSpread
Skewed or has outliersMedianIQR
Approximately symmetric, no outliersMeanStandard deviation

Changing units

Adding a constant to every value shifts the center (mean, median, quartiles) by that constant but leaves the spread (range, IQR, ss) unchanged. Multiplying every value by a constant multiplies both center and spread by that constant (spread by its absolute value). Converting degrees Celsius to Fahrenheit uses both steps.

Worked example

Invented data: points scored in 8 games: 6, 8, 9, 11, 12, 14, 15, 33. The sum is 108, so xˉ=108/8=13.5\bar{x} = 108/8 = 13.5. The median is (11+12)/2=11.5(11 + 12)/2 = 11.5.

Quartiles: the lower half 6, 8, 9, 11 has median (8+9)/2=8.5(8 + 9)/2 = 8.5, so Q1=8.5Q_1 = 8.5. The upper half 12, 14, 15, 33 has median (14+15)/2=14.5(14 + 15)/2 = 14.5, so Q3=14.5Q_3 = 14.5. Then IQR=14.5−8.5=6IQR = 14.5 - 8.5 = 6. The range is 33−6=2733 - 6 = 27.

Standard deviation: the deviations from 13.5 are −7.5,−5.5,−4.5,−2.5,−1.5,0.5,1.5,19.5-7.5, -5.5, -4.5, -2.5, -1.5, 0.5, 1.5, 19.5. Their squares are 56.25,30.25,20.25,6.25,2.25,0.25,2.25,380.2556.25, 30.25, 20.25, 6.25, 2.25, 0.25, 2.25, 380.25, which sum to 498498. Then s2=498/7=71.1429s^2 = 498/7 = 71.1429 and s=71.1429=8.4346s = \sqrt{71.1429} = 8.4346 points (about 8.43).

Outliers. IQR rule: upper fence =14.5+1.5(6)=23.5= 14.5 + 1.5(6) = 23.5, lower fence =8.5−9=−0.5= 8.5 - 9 = -0.5. The value 33 is above 23.5, so it is an outlier. Standard deviation rule: 13.5+2(8.4346)=30.369213.5 + 2(8.4346) = 30.3692, and 3333 is above it, so it is an outlier here too.

Resistance. Drop the 33. The median of 6, 8, 9, 11, 12, 14, 15 is 11 (it moved from 11.5 by 0.5). The mean is 75/7=10.714375/7 = 10.7143 (it fell from 13.5 by about 2.8). The range falls from 27 to 9. The median barely moved while the mean and range reacted strongly.

Units. If every game earns 2 bonus points, the mean becomes 15.515.5 and the median 13.513.5, while ss stays 8.43468.4346 and the IQR stays 6. If every score is doubled, the mean becomes 2727, the median 2323, the IQR 1212 and s=16.8692s = 16.8692.

In context: "A typical game had about 11.5 points (median), with the middle half of games spread over 6 points. One game of 33 points is an outlier and pulls the mean up to 13.5, so the median and IQR describe these skewed scores better."

How it connects

  • Back to 1.6: shape tells you which center and spread to report, and outliers are one of the unusual features.
  • Forward to 1.8: the five-number summary uses the minimum, Q1Q_1, median, Q3Q_3 and maximum to build a boxplot.
  • Forward to 1.9: standardized scores use the mean and standard deviation to compare values from different distributions.
  • Forward to 4.2: xˉ\bar{x} and ss become the inputs for t-intervals.

Common mistakes

  • **Dividing by nn instead of n−1n - 1.** The sample standard deviation divides the sum of squared deviations by n−1n - 1.
  • Reporting the mean for strongly skewed data. An outlier or long tail pulls the mean; use the median and IQR.
  • Forgetting that adding a constant does not change spread. Shifting every value moves the center only.
  • **Including the median in both halves when finding quartiles with odd nn.** Leave it out of both halves.

How it shows up on the exam

  • You compute or interpret a mean, median, IQR or standard deviation from a data set or a summary.
  • A question describes a change (an outlier is added, units are converted) and asks which statistics change and how.
  • A written part asks you to decide whether a value is an outlier, showing the rule, and to choose appropriate summaries for a skewed distribution.

Check yourself

  1. For the data 3, 5, 8, 20, what are the median and the mean, and which is closer to most of the values?
  2. Why is the IQR resistant to outliers but the range is not?
  3. If every value in a data set is multiplied by 3, what happens to ss?
  4. How would you decide whether a particular value is an outlier using the IQR rule?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.