The Modal Class

The interval with the most values in it.

Grouped data has no single mode

Thirty people count the text messages they send in one day, and the counts are grouped into classes: 0–9 messages, 10–19, 20–29 and 30–39. The table keeps only the frequency of each class, the number of people whose count fell in it.

The mode of a list is the value that occurs most often. But the table no longer shows any single value. It says that 12 people sent from 20 to 29 messages, not whether they all sent 23 or each sent a different number. So no single value can be named as the mode.

messagesfrequency0–9410–19920–291230–395total30

Each class holds ten possible counts, and the frequencies 4, 9, 12 and 5 add up to the 30 people.

The class with the largest frequency

What the table does show is which class holds the most values. The largest frequency is 12, so the class 20–29 holds more people than any other class. That class, 20–29 messages, is the modal class.

The classes here all have the same width, 10 messages, so they can be compared by frequency alone. On a histogram of this table the bars are equally wide, and the modal class is the one with the tallest bar.

messagesfrequency0–9410–19920–291230–395

The row 20–29 has the largest frequency, 12, so 20–29 messages is the modal class.

The answer is the class

The modal class is 20–29 messages. It is not 12. The 12 is the frequency, the reason this class was chosen; the answer is the interval itself.

It is not a single number such as 25 either. The midpoint of the class is useful for estimating a mean, but the modal class says only that the most crowded interval is 20 to 29 messages. It does not say which number of messages inside it was most common.

The class that contains the median

A grouped table can also say which class the median is in. The median is the middle value of the ordered data, and with n values it sits in position (n + 1)/2. Here n = 30, so it is in position 15.5, halfway between the 15th and the 16th value.

The classes are already in order, so keep a running total down the frequency column: 4, then 4 + 9 = 13, then 13 + 12 = 25, then 25 + 5 = 30. The first two classes hold the 1st to the 13th values, and the class 20–29 holds the 14th to the 25th. The 15th and the 16th are both in 20–29, so the median is in the class 20–29.

For these 30 people the modal class and the class containing the median are the same, but they answer different questions, and often they differ. For another 30 people, the frequencies are 11, 8, 6 and 5. The modal class is 0–9, with 11 people. The running total is 11 after the first class and 19 after the second, so the 15th and the 16th values are in 10–19, and the median is in the class 10–19.

frequencyrunning total0–9111110–1981920–2962530–39530

The largest frequency is in 0–9, but the running total passes 15 and 16 in 10–19. The modal class is 0–9, and the median is in 10–19.

Unequal widths: compare frequency density

When the classes have different widths, the largest frequency can mislead, because a wide class collects more values just by being wide. Another group of 24 people is grouped into 0–9 messages with 4 people, 10–29 with 14 people and 30–39 with 6 people. The class 10–29 holds twenty possible counts, twice as many as the others.

Compare how crowded each class is instead, with its frequency density: frequency ÷ class width. For 10–29 it is 14 ÷ 20 = 0.7 people for each message, which is 7 for each ten messages. For 0–9 it is 4 ÷ 10 = 0.4, and for 30–39 it is 6 ÷ 10 = 0.6. The class 10–29 has the largest density, so it is still the modal class, but by a much smaller margin than 14 against 6 suggests.

Sometimes the density changes the answer. A survey of 100 people finds 30 in 0–9 messages, 50 in 10–29 and 20 in 30–39. The class 10–29 has the most people, 50. But the densities are 30 ÷ 10 = 3, 50 ÷ 20 = 2.5 and 20 ÷ 10 = 2. The people are most crowded in 0–9, so the modal class is 0–9. On a histogram drawn with frequency density, the modal class is again the tallest bar.

010203040500–910–2930–39

Drawn with frequency as the height, the wide class 10–29 looks by far the largest, because it is both tall and twice as wide.

01230–910–2930–39

Drawn with frequency density, 3, 2.5 and 2 people per message, the tallest bar is over 0–9. That is the modal class.

81210area 200010204060frequencyfrequencyfrequency density

height = frequency whatever the width: the class of width 20 is drawn as tall as it would be at width 10, so a wide class becomes a false peak

Switch to density and widen the last class to 40

The gold class always holds 10 values, and the class 10–20 holds 12. Switch to frequency density and narrow the gold class to a width of 5: its density is 10 ÷ 5 = 2, more than 12 ÷ 10 = 1.2, so its bar is the tallest and it is the modal class, though it holds fewer values. Widen it to 40 and its density falls to 10 ÷ 40 = 0.25.

Worked example: A Histogram of Fish Lengths Turned Back into a Grouped Frequency Table

Question A fisheries officer measured the length, x cm, of every fish in one catch and drew a histogram with equal class widths. The bars stand over 10 ≤ x < 20, 20 ≤ x < 30, 30 ≤ x < 40, 40 ≤ x < 50 and 50 ≤ x < 60, and their heights on the frequency axis are 4, 9, 14, 8 and 5. (a) Write the grouped frequency table and state the modal class. (b) A fish shorter than 30 cm must be put back. What percentage of the catch must be put back?

  1. 1.Every class is 10 cm wide, so the height of each bar is its frequency. Read the five heights from the frequency axis: 4, 9, 14, 8 and 5.

    0481216102030405060frequencylength, cm491485equal widths: the height is the frequency
    0481216102030405060frequencylength, cm491485equal widths: the height is the frequency
    Every class is 10 cm wide, so the height of each bar is its frequency: 4, 9, 14, 8 and 5.
  2. 2.Write each class beside its frequency to make the grouped frequency table, and add the frequencies: 4 + 9 + 14 + 8 + 5 = 40 fish.

    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish4914854 + 9 + 14 + 8 + 5 = 40 fish
    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish4914854 + 9 + 14 + 8 + 5 = 40 fish
    Each class beside its frequency is the grouped frequency table. There are 4 + 9 + 14 + 8 + 5 = 40 fish.
  3. 3.(a) The frequencies are 4, 9, 14, 8 and 5. The tallest bar is over 30 ≤ x < 40, so that is the modal class.

    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish491485modal class: 30 to 40 cm
    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish491485modal class: 30 to 40 cm
    (a) The tallest bar is over 30 ≤ x < 40, so that is the modal class.
  4. 4.A fish shorter than 30 cm is in one of the first two classes, because 30 is the end of the second class: 4 + 9 = 13 fish.

    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish491485under 30 cm: 4 + 9 = 13 fish
    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish491485under 30 cm: 4 + 9 = 13 fish
    The fish shorter than 30 cm are in the first two classes: 4 + 9 = 13.
  5. 5.(b) 1340 = 0.325, so 32.5% of the catch must be put back.

    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish49148513/40 = 32.5%
    0481216102030405060frequencylength, cm491485cm10 to 2020 to 3030 to 4040 to 5050 to 60fish49148513/40 = 32.5%
    (b) 1340 = 32.5% of the catch must be put back.

Answer: (a) frequencies 4, 9, 14, 8, 5; the modal class is 30 ≤ x < 40; (b) 13 of the 40 fish, which is 32.5%

Common mistakes

  • Giving the modal class as 14. The number 14 is the frequency of the modal class. The modal class is the interval of lengths that has that frequency, 30 ≤ x < 40.
  • Counting the 30 ≤ x < 40 class among the fish to put back. A fish of exactly 30 cm belongs to that class, and every fish in it is at least 30 cm long, so none of the 14 is shorter than 30 cm.

More statistical displays problems, worked step by step →

Practice The Modal Class in the app