01 / 21

Summary Statistics
for a Quantitative Variable

Master the numbers that describe data: center, spread, and shape. Learn to calculate and interpret \(\bar{x}\), \(s\), \(Q_1\), \(Q_3\), and IQR.

AP Statistics

What Are Summary Statistics?

Summary statistics are single numerical values that describe key features of a data set. Instead of listing every observation, we condense the data into numbers that capture its center, spread, and position.

Center
Where is the "middle" of the data? Mean \(\bar{x}\) and median \(M\)
Spread
How spread out is the data? Standard deviation \(s\), IQR, range
Position
Where does a specific value fall? Quartiles \(Q_1, Q_3\), percentiles

Measures of Center

Mean \(\bar{x}\)
The arithmetic average: sum all values and divide by the count. Sensitive to outliers.
Median \(M\)
The middle value when data is sorted. Resistant to outliers and skewness.

Visualizing Mean vs. Median

Median Mean pulled right Right-Skewed Distribution

The Mean Formula

The sample mean is the sum of all observations divided by the number of observations:

\(\bar{x}\)
Sample mean: the computed average of all data values
\(n\)
Sample size: the total number of observations
\(\sum x_i\)
Summation: add all individual data values together

Standard Deviation \(s\)

Standard deviation measures the average distance each observation falls from the mean. Larger \(s\) means more variability.

1
Find each deviation: subtract \(\bar{x}\) from every data value \(x_i\).
2
Square each deviation: \((x_i - \bar{x})^2\) to eliminate negatives.
3
Average the squares: divide by \(n-1\) (not \(n\)) to get the variance \(s^2\).
4
Take the square root: returns the result to the original units.

Quartiles and the IQR

Quartiles divide sorted data into four equal groups. The interquartile range measures the spread of the middle 50%.

Min
\(Q_1\)
Median
\(Q_3\)
Max
\(\text{IQR} = Q_3 - Q_1\)
25% 25% 25% 25%

Resistant vs. Non-Resistant Measures

A statistic is resistant if it is not strongly affected by outliers or extreme values. This distinction is critical when choosing which summary to report.

Resistant Non-Resistant
Center Median \(M\) Mean \(\bar{x}\)
Spread IQR Standard deviation \(s\), Range
Best when Skewed data or outliers present Roughly symmetric, no outliers

The Five-Number Summary

The five-number summary provides a complete positional picture of a distribution, and it is the basis for boxplots.

Min
Smallest observation
\(Q_1\)
25th percentile
Median
50th percentile
\(Q_3\)
75th percentile
Max
Largest observation

How to Compute Summary Statistics

1
Sort the data from smallest to largest.
2
Find the median: the middle value (odd \(n\)) or average of two middle values (even \(n\)).
3
Find \(Q_1\) and \(Q_3\): medians of the lower and upper halves of the data.
4
Compute the mean: \(\bar{x} = \frac{\sum x_i}{n}\).
5
Compute \(s\): find deviations, square them, average with \(n-1\), take the square root.
6
Check for outliers: any value below \(Q_1 - 1.5 \times \text{IQR}\) or above \(Q_3 + 1.5 \times \text{IQR}\)?

Example 1: Finding the Median

A teacher records quiz scores for 9 students: 72, 85, 90, 65, 78, 92, 88, 70, 81. Find the median.

1
Sort: 65, 70, 72, 78, 81, 85, 88, 90, 92
2
Locate the middle: \(n = 9\), so the median is the \(\frac{9+1}{2} = 5\text{th}\) value.
3
Result: The 5th value is 81, so \(M = 81\).

Example 2: Mean and Standard Deviation

Data: 4, 7, 8, 10, 11. Compute \(\bar{x}\) and \(s\).

1
Mean: \(\bar{x} = \frac{4+7+8+10+11}{5} = \frac{40}{5} = \) 8
2
Deviations: \(-4, -1, 0, 2, 3\)
3
Squared deviations: \(16, 1, 0, 4, 9\). Sum \(= 30\).
4
Variance: \(s^2 = \frac{30}{5-1} = \frac{30}{4} = 7.5\)
5
Standard deviation: \(s = \sqrt{7.5} \approx\) 2.74

Example 3: Five-Number Summary and Outliers

Data (sorted): 2, 5, 7, 8, 10, 12, 14, 15, 40. Find the five-number summary and check for outliers.

\(\text{Min} =\) 2
Smallest value
\(Q_1\) = 6
Median of {2,5,7,8}
\(M\) = 10
Middle value (5th)
\(Q_3\) = 14.5
Median of {12,14,15,40}
\(\text{Max} =\) 40
Largest value

How Outliers Distort Statistics

Using the data from Example 3, compare the statistics with and without the outlier 40:

