All AP Courses AP StatisticsAP Stats

Unit 1 · Topic 1.7 · about 30 minutes

AP Statistics 1.7: Summary Statistics for One Quantitative Variable

Calculate the standard summary statistics for a quantitative variable, find outliers two ways, and justify which measures of center and variability to report.

Unit 1: 20 to 30% of the multiple-choice section

What you'll be able to do

  • Calculate the mean, the median, the quartiles and percentiles for a set of quantitative data.
  • Calculate the range, the interquartile range and the standard deviation.
  • Work out how summary statistics change when the units of measurement change.
  • Find outliers using the 1.5×IQR rule or the two standard deviation rule.
  • Compare two or more samples using their summary statistics.
  • Choose which measures of center and variability to report for a data set, and justify the choice.

Key vocabulary

TermWhat it meansThe exam trap
MeanThe sum of the values divided by the number of values; for a sample it is written x‾.One extreme value can drag the mean a long way: adding a 14 to screen times of 3, 4, 4, 5, 5, 6 and 7 hours moves the mean from about 4.9 to 6 while the median stays at 5.
MedianThe middle value of the sorted data, or the mean of the two middle values when there is an even number of them.Forgetting to sort first gives whatever value happens to sit in the middle of the list, which is usually not the median.
First and third quartilesQ1 is the median of the lower half of the sorted data and Q3 the median of the upper half, so together they mark off the middle 50 percent.Including the median in both halves when n is odd is a different method, and mixing it with the course's method changes the quartiles and every fence built on them.
pth percentileThe value with p percent of the data at or below it; Q1 is the 25th percentile and Q3 the 75th.A score at the 90th percentile is at or above 90 percent of all the scores, which says nothing about getting 90 percent of the questions right.
Standard deviationA typical distance between the data values and their mean; for a sample, s=1n−1∑(xi−x‾)2, and s2 is the sample variance.On a calculator the σx line divides by n, so for a sample the number to report is sx.
ResistantDescribes a statistic that outliers change little if at all: the median and the IQR are resistant, while the mean, standard deviation and range are nonresistant.The range is the least resistant of all, since it is built entirely from the two most extreme values.

Predict first

Seven friends report their screen time yesterday: 3, 4, 4, 5, 5, 6 and 7 hours. The mean is about 4.9 hours and the median is 5 hours. An eighth friend, home sick all day, reports 14 hours. What happens to the mean and the median?

Measures of center

The mean is the sum of the values divided by the number of values. For a sample of n values,

x‾=1n∑i=1nxi

where xi stands for the ith value in the sample. The median is the middle value once the data are sorted from smallest to largest. With an odd number of values it is the single middle value. With an even number it is the mean of the two middle values. The smallest value is the minimum and the largest is the maximum.

Find these by hand for a small data set. For a large one, use a calculator's one-variable statistics.

Quartiles and percentiles

The first quartile, Q1, is the median of the lower half of the sorted data, the values below the median's position. The third quartile, Q3, is the median of the upper half. When n is odd, this course leaves the median out of both halves, as the TI-84 does. About 25% of the values are at or below Q1 and about 75% are at or below Q3, so the two quartiles mark off the middle 50% of the data. The median is the second quartile, Q2.

The pth percentile is the value with p% of the data at or below it. Q1 is the 25th percentile and Q3 is the 75th. A test score at the 90th percentile is at or above 90% of all the scores. That is a statement about position, not about getting 90% of the questions right.

Measures of variability

Three numbers measure how spread out a distribution is.

  • The range is the maximum minus the minimum.
  • The interquartile range is IQR=Q3−Q1, the width of the middle half of the data.
  • The standard deviation measures a typical distance between the data values and their mean.

For a sample, the standard deviation is

s=1n−1∑i=1n(xi−x‾)2

In words: find each value's deviation from the mean, square the deviations, add them up, divide by n−1, and take the square root. The quantity under the square root, s2, is the sample variance. A calculator labels the sample standard deviation sx. The σx beside it divides by n instead, so it is not the one to report for a sample.

