Math Core

Lesson 1.5 · Exploring One-Variable Data

Summary statistics

A graph shows the shape of a distribution; numbers pin down its center and spread precisely. This lesson covers the summary statistics you'll use all year in AP Statistics: the mean and median for center; the standard deviation, range and interquartile range for spread; and percentiles for describing where one value sits within a distribution.

Statistics and parameters

A number that describes a sample is called a statistic. A number that describes an entire population is called a parameter. For now you'll mostly compute statistics from data in hand. The notation reflects the difference: the sample mean is xˉ\bar{x} and the sample standard deviation is sxs_x, while the population mean and standard deviation are written μ\mu and σ\sigma.

Measures of center

The mean of nn values x1,x2,…,xnx_1, x_2, \dots, x_n is

xˉ=x1+x2+⋯+xnn=∑xin.\bar{x} = \frac{x_1 + x_2 + \cdots + x_n}{n} = \frac{\sum x_i}{n}.

The symbol ∑\sum (capital sigma) means "add up." The median is the middle value of the ordered data: the value in position n+12\dfrac{n + 1}{2}. When nn is even, it is the average of the two middle values.

The mean is the balance point of the distribution. Because it uses the size of every value, a single extreme value can pull it a long way. The median depends only on the order of the values, so extreme values barely affect it. We say the median is resistant and the mean is not resistant.

Mean versus median and shape

  • Roughly symmetric: mean ≈\approx median.
  • Skewed right: the long right tail pulls the mean above the median.
  • Skewed left: the long left tail pulls the mean below the median.

For skewed data or data with outliers, the median is usually the better measure of a typical value.

Measures of spread

The range is maximum−minimum\text{maximum} - \text{minimum}. It is easy to compute but depends only on the two most extreme values.

The quartiles split the ordered data into quarters. Q1Q_1 is the median of the values to the left of the overall median, and Q3Q_3 is the median of the values to its right. (When nn is odd, leave the median itself out of both halves.) The interquartile range is

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

the spread of the middle half of the data. The IQR is resistant.

The standard deviation measures the typical distance of the values from the mean.

Definition

Sample standard deviation

sx=∑(xi−xˉ)2n−1s_x = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n - 1}}

Each xi−xˉx_i - \bar{x} is a deviation from the mean. The quantity under the square root, sx2s_x^2, is the variance. The standard deviation has the same units as the data. It is 00 only when every value is identical, and it is not resistant: one outlier can inflate it a lot.

Why n−1n - 1 instead of nn? The deviations always add to 00, so once you know n−1n - 1 of them, the last one is determined. There are only n−1n - 1 "free" deviations, called the degrees of freedom. Dividing by n−1n - 1 also makes sx2s_x^2 a better estimate of the population variance. Your calculator reports both sxs_x and σx\sigma_x (which divides by nn); in AP Statistics, use sxs_x for sample data.

Worked example: Mean, median and standard deviation

A barista timed how many minutes six drink orders took: 8,11,12,14,15,188, 11, 12, 14, 15, 18. Find the mean, median and standard deviation, and interpret the standard deviation.

Mean. xˉ=8+11+12+14+15+186=786=13\bar{x} = \dfrac{8 + 11 + 12 + 14 + 15 + 18}{6} = \dfrac{78}{6} = 13 minutes.

Median. The two middle values are 1212 and 1414, so the median is 1313 minutes.

Standard deviation. The deviations are −5,−2,−1,1,2,5-5, -2, -1, 1, 2, 5 (they add to 00). Their squares are 25,4,1,1,4,2525, 4, 1, 1, 4, 25, which add to 6060. So

sx=606−1=12≈3.46 minutes.s_x = \sqrt{\frac{60}{6 - 1}} = \sqrt{12} \approx 3.46 \text{ minutes}.

Interpretation. The time to make a drink order typically varies by about 3.463.46 minutes from the mean of 1313 minutes.

That last sentence is the standard AP interpretation of a standard deviation: "The [variable] typically varies by about [s] [units] from the mean of [x̄]."

Worked example: Quartiles and IQR

Find the quartiles and IQR of these 1111 quiz scores:

52, 61, 64, 68, 70, 73, 75, 78, 81, 84, 9652, \ 61, \ 64, \ 68, \ 70, \ 73, \ 75, \ 78, \ 81, \ 84, \ 96