Statistic With 40 Without 40
Mean \(\bar{x}\) 12.56 9.13
Median \(M\) 10 9
Std. Dev. \(s\) 11.10 4.49
IQR 8.5 7.0

Common Mistakes to Avoid

✕ Dividing by \(n\) instead of \(n-1\)
The sample standard deviation uses \(n-1\) in the denominator (Bessel's correction). Dividing by \(n\) underestimates the true variability.
✕ Mixing resistant and non-resistant
Reporting median with standard deviation (or mean with IQR) sends conflicting messages about the data. Always pair them correctly.
✕ Forgetting to sort first
Quartiles and median require sorted data. Computing on unsorted data gives meaningless results.
✕ Ignoring outliers
Always check for outliers using the \(1.5 \times \text{IQR}\) rule and discuss their impact on your choice of summary statistics.

Summary of All Measures

Measure Formula / Method Resistant? Measures
Mean \(\bar{x}\) \(\frac{\sum x_i}{n}\) No Center
Median \(M\) Middle of sorted data Yes Center
Std. Dev. \(s\) \(\sqrt{\frac{\sum(x_i - \bar{x})^2}{n-1}}\) No Spread
IQR \(Q_3 - Q_1\) Yes Spread
Range \(\text{Max} - \text{Min}\) No Spread

Worked Example

A researcher records the number of hours 9 college students spent studying during the week before a midterm exam: 4, 7, 8, 10, 11, 12, 14, 15, 35. Compute the mean, median, standard deviation, IQR, and identify any outliers using the 1.5 × IQR rule. Then explain which pair of summary statistics (mean/s or median/IQR) is more appropriate. Computing Summary Statistics for Study Hours Step 1 — Order the Data and Find n The data are already sorted: 4, 7, 8, 10, 11, 12, 14, 15, 35. Here n = 9. Step 2 — Compute the Mean x̄ = (4 + 7 + 8 + 10 + 11 + 12 + 14 + 15 + 35) / 9 = 116 / 9 ≈ 12.89 hours. x̄ ≈ 12.89 hours Step 3 — Find the Median With n = 9 observations, the median is the (9 + 1)/2 = 5th value in the ordered list. Counting: 4, 7, 8, 10, 11, 12, 14, 15, 35. Median = 11 hours Step 4 — Find Q₁ and Q₃ Lower half (below the median): 4, 7, 8, 10. Q₁ = median of lower half = (7 + 8)/2 = 7.5. Upper half (above the median): 12, 14, 15, 35. Q₃ = median of upper half = (14 + 15)/2 = 14.5. Q₁ = 7.5, Q₃ = 14.5, IQR = 7 Step 5 — Check for Outliers (1.5 × IQR Rule) Lower fence = Q₁ − 1.5 × IQR = 7.5 − 10.5 = −3. Upper fence = Q₃ + 1.5 × IQR = 14.5 + 10.5 = 25. The observation 35 exceeds the upper fence of 25, so it is flagged as an outlier. 35 is an outlier Step 6 — Compute the Standard Deviation Compute each squared deviation from x̄ ≈ 12.89: (4 − 12.89)² ≈ 79.03, (7 − 12.89)² ≈ 34.63, (8 − 12.89)² ≈ 23.88, (10 − 12.89)² ≈ 8.35, (11 − 12.89)² ≈ 3.56, (12 − 12.89)² ≈ 0.79, (14 − 12.89)² ≈ 1.23, (15 − 12.89)² ≈ 4.45, (35 − 12.89)² ≈ 488.85. Sum ≈ 644.77. s = √(644.77 / 8) = √80.60 ≈ 8.98. s ≈ 8.98 hours Step 7 — Choose the Appropriate Summary Because the distribution contains a high outlier (35 hours), it is right-skewed. The mean (12.89) is pulled above the median (11), and the standard deviation (8.98) is inflated by the outlier. The more appropriate summary uses the median and IQR: "The typical student studied about 11 hours, with the middle 50% studying between 7.5 and 14.5 hours (IQR = 7)."

One dot per student on two common-scale study-hour plots. The hypothetical lower row replaces 35 hours with 15; means are about 12.89 and 10.67 while both medians are 11.
One dot represents one student. The lower row is a hypothetical replacement of 35 study hours by 15 hours.

Question 1 of 5

A data set has a strong right skew and several high outliers. Which pair of summary statistics best describes the center and spread?

Question 2 of 5

For the data set 3, 5, 7, 9, 11, what is the sample standard deviation \(s\)?

Question 3 of 5

A distribution is symmetric and bell-shaped. Which statement is true?

Question 4 of 5

For a data set, \(Q_1 = 20\) and \(Q_3 = 36\). Using the \(1.5 \times \text{IQR}\) rule, what is the upper fence for outliers?

Question 5 of 5

Why does the formula for sample standard deviation divide by \(n - 1\) instead of \(n\)?