AP Statistics · Study guide

The steak pulls the mean.

AP® Statistics · Unit 1 · Exploring One-Variable Data and Collecting Data

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.

The idea in one paragraph

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”:

\[ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i = \frac{x_1 + x_2 + \cdots + x_n}{n} \]

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).

Figure 1. The mean is the balance point of the dots: the 35-point game sits far out and pulls the balance point to the right of the median. The median is the middle game when the scores are in order, so the 35 counts only as “one game above.”
Worked Example 1 Mean and median with an even n

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.

  1. 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.
  2. 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.
  3. 3The median is their mean: \((12 + 14) \div 2 = 13\) minutes.
Answer: Mean 14 minutes, median 13 minutes. Half of these students walk 13 minutes or less.

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.

Figure 2. Put the data in order and find the median. Q1 is the median of the lower half and Q3 is the median of the upper half. Between them sit the middle 50% of the games.

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.

Worked Example 2 Quartiles and IQR with an even n

Walking to school

Find Q1, Q3, and the IQR for the eight walking times: 5, 8, 9, 12, 14, 15, 20, 29.

  1. 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.
  2. 2Q1 is the median of the lower half: \((8 + 9) \div 2 = 8.5\) minutes.
  3. 3Q3 is the median of the upper half: \((15 + 20) \div 2 = 17.5\) minutes.
  4. 4\(IQR = Q_3 - Q_1 = 17.5 - 8.5 = 9\) minutes.
Answer: Q1 = 8.5, Q3 = 17.5, IQR = 9 minutes. The middle half of these walking times spans 9 minutes.
Common Mistake 1 · Putting the median into a half when n is odd

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.
\[ s = \sqrt{\frac{1}{n-1}\sum_{i=1}^{n}\left(x_i - \bar{x}\right)^2} \]
Figure 3. Each deviation is a score minus the mean. They always add to zero, so you cannot simply average them. Squaring makes them all positive; the standard deviation undoes the squaring at the end.

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.

Worked Example 3 Standard deviation by hand

Five quiz scores

Find the standard deviation of the quiz scores 4, 6, 7, 8, 10 (out of 10), and interpret it.

  1. 1Mean: \(\bar{x} = (4 + 6 + 7 + 8 + 10) \div 5 = 35 \div 5 = 7\).
  2. 2Deviations \(x_i - \bar{x}\): \(-3, -1, 0, 1, 3\). They add to 0, as they always do.
  3. 3Square them: \(9, 1, 0, 1, 9\). Their sum is \(20\).
  4. 4Divide by \(n - 1 = 4\): \(s^2 = 20 \div 4 = 5\). This is the sample variance, in squared points.
  5. 5Take the square root to get back to points: \(s = \sqrt{5} \approx 2.24\).
Answer: \(s \approx 2.24\) points. The quiz scores typically vary by about 2.24 points from the mean of 7 points.
On the calculator

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.

Say it like this

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.”

Common Mistake 2 · Dividing by n, or reporting the variance

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\).
Figure 4. Step 1.5 × IQR = 1.5 × 7 = 10.5 out from each quartile. Anything beyond a fence is an outlier. Only the 35-point game qualifies.
Worked Example 4 Check for outliers two ways

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.

  1. 11.5 × IQR rule. \(Q_1 = 10\), \(Q_3 = 17\), \(IQR = 7\), and \(1.5 \times 7 = 10.5\).
  2. 2Lower fence: \(10 - 10.5 = -0.5\). Upper fence: \(17 + 10.5 = 27.5\). Only 35 is beyond a fence.
  3. 32 standard deviation rule. \(15 - 2(7.55) = -0.10\) and \(15 + 2(7.55) = 30.10\).
  4. 4Only 35 is outside that range too.
Answer: Both rules flag the 35-point game, and only that game, as an outlier.
Common Mistake 3 · Calling the largest value an outlier without checking

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.)

Figure 5. Removing one extreme game drags the mean 2 points and cuts the standard deviation in half, from 7.55 to 3.80. The median and the IQR barely move. That is what resistant means.
StatisticAll 11 gamesWithout the 35Change
Mean1513down 2
Median1413.5down 0.5
Standard deviation7.553.80cut in half
IQR76down 1
Range2912down 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.

Say it like this

“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.”

Common Mistake 4 · Reporting the mean for skewed data without a word

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 valueCenter 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.

Worked Example 5 Changing units

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\).

  1. 1Measures of center and position change like every single value: multiply by 1.8, then add 32.
  2. 2Mean: \(1.8(20) + 32 = 68\)°F. Median: \(1.8(19) + 32 = 66.2\)°F.
  3. 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.
  4. 4Standard deviation: \(1.8(3) = 5.4\)°F. IQR: \(1.8(4) = 7.2\)°F.
Answer: Mean 68°F, median 66.2°F, standard deviation 5.4°F, IQR 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.

Worked Example 6 Compare two samples

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.

MinQ1MedianQ3MaxMeansIQR
Player A61014173515.007.557
Player B91215171914.553.085
  1. 1Player A has an outlier (35), so use the median and IQR, which resist it, for the comparison.
  2. 2Center: Player B’s median (15 points) is 1 point higher than Player A’s (14 points).
  3. 3Variability: Player A’s IQR (7 points) is larger than Player B’s (5 points), so A’s typical games are more spread out.
  4. 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).
Answer: Player B’s median score is slightly higher than Player A’s (15 compared with 14 points), and Player B is more consistent (IQR 5 compared with 7 points). Player A had one unusually high game of 35 points, which Player B never approached.
Say it like this

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

StatisticHow to find itResistant?
Mean \(\bar{x}\)sum ÷ \(n\)No
Medianmiddle of ordered data (mean of the two middle values if \(n\) is even)Yes
\(Q_1\), \(Q_3\)medians of the lower and upper halvesYes
Rangemax − minNo
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\)