The median is the 6th value, 7373. The lower half is 52,61,64,68,7052, 61, 64, 68, 70, so Q1=64Q_1 = 64. The upper half is 75,78,81,84,9675, 78, 81, 84, 96, so Q3=81Q_3 = 81. The IQR is 81−64=1781 - 64 = 17 points: the middle half of the scores span 1717 points.

Percentiles and cumulative relative frequency

The ppth percentile of a distribution is the value with p%p\% of the data less than or equal to it. If your score is at the 8080th percentile, about 80%80\% of the scores are at or below yours. The median is the 5050th percentile, Q1Q_1 is about the 2525th, and Q3Q_3 is about the 7575th.

A cumulative relative frequency graph plots, for each value xx, the proportion of the data less than or equal to xx. It lets you read percentiles in both directions: from a value up to its percentile, or from a percentile across to its value.

Worked example: Reading a cumulative relative frequency graph

The graph shows the cumulative relative frequency of the shopping times of 4040 store customers. (For example, 22.5%22.5\% of the customers shopped for 2020 minutes or less.)

Cumulative relative frequency of shopping time (minutes)Open in grapher →
  1. At what percentile is a shopping time of 4040 minutes?
  2. Estimate the median shopping time.

Solutions.

  1. Go up from 4040 to the graph: the height is 0.750.75. A 4040-minute trip is at about the 75th percentile.
  2. Go across from 0.50.5 to the graph. It crosses between 2020 minutes (height 0.2250.225) and 3030 minutes (height 0.5250.525), close to 3030. Assuming the times are spread evenly within that interval, the median is about 20+10⋅0.5−0.2250.525−0.225≈2920 + 10 \cdot \dfrac{0.5 - 0.225}{0.525 - 0.225} \approx 29 minutes.

Changing units: linear transformations

Converting units applies the same rule to every value, such as F=1.8C+32F = 1.8C + 32 for temperatures.

  • Adding a constant aa to every value adds aa to measures of center and location (mean, median, quartiles, percentiles) but does not change measures of spread (range, IQR, standard deviation).
  • Multiplying every value by a positive constant bb multiplies measures of center, location and spread by bb.
  • Neither changes the shape of the distribution.

Worked example: Celsius to Fahrenheit

The daily high temperatures in a city one spring had a mean of 20∘C20^\circ\text{C} and a standard deviation of 4∘C4^\circ\text{C}. Find the mean and standard deviation in degrees Fahrenheit.

Mean: 1.8⋅20+32=68∘F1.8 \cdot 20 + 32 = 68^\circ\text{F}. Standard deviation: multiplying by 1.81.8 scales the spread, and adding 3232 doesn't change it, so 1.8⋅4=7.2∘F1.8 \cdot 4 = 7.2^\circ\text{F}.

Common mistake

Two common slips: dividing by nn instead of n−1n - 1 when computing sxs_x by hand, and adding the constant to the standard deviation during a transformation. Shifting all values moves the whole distribution, but the distances between values, and so the spread, stay the same.

Practice

Practice 1

Find the sample standard deviation sxs_x of 4, 8, 9, 11, 134, \ 8, \ 9, \ 11, \ 13. Round to the nearest hundredth.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 2

Find the interquartile range of these 1010 values:

3, 7, 8, 10, 12, 15, 17, 19, 21, 303, \ 7, \ 8, \ 10, \ 12, \ 15, \ 17, \ 19, \ 21, \ 30

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

The distribution of the number of followers for accounts on a social media site is strongly skewed right. Which is most likely true?

Practice 4

Ten values have a mean of 5050. Then someone notices that one value was entered as 9595 when it should have been 5959. What is the mean after the error is corrected?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

Use the cumulative relative frequency graph of shopping times from the lesson. A customer shopped for exactly 5050 minutes. At what percentile is that time?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 6

The heights of the players on a soccer team have a mean of 6464 inches and a standard deviation of 2.52.5 inches. What is the standard deviation of their heights in centimeters? (11 inch =2.54= 2.54 cm.)

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

For a sample of apples, the weights have mean xˉ=152\bar{x} = 152 grams and standard deviation sx=11s_x = 11 grams. Which is the correct interpretation of sxs_x?

Practice 8

A teacher adds 55 points to every student's test score. Which statistics change?