The standard deviation by hand: commute times, in minutes, for five students, with mean x‾=14
Value xiDeviation xi−x‾Squared deviation
8−636
10−416
12−24
1511
2511121
Sum0178

The deviations always add to 0, which is why they are squared before they are added. Dividing by n−1=4 gives s2=1784=44.5, so s=44.5≈6.67 minutes. A typical commute is about 6.7 minutes away from the mean of 14 minutes.

Worked exampleSummarizing a data set

Eleven students timed how long they took to get ready for school one morning, in minutes: 22, 15, 30, 25, 12, 62, 18, 28, 25, 35, 20. Find the five-number summary, the range, the IQR, the mean and the standard deviation.

  1. Sort and find the median. 12, 15, 18, 20, 22, 25, 25, 28, 30, 35, 62. With n=11 values, the median is the 6th: 25 minutes.

  2. Quartiles. Leave the median out of both halves. The lower half is 12, 15, 18, 20, 22, so Q1=18. The upper half is 25, 28, 30, 35, 62, so Q3=30.

  3. Spread. The range is 62−12=50 minutes, and IQR=30−18=12 minutes.

  4. Mean and standard deviation. The values add to 292, so x‾=29211≈26.5 minutes. One-variable statistics on a calculator give sx≈13.5 minutes.

Answer.

Minimum 12, Q1=18, median 25, Q3=30, maximum 62. Range 50 minutes, IQR 12 minutes, mean about 26.5 minutes and standard deviation about 13.5 minutes.

Time to get ready for school, 11 students

2030405060Minutes to get ready

The student who took 62 minutes sits far to the right of everyone else, and pulls the mean (26.5) above the median (25).

Two rules for outliers

There are many ways to decide that a value is unusually far from the rest. Two are used all the time.

The 1.5×IQR rule. A value is an outlier if it is more than 1.5×IQR above Q3 or more than 1.5×IQR below Q1. For the getting-ready times, 1.5×12=18, so the cutoffs, often called fences, are 18−18=0 and 30+18=48 minutes. The 62-minute student is an outlier.

The two standard deviation rule. A value is an outlier if it is more than 2 standard deviations above or below the mean. Here 26.5+2(13.5)=53.5 and 26.5−2(13.5)=−0.5, so 62 is an outlier by this rule as well.

The two rules do not always agree. An extreme value inflates the standard deviation, which pushes the two standard deviation cutoffs farther out, so that rule can miss a value the IQR rule catches. When a question names a rule, use that rule.

Resistant and nonresistant statistics

A statistic is resistant if outliers do not change it much, if at all. The median and the IQR are resistant, because they depend on the middle of the sorted data and not on how far out the extremes sit. The mean, the standard deviation and the range are nonresistant. Every value feeds into the mean and the standard deviation, and the range is built from the two most extreme values, so one extreme value can move all three a long way.

Nine students in a club list their follower counts on a photo app: 210, 340, 380, 415, 450, 520, 610, 700 and 48,000. The mean is about 5,736 followers, more than eight times what any of the other eight students has. The median, 450, describes a typical member. Drop the 48,000 and the mean falls to about 453, while the median only moves to 432.5.

That gives a working rule:

  • For a distribution that is roughly symmetric with no outliers, report the mean and standard deviation.
  • For a distribution that is strongly skewed or has outliers, report the median and IQR.

Comparing samples with summary statistics

Summary statistics also compare two or more independent samples on center, variability, shape and outliers. Random samples of 40 students from two lunch periods recorded how many minutes they waited in the cafeteria line.

Minutes waited in the cafeteria line
Lunch periodnMeanSDMedianIQRMaximum
Fourth4010.25.19726
Fifth406.42.06312

Fourth period's waits are longer, with a median of 9 minutes against 6, and far more variable, with an IQR of 7 minutes against 3. Its mean sits above its median and its maximum is 26 minutes, both hints of a long right tail. A student who wants a short, predictable wait should pick fifth period.

Changing units

