Skip to content

Unit 1: Exploring One-Variable Data and Collecting Data

Summary Statistics for One Quantitative Variable

Calculate and interpret the mean, median, quartiles, percentiles, range, IQR and standard deviation, flag outliers, and choose the right summary for skewed data.

Topic 1.7 · 11 min read

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 nn values x1,x2,…,xnx_1, x_2, \ldots, x_n,

xˉ=1n∑i=1nxi=∑xin.\bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i = \frac{\sum x_i}{n}.

The symbol xˉ\bar{x} ("x-bar") is the sample mean, and xix_i is the iith value. Physically, the mean is the balance point: if each value were a weight on a ruler, the ruler would balance at xˉ\bar{x}. 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 n+12\frac{n+1}{2}. With an even number there are two middle values, and the median is their mean. For 2, 5, 9, 11 the median is 5+92=7\frac{5 + 9}{2} = 7, 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 xˉ\bar{x}, sxs_x, nn, the minimum, Q1Q_1, the median, Q3Q_3 and the maximum.

Position: quartiles and percentiles

The median splits the sorted data into a lower half and an upper half. The first quartile, Q1Q_1, is the median of the lower half, and the third quartile, Q3Q_3, is the median of the upper half. When nn is odd, the median itself belongs to neither half. (The median is sometimes called Q2Q_2.) About 25% of the values are at or below Q1Q_1 and about 75% are at or below Q3Q_3, so the middle half of the data lies between Q1Q_1 and Q3Q_3.

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 Q1=3+42=3.5Q_1 = \frac{3 + 4}{2} = 3.5; the upper half is 9, 10, 12, 15, so Q3=10+122=11Q_3 = \frac{10 + 12}{2} = 11. 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 ppth percentile is the value with p%p\% of the data at or below it. Q1Q_1 is the 25th percentile, the median the 50th, Q3Q_3 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

IQR=Q3−Q1,\text{IQR} = Q_3 - Q_1,

the width of the interval holding the middle 50% of the data. In the 9-value example, IQR=11−3.5=7.5\text{IQR} = 11 - 3.5 = 7.5.

The standard deviation measures how far values typically are from the mean. The sample standard deviation is

s=1n−1∑i=1n(xi−xˉ)2.s = \sqrt{\frac{1}{n-1}\sum_{i=1}^{n}\left(x_i - \bar{x}\right)^2}.

Read it from the inside out. Each deviation xi−xˉx_i - \bar{x} 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 n−1n - 1 gives the sample variance, s2s^2, and the square root brings the units back to the units of the data. Dividing by n−1n - 1 rather than nn makes s2s^2 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. s=0s = 0 only when every value is the same; otherwise s>0s > 0.

What changing units does

Converting every value with the same rule changes the statistics in a predictable way.

  • Adding a constant aa to every value shifts every measure of center and position (mean, median, quartiles, percentiles, minimum, maximum) by aa, 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 bb multiplies every measure of center and position by bb and every measure of spread by bb as well. The variance is multiplied by b2b^2.

Converting Fahrenheit to Celsius uses both: C=59(F−32)C = \frac{5}{9}(F - 32). Subtracting 32 moves the centers but not the spread; then multiplying by 59\frac{5}{9} 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

Worked exampleExample 1: mean, median and standard deviation by hand

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. xˉ=3+5+6+8+10+166=486=8\bar{x} = \frac{3 + 5 + 6 + 8 + 10 + 16}{6} = \frac{48}{6} = 8 minutes.

Median. With n=6n = 6, the middle values are the 3rd and 4th, 6 and 8, so the median is 6+82=7\frac{6 + 8}{2} = 7 minutes.

Standard deviation. Set up the deviations and their squares so nothing gets lost:

xixi−xˉ(xi−xˉ)23−5255−396−24800102416864\begin{array}{c|c|c} x_i & x_i - \bar{x} & (x_i - \bar{x})^2 \\ \hline 3 & -5 & 25 \\ 5 & -3 & 9 \\ 6 & -2 & 4 \\ 8 & 0 & 0 \\ 10 & 2 & 4 \\ 16 & 8 & 64 \end{array}

The deviations add to −5−3−2+0+2+8=0-5 - 3 - 2 + 0 + 2 + 8 = 0, which is a quick check on the mean. The squares add to 106, so

s2=1066−1=21.2,s=21.2≈4.60 minutes.s^2 = \frac{106}{6 - 1} = 21.2, \qquad s = \sqrt{21.2} \approx 4.60 \text{ minutes}.

