Topic 1.6 described center and spread by eye. Summary statistics pin them down as numbers you can calculate, compare and defend: a statistic is a number computed from sample data. There are two families. Measures of center and position say where values sit on the number line; measures of variability say how spread out they are. Choosing which ones to report depends on the shape of the data, and that choice is itself something the exam asks you to justify.
Center: the mean and the median
The mean is the sum of the values divided by how many there are. For a sample of values ,
The symbol ("x-bar") is the sample mean, and is the th value. Physically, the mean is the balance point: if each value were a weight on a ruler, the ruler would balance at . That is why one far-out value moves the mean a lot; a heavy weight at the end of a ruler shifts the balance point toward it.
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 one, in position . With an even number there are two middle values, and the median is their mean. For 2, 5, 9, 11 the median is , a number that isn't in the data at all, which is fine. The smallest value is the minimum and the largest is the maximum.
Both can be found by hand or with technology. On a TI-84, enter the data in a list and run 1-Var Stats: it reports , , , the minimum, , the median, and the maximum.
Position: quartiles and percentiles
The median splits the sorted data into a lower half and an upper half. The first quartile, , is the median of the lower half, and the third quartile, , is the median of the upper half. When is odd, the median itself belongs to neither half. (The median is sometimes called .) About 25% of the values are at or below and about 75% are at or below , so the middle half of the data lies between and .
For example, the 9 sorted values 1, 3, 4, 6, 7, 9, 10, 12, 15 have median 7 (the 5th value). The lower half is 1, 3, 4, 6, so ; the upper half is 9, 10, 12, 15, so . Software packages use slightly different quartile rules, so a spreadsheet can disagree with your calculator. The halves method shown here is the one the TI-84 uses; the AP framework doesn't prescribe a single quartile rule.
The th percentile is the value with of the data at or below it. is the 25th percentile, the median the 50th, the 75th. A percentile is a position, not a score: a student at the 90th percentile on a test did as well as or better than 90% of test takers, whatever their actual score was.
Variability: range, IQR and standard deviation
The range is maximum minus minimum. It depends only on the two most extreme values, so one unusual observation can make it huge.
The interquartile range is
the width of the interval holding the middle 50% of the data. In the 9-value example, .
The standard deviation measures how far values typically are from the mean. The sample standard deviation is
Read it from the inside out. Each deviation says how far one value is from the mean. The deviations always add to 0 (the mean is the balance point), so you can't average them directly; squaring makes them all positive. Adding the squares and dividing by gives the sample variance, , and the square root brings the units back to the units of the data. Dividing by rather than makes a better estimate of the population's variance, because deviations measured from the sample's own mean come out a little too small on average. only when every value is the same; otherwise .
What changing units does
Converting every value with the same rule changes the statistics in a predictable way.
- Adding a constant to every value shifts every measure of center and position (mean, median, quartiles, percentiles, minimum, maximum) by , and leaves every measure of spread (range, IQR, standard deviation) unchanged. Sliding all the data along the number line doesn't spread it out.
- Multiplying every value by a positive constant multiplies every measure of center and position by and every measure of spread by as well. The variance is multiplied by .
Converting Fahrenheit to Celsius uses both: . Subtracting 32 moves the centers but not the spread; then multiplying by scales everything.
Outliers and resistance
Topic 1.6 called a value a "possible outlier" by eye. Two numerical rules make the call:
The two rules don't always agree, because they are built from different statistics. Name the rule you are using.
A statistic is resistant (or robust) if extreme values barely affect it. The median and IQR are resistant: making the largest value ten times larger leaves the middle of the sorted list where it was. The mean, standard deviation and range are not resistant: the mean is a balance point, and the standard deviation squares each deviation, so a single far-out value moves them a lot.
That gives the rule for choosing a summary. For a distribution that is skewed or has outliers, report the median and IQR, which describe the bulk of the data. For a roughly symmetric distribution without outliers, the mean and standard deviation are appropriate, and they are the statistics that later inference is built on.
Summary statistics also let you compare two independent samples (two separate groups, such as two classes or two companies): compare their centers, their variability and their outliers, and use the gap between mean and median as a hint about shape. Topic 1.8 explains why a mean well above the median signals right skew, and Topic 1.9 covers comparisons in full.
Worked examples
An airline recorded how many minutes late six flights arrived: 3, 5, 6, 8, 10, 16. Find the mean, median and standard deviation, and interpret the standard deviation.
Show solution
Mean. minutes.
Median. With , the middle values are the 3rd and 4th, 6 and 8, so the median is minutes.
Standard deviation. Set up the deviations and their squares so nothing gets lost:
The deviations add to , which is a quick check on the mean. The squares add to 106, so
Interpretation. The arrival delays of these flights typically vary by about 4.60 minutes from the mean delay of 8 minutes.
The hours worked last week by the 15 part-time employees of a café, sorted, were
8, 10, 11, 12, 12, 14, 15, 16, 17, 18, 18, 20, 22, 24, 39.
The mean is hours and the standard deviation is hours. (a) Find the five values min, , median, , max and the IQR. (b) Is 39 hours an outlier by each rule? (c) At what percentile is an employee who worked 22 hours? (d) If the 39 is removed, which changes more, the mean or the median?
Show solution
(a) With , the median is the 8th value, 16 hours. The lower half is the 7 values below it, 8, 10, 11, 12, 12, 14, 15, whose median is 12 hours. The upper half is 17, 18, 18, 20, 22, 24, 39, so 20 hours. The minimum is 8 and the maximum 39 hours, and 8 hours.
(b) 1.5 × IQR rule: , so the fences are and hours. Since , it is an outlier. 2 standard deviation rule: hours. Since , it is an outlier by this rule too.
(c) 13 of the 15 values are at or below 22, and , so 22 hours is at about the 87th percentile: about 87% of the employees worked 22 hours or fewer.
(d) Without the 39, the 14 remaining values add to , so the mean is hours, down about 1.57 hours. The median is now the mean of the 7th and 8th values, hours, down only 0.5 hours. The mean changes more, because it is not resistant: it was pulled toward the outlier, while the median only shifted by half a position.
Daily high temperatures in a city for one month had mean F, median F, standard deviation F and IQR F. Find each statistic in degrees Celsius, using .
Show solution
Centers move with both steps of the conversion. Mean: C. Median: C.
Spreads ignore the "", because subtracting the same number from every temperature doesn't change how far apart they are, but they are scaled by . Standard deviation: C. IQR: C. (The variance goes from to , in squared degrees Celsius.)
A store compares two delivery services using random samples of 40 deliveries each. Delivery times, in minutes:
(a) A manager says Service B is faster because its mean is lower. Explain why the mean is not the best measure of center for Service A, and use a better one to compare the services. (b) Which service has more variable delivery times? Justify with an appropriate statistic.
Show solution
(a) For Service A, the mean (31.2 minutes) is well above the median (26 minutes), and the maximum of 95 minutes is far above . Check it: , and the upper fence is minutes, so 95 minutes is an outlier. The mean is not resistant, so the 95-minute delivery, along with the long right tail it sits in, pulled Service A's mean up. The median is resistant, so compare medians: Service A's median delivery time (26 minutes) is less than Service B's (29 minutes). A typical Service A delivery is faster, even though its mean is higher.
(b) Use the IQR, which isn't inflated by the outlier: minutes and minutes. The middle half of Service A's delivery times is spread over a wider interval, so Service A's delivery times are more variable. (The standard deviations, 11.8 against 5.1 minutes, point the same way, but is inflated by the 95-minute delivery, which is why the IQR is the better choice here.)
Where students lose points
On the exam
Expect to compute a mean, median or quartile by hand from a short list, and to use 1-Var Stats for anything longer; with a calculator, write down the statistics it gave you rather than just the final answer. An outlier question needs the computed fence or the value of , a comparison with the value, and the conclusion. When asked which statistic is more appropriate, the justification is resistance: name the skew or outlier and say that the median or IQR isn't strongly affected by it.
Check yourself
Question 1
The weights of 30 packages have mean 2.5 pounds and standard deviation 0.4 pounds. Each weight is converted to ounces by multiplying by 16. What are the mean and standard deviation of the weights in ounces?
- A
Mean 40 ounces, standard deviation 0.4 ounces
- B
Mean 40 ounces, standard deviation 6.4 ounces
- C
Mean 18.5 ounces, standard deviation 16.4 ounces
- D
Mean 40 ounces, standard deviation 102.4 ounces
Show answer
B
Multiplying every value by 16 multiplies both the mean and the standard deviation by 16: 2.5(16) = 40 and 0.4(16) = 6.4. A forgets that spread scales too. C adds 16 instead of multiplying. D multiplies by 16 squared, which is what happens to the variance, not the standard deviation.
- A
Question 2
A data set has five-number summary minimum 2, , median 14, , maximum 31. Using the 1.5 × IQR rule, does the data set contain any outliers? Show the fences.
Show answer
Yes. IQR = 18 − 10 = 8 and 1.5 × 8 = 12, so the fences are 10 − 12 = −2 and 18 + 12 = 30. The maximum, 31, is above 30, so it is an outlier. The minimum, 2, is above −2, so there are no low outliers.
The five-number summary is enough to check the extremes: if the maximum is beyond the upper fence, at least that value is an outlier, and if the minimum is inside the lower fence, nothing below the median can be.
Question 3
In a data set of 50 values, the largest value is positive. It is doubled, so it stays the largest value. Which of these statistics must change?
- A
The median
- B
The first quartile
- C
The interquartile range
- D
The standard deviation
Show answer
D
The standard deviation uses every value's distance from the mean, and both the mean and that largest deviation change. The median, quartiles and IQR depend only on the values in the middle positions of the sorted list, which stay where they were, so they are resistant to the change.
- A
Question 4
In a school's 400-meter race, Maya's time was at the 20th percentile of all runners' times. Interpret this, and say whether it is a good result.
Show answer
About 20% of the runners had times at or below Maya's. Because a lower time is faster, she was faster than roughly 80% of the runners, which is a good result.
A percentile gives position in the sorted data, not a score. Whether a low percentile is good depends on the variable: for race times, low is fast.