Changing the units of measurement changes the summary statistics, in a predictable way.

Multiplying every value by a constant, as when you convert minutes to seconds, multiplies every measure of center, position and variability by that constant. In seconds, the getting-ready times have a mean of about 1,593 seconds, an IQR of 12×60=720 seconds and a standard deviation of about 811 seconds.

Adding a constant to every value shifts the mean, the median and the quartiles by that constant but leaves the range, the IQR and the standard deviation exactly where they were. Every value moves, and the distances between values do not.

Temperature conversion does both. Fahrenheit is 1.8 times Celsius, plus 32. If a city's daily highs for two weeks have a mean of 18 degrees Celsius and a standard deviation of 4 degrees, then in Fahrenheit the mean is 1.8(18)+32=64.4 degrees and the standard deviation is 1.8(4)=7.2 degrees. The 32 shifts the center but adds nothing to the spread.

Check your understanding

1

The numbers of push-ups 10 students did in one minute were 18, 22, 25, 25, 28, 31, 33, 36, 40 and 47. Find the interquartile range.

2

A real estate website reports home sale prices in a small town last year. The distribution is strongly skewed right, with two sales above 2 million dollars. Which pair of statistics best describes a typical price and the spread of prices?

3

The heights of the players on a youth soccer team have a mean of 56 inches and a standard deviation of 3 inches. The coach converts every height to centimeters by multiplying by 2.54. What are the new mean and standard deviation?

4

Daily attendance at a city pool over one summer had a mean of 410 swimmers and a standard deviation of 85 swimmers. Using the rule that an outlier is more than 2 standard deviations from the mean, which day's attendance is an outlier?

5

Two machines fill bags of trail mix. In a random sample of 30 bags from each, Machine A has a mean of 252 grams and a standard deviation of 2.1 grams. Machine B has a mean of 250 grams and a standard deviation of 6.4 grams. Which statement is supported?

Practice

Practice until it is automatic

New numbers every time. Each one is checked the moment you answer, with the full working shown.

Mean, median and standard deviation practice page · Quartiles, IQR and outliers practice page

Exam strategy for this topic

  • Section I, Multiple Choice: 42 questions in 90 minutes.
  • Section II, Free Response: 4 questions in 90 minutes.
  • A graphing calculator with statistical capabilities is expected on both sections.

Questions students ask

Why do we square the deviations before adding them?

Because the deviations from the mean always add to 0. For the five commute times with mean 14, the deviations −6, −4, −2, 1 and 11 sum to 0, while their squares sum to 178.

What happens to the statistics if I convert minutes to seconds?

Multiplying every value by 60 multiplies every measure of center, position and variability by 60. The getting-ready times' IQR of 12 minutes becomes 720 seconds.

If I add the same number to every value, does the standard deviation change?

No. Adding a constant shifts the mean, the median and the quartiles by that constant, but the range, IQR and standard deviation stay put, because the distances between values do not change. In a Celsius to Fahrenheit conversion, only the 1.8 affects the spread; the 32 shifts the center.

Do the two outlier rules always agree?

No. An extreme value inflates the standard deviation, which pushes the two standard deviation cutoffs farther out, so that rule can miss a value the 1.5×IQR rule catches. When a question names a rule, use that one.

When should I report the mean and standard deviation instead of the median and IQR?

When the distribution is roughly symmetric with no outliers. If it is strongly skewed or has outliers, the median and IQR describe it better, because they resist the extreme values.

How can a mean be bigger than almost every value in the data?

One huge value can do it. Nine follower counts that include one of 48,000 have a mean of about 5,736, more than eight times any of the other eight counts, while the median is 450.

Course alignment, for teachers

AP Statistics topic 1.7, Unit 1: Exploring One-Variable Data and Collecting Data.

  • Skill 3.B: Calculate summary statistics, relative positions of points within a distribution, and predicted responses.
  • Skill 4.A: Describe and compare tabular and graphical representations of data, as well as summary statistics.
  • Skill 4.B: Justify a claim based on statistical calculations and results.