AP Statistics · Exploring one-variable data
Summary statistics
1Measures of centre
- Mean $\bar{x} = \frac{\sum x_i}{n}$: the balance point; uses every value, so it is sensitive to outliers and skew.
- Median: the middle value of the ordered data (the average of the two middle values when $n$ is even); resistant to outliers.
In a skewed right distribution, the mean is pulled toward the tail: mean > median. In skewed left: mean < median. In a symmetric distribution they are about equal.
3, 5, 6, 8, 40.
- Mean $= \frac{62}{5} = 12.4$.
- Median $= 6$.
- The outlier 40 pulls the mean far above the median; the median better describes a typical value.
Check yourself
Incomes in a city are strongly skewed right. Which is larger?
Show the answer
The mean
The tail pulls the mean up.
2Measures of spread
- Range = max − min (very sensitive to outliers).
- Quartiles: $Q_1$ is the median of the lower half, $Q_3$ the median of the upper half. IQR $= Q_3 - Q_1$, the spread of the middle 50% (resistant).
- Standard deviation $s_x = \sqrt{\frac{\sum(x_i - \bar{x})^2}{n - 1}}$: roughly the typical distance of values from the mean (not resistant). $s_x = 0$ only if all values are equal.
data 2, 4, 4, 5, 10.
- $\bar{x} = 5$. Deviations: $-3, -1, -1, 0, 5$. Squares: $9, 1, 1, 0, 25$, sum $36$.
- $s_x = \sqrt{\frac{36}{4}} = 3$.
- Interpretation: the values typically vary by about 3 from the mean of 5.
Check yourself
Which measure of spread is resistant to outliers?
Show the answer
IQR
Middle 50% only.
3Outliers and boxplots
The 1.5 × IQR rule: a value is an outlier if it is below $Q_1 - 1.5 \times \text{IQR}$ or above $Q_3 + 1.5 \times \text{IQR}$.
The five-number summary is min, $Q_1$, median, $Q_3$, max. A boxplot draws a box from $Q_1$ to $Q_3$ with a line at the median, whiskers to the smallest and largest non-outliers, and outliers as separate points.
$Q_1 = 20$, $Q_3 = 32$, so IQR $= 12$.
- Fences: $20 - 18 = 2$ and $32 + 18 = 50$.
- A value of 55 is an outlier; a value of 48 is not.
A boxplot with the 1.5 × IQR fences: 55 lies beyond the upper fence
Check yourself
With Q₁ = 10 and Q₃ = 18, the upper fence for outliers is:
Show the answer
30
18 + 1.5 × 8.
4Effects of transformations
If every value is transformed by $y = a + bx$:
- Measures of centre and position (mean, median, quartiles) become $a + b \times$ (old value).
- Measures of spread (range, IQR, standard deviation) are multiplied by $|b|$ and not affected by adding $a$.
- Shape stays the same (for $b > 0$).
temperatures have mean 20 °C and SD 5 °C. Converting to °F with $F = 32 + 1.8C$:
- Mean $= 32 + 1.8(20) = 68$ °F.
- SD $= 1.8 \times 5 = 9$ °F.
Check yourself
Adding 10 to every value in a data set changes the standard deviation by:
Show the answer
Nothing
Shifting doesn't change spread.
5Going deeper: resistant measures, the outlier rule and transforming data
Measures of center
- Mean ($\bar{x}$): the sum divided by the number of values; the balance point.
- Median: the middle value of the ordered data (the average of the two middle values when n is even).
Measures of spread
- Range: maximum − minimum (a single number).
- Interquartile range: IQR = Q3 − Q1, the spread of the middle half.
- Standard deviation (s): the typical distance of the values from the mean. $s = \sqrt{\frac{\sum (x - \bar{x})^2}{n - 1}}$. Its square is the variance.
Resistant statistics are barely affected by extreme values: the median and IQR. The mean, standard deviation and range are not resistant.
Which to use?
- Roughly symmetric, no outliers: mean and standard deviation.
- Skewed, or with outliers: median and IQR.
Mean against median: in a right-skewed distribution the mean is pulled toward the tail, so mean > median; in a left-skewed one, mean < median.
The five-number summary: minimum, Q1, median, Q3, maximum. A boxplot draws it.
The 1.5 × IQR rule for outliers: a value is an outlier if it is
- below Q1 − 1.5 × IQR, or
- above Q3 + 1.5 × IQR.
In a modified boxplot, outliers are marked separately and the whiskers reach to the most extreme values that are not outliers.
the data are 2, 4, 5, 7, 8, 10, 12, 13, 15, 34.
- n = 10: the median is the average of the 5th and 6th values: (8 + 10) ÷ 2 = 9.
- Lower half: 2, 4, 5, 7, 8: Q1 = 5. Upper half: 10, 12, 13, 15, 34: Q3 = 13.
- IQR = 8; 1.5 × IQR = 12.
- Fences: 5 − 12 = −7 and 13 + 12 = 25.
- 34 is an outlier (above 25). The upper whisker stops at 15.
- Mean = 110 ÷ 10 = 11, pulled above the median by the outlier.
Worked example (effect of removing the outlier): without 34,
- Mean = 76 ÷ 9 = 8.4 (down from 11).
- Median = 8 (down from 9).
- The mean changed far more: it is not resistant.
A second rule: a value more than 2 standard deviations from the mean is sometimes flagged as an outlier.
Interpreting standard deviation: "The heights typically vary from the mean by about 2.5 inches." Always in context, with units.
- s = 0 only when all values are equal.
- s is never negative.
- More spread means a larger s.
Changing units: linear transformations
Adding (or subtracting) a constant a to every value:
- Measures of center and position (mean, median, quartiles) change by a.
- Measures of spread (range, IQR, standard deviation) do not change.
- Shape is unchanged.
Multiplying (or dividing) by a constant b:
- Measures of center and position are multiplied by b.
- Measures of spread are multiplied by |b|.
- Shape is unchanged.
temperatures have a mean of 20°C and a standard deviation of 5°C. Convert to Fahrenheit with F = 1.8C + 32.
- Mean = 1.8(20) + 32 = 68°F.
- Standard deviation = 1.8(5) = 9°F. The + 32 has no effect on spread.
every employee earning a mean salary of 50,000 with standard deviation 8000 gets a raise of 2000.
- New mean 52,000; standard deviation still 8000.
- A 5% raise in its place: mean 52,500; standard deviation 8400.
Percentiles and z-scores describe position. The pth percentile is the value with p percent of the data at or below it. The z-score is $z = \frac{x - \text{mean}}{\text{SD}}$: the number of standard deviations above or below the mean. It has no units and lets values from different distributions be compared.
Boxplots: good for comparing groups; they show center, spread and outliers but hide the detail of shape (a bimodal distribution looks the same as a unimodal one).
Common mistakes
- Reporting mean and standard deviation for strongly skewed data.
- Including the median in both halves when finding quartiles (for odd n, leave it out).
- Calling the IQR a pair of numbers; it is one number.
- Drawing whiskers to the fences.
- Saying an added constant changes the standard deviation.
Check yourself
Every value in a data set is multiplied by 3 and then 10 is added. What happens to the standard deviation?
Show the answer
It is multiplied by 3
Adding a constant does not change spread; multiplying scales it.
6For top marks
- Choose median and IQR for skewed data or data with outliers; mean and SD for roughly symmetric data.
- Interpret SD in context: "typically about ... away from the mean".
- Show the 1.5 × IQR calculation when identifying outliers.
- Apply transformations correctly: spread ignores added constants.
"Because house prices are skewed right with several very expensive homes, the median ($320,000) is a better measure of a typical price than the mean ($410,000)."
Check yourself
For a strongly skewed distribution, the best summary is:
Show the answer
Median and IQR
Resistant measures.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera