Educerie · AP · Statistics
AP Statistics 1.7
Summary Statistics for One Quantitative Variable
How do we describe data about one variable, and how must the data be collected before we can trust what they say?
What you will learn
- Understand how to find the mean, median, quartiles and percentiles of a data set
- Know how to measure variability with the range, IQR and standard deviation
- Understand the two outlier rules and why they can disagree
- Know that the median and IQR are resistant and the mean, range and standard deviation are not
You must be able to
- Calculate the mean, median, quartiles, IQR and standard deviation, showing the formula
- Show whether a value is an outlier using the 1.5 IQR fences
- Apply the 2 standard deviation rule and compare it with the IQR rule
- Choose between the median and IQR or the mean and standard deviation, and say why
- State how a change of units changes each statistic
In the exam. Section I multiple choice, as a short calculation (a mean, a quartile, an outlier fence, a percentile) or a question on which statistic is unchanged by an outlier. In Section II, the data-analysis question asks you to find outliers by the 1.5 times IQR rule and to justify the measure of center or variability you use. The calculation is worth marks only when the work is shown.
1The data used in this note
A student records the number of text messages sent in one day by 12 classmates. Sorted from smallest to largest:
12, 15, 18, 20, 22, 25, 27, 30, 34, 38, 45, 90
Here . The calculations below are worked by hand so you can see the method. On the exam you may use technology for the mean, the median and the standard deviation, and you should still know what each is.
2Measures of center
Mean = the sum of the values divided by the number of values. For a sample it is written .
Median = the middle value of the ordered data. With an even number of values, take the mean of the two middle values.
Here the two middle values (the 6th and 7th) are 25 and 27, so the median is . With an odd number of values, use the one in the middle.
The mean is about 31.3 messages and the median is 26. They differ because of the 90, which pulls the mean up.
3Quartiles, percentiles, minimum and maximum
The minimum is the smallest value (12) and the maximum is the largest (90).
The first quartile, , is the median of the lower half of the ordered data. The third quartile, , is the median of the upper half. The median is . About 25% of the values are at or below , and about 75% are at or below . The quartiles mark the boundaries of the middle 50% of the data.
- Lower half (6 values): 12, 15, 18, 20, 22, 25. The middle two are 18 and 20, so .
- Upper half (6 values): 27, 30, 34, 38, 45, 90. The middle two are 34 and 38, so .
The course description takes each half from the end of the data to the position of the median. With an odd number of values, the median therefore belongs to both halves. Calculators and books can differ a little here, so use one method consistently and show your work. The data in this note have an even , where the halves are clear.
Percentile = the th percentile is the value with % of the data less than or equal to it. The first and third quartiles are the 25th and 75th percentiles.
Example: 10 of the 12 values are 38 or less, so 38 is at about the rd percentile. Say it in context: "about 83% of the 12 students sent 38 or fewer texts."
4Measures of variability
Range = maximum minus minimum.
Interquartile range (IQR) = the difference between the third and first quartiles. It is the width of the middle half of the data.
Standard deviation = a typical deviation of the data values from their mean. For a sample it is written .
Work it in steps. Subtract the mean from each value, square, add, divide by and take the square root.
| 12 | 373.78 | |
| 15 | 266.78 | |
| 18 | 177.78 | |
| 20 | 128.44 | |
| 22 | 87.11 | |
| 25 | 40.11 | |
| 27 | 18.78 | |
| 30 | 1.78 | |
| 34 | 2.67 | 7.11 |
| 38 | 6.67 | 44.44 |
| 45 | 13.67 | 186.78 |
| 90 | 58.67 | 3441.78 |
| Sum | 0 | 4774.67 |
The squared deviations add to 4774.67, and the deviations themselves add to 0 (a useful check). The square of the standard deviation, , is the sample variance.
The standard deviation is about 20.8 messages. Most of that comes from the 90, whose squared deviation (3441.78) is more than all the other eleven added together.
On the exam, a calculator gives and in its one-variable statistics screen. Write the formula and the values you read from it, because a bare number is not enough work.
5Outliers: two rules
There are many ways to flag outliers. Two are used often.
The 1.5 times IQR rule. A value is an outlier if it is more than 1.5 IQR above or more than 1.5 IQR below .
No value is below . The value 90 is above 61.5. So 90 is an outlier by this rule, and no other value is.
The 2 standard deviation rule. A value is an outlier if it is more than 2 standard deviations above or below the mean.
The value 90 lies above 73.0, so it is an outlier here too.
The two rules do not always agree. Take the clinic waiting times (Topic 1.5), where , , , :
| Rule | Fence or limit | Values flagged |
|---|---|---|
| 1.5 IQR | upper fence | 58 |
| 2 standard deviations | upper limit | 45 and 58 |
The rule is a convention, not a law. State which rule you used and show the calculation. When a question says "show that", you need the fence, the value and the comparison.
6Resistant and non-resistant statistics
A statistic is resistant if outliers do not greatly, if at all, affect its value.
- Resistant: the median and the IQR.
- Not resistant: the mean, the range and the standard deviation.
Test it. Replace the 90 with 40, so the largest value becomes 45. Figure 1 compares the two data sets.
| Statistic | With 90 | With 40 in its place |
|---|---|---|
| Mean | 31.3 | 27.2 |
| Median | 26 | 26 |
| IQR | 17 | 17 |
| Range | 78 | 33 |
| Standard deviation | 20.8 | 10.4 |
The median and IQR did not move. The mean, the range and the standard deviation changed a lot. That is what "resistant" means in practice.
7Choosing a statistic
Justifying the choice of a summary is a regular part of the free-response questions.
- Skewed, or with outliers: use the median for center and the IQR for variability. Outliers do not distort them.
- Approximately symmetric with no outliers: the mean and standard deviation are good choices, because they use every value.
Example (invented): two classes of 20 students recorded their daily homework time in minutes. Class A has median 59, IQR 16, mean 58.7 and standard deviation 11.6. Class B has median 45, IQR 29, mean 52.1 and standard deviation 26.9, and its largest value, 130, is an outlier.
For Class B, the mean (52.1) is above the median (45) because the outlier pulls it up. A fair statement about a typical student in Class B uses the median, 45 minutes. Say it: "Because Class B has an outlier, the median is the better measure of center, since it is not affected by the 130."
The data in this example are shown in Topic 1.9.
8Changing units
Changing the units of measurement changes the calculated statistics. If you convert every value from one unit to another by multiplying by a number, each measure of center or position, and each measure of variability, is multiplied by that same number.
Example: the clinic waiting times in minutes become hours when divided by 60.
| Statistic | In minutes | In hours (divide by 60) |
|---|---|---|
| Median | 14.5 | 0.242 |
| Mean | 18.27 | 0.304 |
| IQR | 15 | 0.25 |
| Standard deviation | 12.83 | 0.214 |
| Range | 54 | 0.9 |
A conversion that also adds a number, such as temperature from degrees Celsius to degrees Fahrenheit, multiplies and then adds. Measures of center and position follow both steps. Measures of variability (range, IQR, standard deviation) are changed only by the multiplication.
Always give the unit with a statistic. "The median is 14.5 minutes" and "0.242 hours" are the same fact.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.