Mathematics Topic

Averages from Frequency Tables and Grouped Data

  1. Read notes
  2. Flashcards
  3. Quiz
  4. Confident

Study focus - 3 things

  1. From a frequency table, the mean is the total of (value × frequency) divided by the total frequency, never by the number of rows
  2. For grouped data every value in a class is treated as the class midpoint, which gives an estimated mean; the modal class is the class with the highest frequency
  3. The median class is the class that holds the middle value, found by building running totals of the frequencies

Section 1Mean from a frequency table

A frequency table shows each value once, with the number of times it occurred. Multiply each value by its frequency, add those products, and divide by the total frequency. On one farm, the number of ackee pods per branch was 2 on 3 branches, 3 on 5 branches and 4 on 2 branches. The products are 6, 15 and 8, which add to 29. The total frequency is 3 + 5 + 2 = 10 branches, so the mean is 29 ÷ 10 = 2.9 pods per branch. Divide by the total frequency, not by the 3 rows of the table.

Section 2Median and mode from a frequency table

The mode is the value with the highest frequency. Give the value, not its frequency. For the median, first find the total frequency n. The middle sits at position (n + 1) ÷ 2, so for 10 branches it lies between the 5th and 6th values. Build running totals of the frequencies: 3, 8, 10. The running total first reaches 5 and 6 inside the value 3 (the first 3 values are 2s, the next 5 are 3s), so the median is 3 pods. The mode is also 3, because 5 is the highest frequency.

Section 3Grouped data gives estimates

A grouped table tells you how many values fall in each class but not the values themselves. To estimate the mean, pretend every value in a class sits at the class midpoint, the number halfway between the lower limit and the upper limit. Then multiply each midpoint by its class frequency, add the products and divide by the total frequency. Take the classes 0 - 9, 10 - 19 and 20 - 29 with frequencies 4, 10 and 6. The midpoints are 4.5, 14.5 and 24.5. The products are 18, 145 and 147, which add to 310, and 310 ÷ 20 = 15.5. It is an estimate because the true values inside each class are unknown.

Section 4The modal class

With grouped data we cannot name one exact mode, so we name the modal class: the class with the highest frequency. Look at the frequency column, find its largest number, and then give the class beside it, not the frequency. In the table above, 10 is the highest frequency, so the modal class is 10 - 19. If two classes share the highest frequency there are two modal classes. Comparing frequencies this way only makes sense when all the classes have the same width.

Section 5The median class

The median class is the class that contains the middle value. Add the frequencies to get n, then keep running totals down the table. The median class is the first class whose running total reaches the middle position. For the table above, n = 20 and the middle lies between the 10th and 11th values. The running totals are 4, 14 and 20, so the first class to reach 10 is the class 10 - 19. The median class is not simply the class in the middle of the list: with 6 classes there is no single middle class, and the frequencies may be heavier on one side.

Section 6Checking and reporting your answer

Before you finish, check that the frequencies add to the number of values you were told about, and that the estimated mean lies between the lowest and highest class midpoints. Keep exact fractions or full calculator digits until the last step, then round to the accuracy asked for. Never use lower limits or upper limits in place of midpoints, and never divide by the number of classes. Remember that an estimated mean from a grouped table will usually differ a little from the mean of the original raw values.

Examples

A fruit vendor in Linstead records how many mangoes each of 30 customers bought: 1 mango (5 customers), 2 mangoes (8 customers), 3 mangoes (9 customers), 4 mangoes (6 customers) and 5 mangoes (2 customers). Find the mean to 1 decimal place, the median and the mode.

Total frequency: 5 + 8 + 9 + 6 + 2 = 30 customers. Products of value and frequency: 1 × 5 = 5, 2 × 8 = 16, 3 × 9 = 27, 4 × 6 = 24 and 5 × 2 = 10. They add to 5 + 16 + 27 + 24 + 10 = 82 mangoes. Mean = 82 ÷ 30 = 2.7 mangoes to 1 decimal place. Median: with 30 values the middle lies between the 15th and 16th values. The running totals are 5, 13, 22, 28, 30. The 14th to 22nd values are all 3s, so the 15th and 16th are both 3 and the median is 3 mangoes. Mode: the highest frequency is 9, at the value 3, so the mode is 3 mangoes (not 9).

A bank branch records how long 40 customers waited, in whole minutes: 0 - 4 minutes (5 customers), 5 - 9 minutes (9 customers), 10 - 14 minutes (13 customers), 15 - 19 minutes (8 customers) and 20 - 24 minutes (5 customers). (a) Find the modal class. (b) Find the median class. (c) Estimate the mean wait to 1 decimal place. (d) Explain why the answer to (c) is only an estimate.

(a) The highest frequency is 13, so the modal class is 10 - 14. (b) The total frequency is 5 + 9 + 13 + 8 + 5 = 40, so the middle lies between the 20th and 21st values. The running totals are 5, 14, 27, 35, 40. The running total first reaches 20 and 21 in the class 10 - 14, so that is the median class. (c) The midpoints are (0 + 4) ÷ 2 = 2, (5 + 9) ÷ 2 = 7, (10 + 14) ÷ 2 = 12, (15 + 19) ÷ 2 = 17 and (20 + 24) ÷ 2 = 22. The products are 2 × 5 = 10, 7 × 9 = 63, 12 × 13 = 156, 17 × 8 = 136 and 22 × 5 = 110. They add to 10 + 63 + 156 + 136 + 110 = 475. The estimated mean is 475 ÷ 40 = 11.875, which is 11.9 minutes to 1 decimal place. (d) The table does not show the exact waiting times, so each customer was treated as if they waited the midpoint of their class. The true mean can be a little different.

Now let's water it

Session runs notes to flashcards to quiz back-to-back.

Where this comes from