M4.7.2 Chapter 2
Averages from frequency tables
Mei opens 25 pea pods and counts the peas in each. How can she find the mean number of peas without adding 25 numbers?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Find the mean from a frequency table
- Estimate the mean from grouped data
- Find the group that holds the median
Mei opens 25 pods. Instead of writing 25 numbers, she writes a frequency table. It lists each number of peas, and the frequency, f, which is how many pods have that number.
To find the mean we need two totals: the number of peas, and the number of pods. A row of the table is a group of equal values. Nine pods with 5 peas each hold 9 × 5 = 45 peas. So multiply x by f for every row.
Draw it first
Build the mean from the table
1 Write each number of peas, x, and its frequency, f.
2 Add a column f × x. Add up the f column and the f × x column. The totals are 25 pods and 128 peas.
The mean is the total of all the values divided by how many values there are. In symbols, mean = ∑fx ÷ ∑f. The sign ∑ means "add up". So ∑fx = 128 is the total number of peas, and ∑f = 25 is the number of pods.
Worked example
Find the mean number of peas in a pod, from the table of 25 pods.
- Multiply each x by f: 3 × 2 = 6, 4 × 5 = 20, 5 × 9 = 45, 6 × 6 = 36 and 7 × 3 = 21.
- Add the f × x column: 6 + 20 + 45 + 36 + 21 = 128. That is the number of peas.
- Add the frequencies: 2 + 5 + 9 + 6 + 3 = 25. That is the number of pods.
- Mean = 128 ÷ 25 = 5.12 peas in a pod.
Answer: 5.12 peas in a pod
A wrong idea many people have
The mean of a frequency table is the mean of the x column.
Why it feels right: The x column lists the values, so it looks like the data.
The test that breaks it: The x values 3, 4, 5, 6 and 7 have mean 5. But 9 pods have more than 5 peas and only 7 have fewer, so the real mean is a little above 5. It is 5.12.
What is true: Each x counts f times. Multiply x by f first, then divide by the total frequency, not by the number of rows.
See it three ways
With things
A bowl holds 10 pods. Four pods have 2 peas each and six pods have 5 peas each.
As a picture
In symbols
f × x: 4 × 2 = 8 and 6 × 5 = 30. ∑fx = 38 peas. ∑f = 10 pods. Mean = 38 ÷ 10 = 3.8.
Now measured data. Times and heights are often grouped in classes. The table of 40 journey times below says 4 journeys took 0 or more minutes but under 10. We no longer know each time, only its class.
To find a mean we need one value for each class. We use the midpoint, the number halfway between the two ends of the class. For 10 ≤ t < 20 the midpoint is (10 + 20) ÷ 2 = 15. We pretend every journey in the class took 15 minutes.
This is a guess, so the answer is only an estimate. Some journeys took less than 15 minutes and some more. We hope the errors cancel.
Worked example
Estimate the mean journey time from the table of 40 journeys.
- The midpoints are 5, 15, 25, 35 and 45.
- Multiply each midpoint by f: 5 × 4 = 20, 15 × 11 = 165, 25 × 15 = 375, 35 × 7 = 245 and 45 × 3 = 135.
- Add them: 20 + 165 + 375 + 245 + 135 = 940.
- Estimate of the mean = 940 ÷ 40 = 23.5 minutes.
Answer: 23.5 minutes
How far can the estimate be wrong? If every journey took the least its class allows, the mean would be 740 ÷ 40 = 18.5. If every journey took almost the most, it would be about 1 140 ÷ 40 = 28.5. The true mean lies between 18.5 and 28.5, and 23.5 sits in the middle.
Now the median. With n values in order, the median is the (n + 1) ÷ 2 th value. For 25 pods it is the 13th pod. From a table we cannot see the 13th value, but we can see which row holds it. Add up the frequencies until the running total reaches 13.
Worked example
Find the class that holds the median of the 40 journey times.
- There are 40 values. The median is the (40 + 1) ÷ 2 = 20.5th value.
- The 20.5th value is not in the first two classes, which hold 4 + 11 = 15 values.
- It is in the third class, because the first three classes hold 15 + 15 = 30 values.
- So the median is in the class 20 ≤ t < 30.
Answer: The class 20 ≤ t < 30
We can name the class that holds the median, but not the median itself. The most common class is the modal class, the one with the greatest frequency. Here that is also 20 ≤ t < 30.
Try it
Throw a die 20 times
You need: a die from a game, paper and a pencil.
- Throw the die 20 times. After each throw, put a tally mark by that number.
- Write the frequency table: x is the face, f is the number of tallies.
- Work out f × x for each row, add them up, and divide by 20.
What you will see: The mean is close to 3.5, the mean of the six faces. Your 20 throws may not give exactly 3.5, and that is fine.
Key words
- frequency table
- a table that lists each value and how many times it happens.
- midpoint
- the number halfway between the two ends of a class.
- estimate
- an answer that is close, not exact, because some information is missing.
- modal class
- the class with the greatest frequency.
Back to your guess
The answer is C: Multiply each number of peas by how many pods have it, add these up, then divide by the number of pods.
The table says 2 pods have 3 peas, 5 pods have 4 peas, and so on. Multiply each number of peas by its number of pods, and add: 128 peas in all. Then divide by the 25 pods. The mean is 128 ÷ 25 = 5.12 peas in a pod.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
The table shows the seeds in 20 pods. What is the mean number of seeds in a pod?
See the answer
2.25
1 × 5 + 2 × 8 + 3 × 4 + 4 × 3 = 5 + 16 + 12 + 12 = 45 seeds. There are 5 + 8 + 4 + 3 = 20 pods. 45 ÷ 20 = 2.25.
- If you chose A: You found the mean of the numbers 1, 2, 3 and 4, and ignored how many pods have each. Multiply each x by its f first. Go to M4.7.2.
- If you chose B: 45 is the total number of seeds, ∑fx. The mean is the total divided by the number of pods. Go to M4.7.2.
- If you chose C: You found the mean of the frequencies 5, 8, 4 and 3. The mean wanted is of the seeds in a pod, not of the numbers of pods. Go to M4.7.2.
The table shows the heights of 30 plants in classes. Which is the best estimate of the mean height?
See the answer
22 cm
The midpoints are 5, 15, 25 and 35. 5 × 3 + 15 × 9 + 25 × 12 + 35 × 6 = 15 + 135 + 300 + 210 = 660. Then 660 ÷ 30 = 22.
- If you chose A: You found the mean of the midpoints 5, 15, 25 and 35, and ignored the frequencies. More plants are in the middle classes, so the mean is higher. Go to M4.7.2.
- If you chose C: 660 is the total ∑fx. The mean is the total divided by the number of plants. Go to M4.7.2.
- If you chose D: You used the lowest value of each class, not the midpoint. The midpoint stands for the whole class. Go to M4.7.2.
Waiting times of 45 visitors are in classes. Which class holds the median?
See the answer
10 ≤ t < 20
There are 45 values, so the median is the (45 + 1) ÷ 2 = 23rd. The first class holds 12 values. Adding the second gives 12 + 20 = 32, so the 23rd is in the second class.
What is the midpoint of the class 40 ≤ h < 60?
See the answer
50
The midpoint is (40 + 60) ÷ 2 = 50.
- If you chose A: That is the lower end of the class. The midpoint is halfway between the two ends. Go to M4.7.2.
- If you chose B: That is the width of the class, 60 − 40. The midpoint is a place on the scale, halfway along it. Go to M4.7.2.
- If you chose D: That is the upper end of the class. The midpoint is halfway between 40 and 60. Go to M4.7.2.
Why is a mean worked out from grouped data only an estimate?
See the answer
We know only which class each value is in, so we use the midpoint as its value.
The exact values are hidden by the classes. The midpoint is our best single guess for each class.
In a frequency table, what does f × x give for one row?
See the answer
The total of all the values in that row.
If f values are each equal to x, they add up to f × x. The mean is then the sum of these totals divided by ∑f.
From an earlier chapter
A garden has 80 plants and 30 of them are herbs. A stratified sample of 16 is wanted. How many herbs are in it?
See the answer
6
Herbs are 30 ÷ 80 of the garden. 30 ÷ 80 × 16 = 6.
Pods hold 1, 2, 3, 4 or 5 peas. The numbers of pods are 3, 5, 6, 4 and 2. What is the mean number of peas in a pod?
See the answer
2.85
1 × 3 + 2 × 5 + 3 × 6 + 4 × 4 + 5 × 2 = 3 + 10 + 18 + 16 + 10 = 57 peas. There are 3 + 5 + 6 + 4 + 2 = 20 pods. 57 ÷ 20 = 2.85.
Plant heights, in four classes of width 10 cm from 0 to 40 cm, have frequencies 2, 6, 8 and 4. Estimate the mean height.
See the answer
22 cm
The classes are 0 ≤ h < 10 and so on, so the midpoints are 5, 15, 25 and 35. 5 × 2 + 15 × 6 + 25 × 8 + 35 × 4 = 10 + 90 + 200 + 140 = 440. Then 440 ÷ 20 = 22.
Keep it
Copy this into your exercise book.
Mean = ∑fx ÷ ∑f. For classes, use midpoints and say estimate. Median place = (n + 1) ÷ 2: add the frequencies until the running total reaches it.
Draw: A table with columns x, f and f × x, and the two totals under it.