One-variable data · Lesson 2

Frequency tables, dot plots and histograms

The SAT often shows data as a summary instead of a list. A frequency table lists each value once, next to its frequency, the number of times it occurs. A dot plot shows the same thing with a stack of dots above each value, one dot per data value. A bar graph of frequencies works the same way, with bar heights in place of dots.

The number of data values is the sum of the frequencies, not the number of rows. To get the sum of the data, multiply each value by its frequency and add the products. Then mean = (sum of value × frequency) ÷ (sum of frequencies). For example, a value of 8 that appears 5 times adds 8⋅5=408 \cdot 5 = 40 to the sum and 5 to the count.

For the median, imagine writing every value out in order. With nn values the median is at position n+12\frac{n + 1}{2} (halfway between two positions when nn is even). Add the frequencies from the smallest value up until the running total reaches that position. The middle row of the table is the median only if the counts happen to put it there.

A histogram groups values into intervals, such as 10 to 19, and each bar shows how many values fall in that interval. You can't see the exact values, so you can't find the exact mean or median. You can usually find which interval contains the median with the same running-total method: it works when the median's position (both middle positions, if the count is even) falls inside one bar.

Worked example Easy

The table shows the number of pets owned by each of the 20 students in a class.

Number of petsNumber of students
04
17
25
33
41

What is the mean number of pets owned by these 20 students?

  1. 11
  2. 1.51.5Answer
  3. 22
  4. 44

How to solve it

  1. The number of students is the sum of the frequencies: 4+7+5+3+1=204 + 7 + 5 + 3 + 1 = 20.
  2. Multiply each number of pets by its frequency and add: 0⋅4+1⋅7+2⋅5+3⋅3+4⋅1=0+7+10+9+4=300 \cdot 4 + 1 \cdot 7 + 2 \cdot 5 + 3 \cdot 3 + 4 \cdot 1 = 0 + 7 + 10 + 9 + 4 = 30 pets in all.
  3. The mean is 3020=1.5\frac{30}{20} = 1.5 pets per student.

Why each choice is right or wrong

  • A. Incorrect. 1 is the median (and the mode): in order, the 10th and 11th students both own 1 pet. The question asks for the mean, 3020=1.5\frac{30}{20} = 1.5.
  • B. Correct. The 20 students own 0⋅4+1⋅7+2⋅5+3⋅3+4⋅1=300 \cdot 4 + 1 \cdot 7 + 2 \cdot 5 + 3 \cdot 3 + 4 \cdot 1 = 30 pets, so the mean is 3020=1.5\frac{30}{20} = 1.5.
  • C. Incorrect. 2 is the mean of the first column alone, 0+1+2+3+45=2\frac{0 + 1 + 2 + 3 + 4}{5} = 2. That counts each number of pets once, no matter how many students own it.
  • D. Incorrect. 4 is the mean of the frequency column, 205=4\frac{20}{5} = 4. The frequencies count students; they are not numbers of pets.

Worked example Medium

The dot plot shows the number of goals a soccer team scored in each of its 15 games this season.
Goals scored in each of 15 games1234567012345Goals in a gameNumber of games
Goals scored in each of 15 games Dot plot of 15 games, one dot per game. Dots above each number of goals: 1 goal, 2 dots; 2 goals, 4 dots; 3 goals, 3 dots; 4 goals, 2 dots; 5 goals, 1 dot; 6 goals, 2 dots; 7 goals, 1 dot.

What is the median number of goals per game?

  1. 22
  2. 33Answer
  3. 3.43.4
  4. 44

How to solve it

  1. Each dot is one game, so there are 15 values. The median is the value at position 15+12=8\frac{15 + 1}{2} = 8.
  2. Count dots from the left: the 1-goal stack holds games 1 and 2, the 2-goal stack holds games 3 through 6, and the 3-goal stack holds games 7 through 9.
  3. The 8th game is in the 3-goal stack, so the median is 3 goals.

Why each choice is right or wrong

  • A. Incorrect. 2 goals has the tallest stack, so it is the mode. The median is the 8th of the 15 values in order, and only 6 values are 1 or 2, so the 8th is 3.
  • B. Correct. There are 15 values, so the median is the 8th. The running totals are 2 (1 goal), 6 (2 goals) and 9 (3 goals), so the 8th value is 3.
  • C. Incorrect. 3.4 is the mean: 1⋅2+2⋅4+3⋅3+4⋅2+5⋅1+6⋅2+7⋅115=5115=3.4\frac{1 \cdot 2 + 2 \cdot 4 + 3 \cdot 3 + 4 \cdot 2 + 5 \cdot 1 + 6 \cdot 2 + 7 \cdot 1}{15} = \frac{51}{15} = 3.4. The question asks for the median.
  • D. Incorrect. 4 is the middle of the scale from 1 to 7. The median depends on where the dots are, and 9 of the 15 dots sit at 3 goals or fewer.

Trap Averaging the frequency column

In a table of values and frequencies, the frequency column counts how many times each value occurs. Adding the frequencies gives the number of data values, not their total, and the mean of the frequencies is not the mean of the data. Multiply each value by its frequency first.

Trap Taking the middle row or the tallest bar

The middle row of a frequency table, the middle of a graph's scale and the tallest bar or stack are all tempting, and in general none of them is the median. Find the median's position, n+12\frac{n + 1}{2}, and count frequencies up to it.

Desmos When Desmos is faster

For the mean of a frequency table, type the values and the frequencies as two lists: V = [0, 1, 2, 3, 4] and N = [4, 7, 5, 3, 1]. Then type total(VN)/total(N). Desmos multiplies the lists term by term, so total(VN) is the sum of the data, 30, and total(N) is the number of values, 20, giving 1.5.

Don't type mean(N). That is the mean of the frequencies, the trap from this lesson.

For a median, counting frequencies by hand is quicker than typing every value out. For a histogram, Desmos can't help with the median: the exact values aren't given.