Interpretation. The arrival delays of these flights typically vary by about 4.60 minutes from the mean delay of 8 minutes.

Worked exampleExample 2: quartiles, percentiles, outliers and resistance

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 xˉ≈17.07\bar{x} \approx 17.07 hours and the standard deviation is s≈7.55s \approx 7.55 hours. (a) Find the five values min, Q1Q_1, median, Q3Q_3, 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 n=15n = 15, 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 Q1=Q_1 = 12 hours. The upper half is 17, 18, 18, 20, 22, 24, 39, so Q3=Q_3 = 20 hours. The minimum is 8 and the maximum 39 hours, and IQR=20−12=\text{IQR} = 20 - 12 = 8 hours.

(b) 1.5 × IQR rule: 1.5×8=121.5 \times 8 = 12, so the fences are 12−12=012 - 12 = 0 and 20+12=3220 + 12 = 32 hours. Since 39>3239 > 32, it is an outlier. 2 standard deviation rule: xˉ+2s≈17.07+2(7.55)=32.17\bar{x} + 2s \approx 17.07 + 2(7.55) = 32.17 hours. Since 39>32.1739 > 32.17, it is an outlier by this rule too.

(c) 13 of the 15 values are at or below 22, and 1315≈0.867\frac{13}{15} \approx 0.867, 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 256−39=217256 - 39 = 217, so the mean is 21714=15.5\frac{217}{14} = 15.5 hours, down about 1.57 hours. The median is now the mean of the 7th and 8th values, 15+162=15.5\frac{15 + 16}{2} = 15.5 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.

Worked exampleExample 3: converting units

Daily high temperatures in a city for one month had mean 68∘68^\circF, median 66∘66^\circF, standard deviation 9∘9^\circF and IQR 12∘12^\circF. Find each statistic in degrees Celsius, using C=59(F−32)C = \frac{5}{9}(F - 32).

Show solution

Centers move with both steps of the conversion. Mean: 59(68−32)=59(36)=20∘\frac{5}{9}(68 - 32) = \frac{5}{9}(36) = 20^\circC. Median: 59(66−32)=59(34)≈18.9∘\frac{5}{9}(66 - 32) = \frac{5}{9}(34) \approx 18.9^\circC.

Spreads ignore the "−32-32", because subtracting the same number from every temperature doesn't change how far apart they are, but they are scaled by 59\frac{5}{9}. Standard deviation: 59(9)=5∘\frac{5}{9}(9) = 5^\circC. IQR: 59(12)≈6.67∘\frac{5}{9}(12) \approx 6.67^\circC. (The variance goes from 8181 to 81⋅(59)2=2581 \cdot \left(\frac{5}{9}\right)^2 = 25, in squared degrees Celsius.)

Worked exampleExample 4: choosing and using summary statistics (exam style)

A store compares two delivery services using random samples of 40 deliveries each. Delivery times, in minutes:

xˉsMinQ1MedianQ3MaxService A31.211.81822263395Service B29.05.11925293341\begin{array}{l|ccccccc} & \bar{x} & s & \text{Min} & Q_1 & \text{Median} & Q_3 & \text{Max} \\ \hline \text{Service A} & 31.2 & 11.8 & 18 & 22 & 26 & 33 & 95 \\ \text{Service B} & 29.0 & 5.1 & 19 & 25 & 29 & 33 & 41 \end{array}

(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 Q3Q_3. Check it: IQRA=33−22=11\text{IQR}_A = 33 - 22 = 11, and the upper fence is 33+1.5(11)=49.533 + 1.5(11) = 49.5 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: IQRA=11\text{IQR}_A = 11 minutes and IQRB=33−25=8\text{IQR}_B = 33 - 25 = 8 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 sAs_A 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 xˉ±2s\bar{x} \pm 2s, 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

  1. 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?

    1. A

      Mean 40 ounces, standard deviation 0.4 ounces

    2. B

      Mean 40 ounces, standard deviation 6.4 ounces

    3. C

      Mean 18.5 ounces, standard deviation 16.4 ounces

    4. 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.

  2. Question 2

    A data set has five-number summary minimum 2, Q1=10Q_1 = 10, median 14, Q3=18Q_3 = 18, 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.

  3. 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?

    1. A

      The median

    2. B

      The first quartile

    3. C

      The interquartile range

    4. 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.

  4. 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.

Go deeper