The modal class and the mode · Mathematics Class 9–10 | StemPy Lab
Course 16.2·Lesson 1 of 3
The modal class and the mode
The mode is the value that occurs most often. For grouped data we find the modal class, which has the greatest frequency. A formula then places the mode inside that class, closer to the neighbour that has the larger frequency.
about 30 min1 simulation2 practice questions
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
find the modal class of a grouped table;
find the mode of grouped data with the formula, also when the modal class is the first or the last class;
say what to do when two classes tie, and when the class widths are unequal.
The most common value
A shoe shop sells these sizes in one morning: 5,6,6,7,7,7,8,8,10. The owner wants to stock the most popular size. The size that occurs most often is 7. It is the mode. The mean of the sizes is 7.11, which is not even a size that the shop can order. The mode is the average that tells the shop what to order. If two sizes tie, the data have two modes and are called bimodal.
The modal class
When the data are grouped, we cannot see which single value occurs most often. We can only see which class holds the most values. That class is the modal class. Here is how fast 40 students typed in a test.
Typing speed (words per minute)
Students
20-30
4
30-40
6
40-50
12
50-60
9
60-70
5
70-80
4
The largest frequency is 12, so the modal class is 40 to 50 words per minute. Many questions only ask for this class. A better answer is a single number inside the class.
The formula for the mode
Look at the modal class and its two neighbours. The mode is not always the middle of the class. If the class after it has more students than the class before it, the mode leans towards the class after. Here is the formula that does this:
mode=l+2f1−f0−f2f1−f0×h.
l is the lower limit of the modal class.
h is the class width.
f1 is the frequency of the modal class.
f0 is the frequency of the class before the modal class.
f2 is the frequency of the class after the modal class.
For the typing table, l=40, h=10, f1=12, f0=6 and f2=9:
mode=40+24−6−912−6×10=40+96×10=46.67words per minute.
The class mark is 45, and the mode is above it, because the class after (9) is bigger than the class before (6).
Why the formula works
Draw the histogram. Join the top right corner of the bar before the modal bar to the top right corner of the modal bar. Then join the top left corner of the modal bar to the top left corner of the bar after it. The two lines cross. The mode is the horizontal position of the crossing.
A histogram of the typing speeds of 40 students, in classes of width 10 words per minute from 20 to 80, with frequencies 4, 6, 12, 9, 5 and 4. The three bars at 30 to 40, 40 to 50 and 50 to 60 are drawn in blue, and the others in grey. A red line joins the top right corner of the bar 30 to 40 to the top right corner of the modal bar 40 to 50. Another red line joins the top left corner of the modal bar to the top left corner of the bar 50 to 60. The two lines cross above 46.67, and a dashed vertical line from the crossing to the axis marks the mode, 46.67 words per minute.
A little algebra shows why. Let t be the distance of the crossing from l, measured in class widths. The first line rises from height f0 to f1, and the second line falls from f1 to f2. At the crossing both lines have the same height, so f0+(f1−f0)t=f1+(f2−f1)t. Solving gives t=2f1−f0−f2f1−f0. Multiply by h and add l.
When the modal class is at an end
If the modal class is the first class, there is no class before it. Take f0=0. If it is the last class, take f2=0. Here are the days that 30 students were absent in a term.
Days absent
Students
0-10
14
10-20
9
20-30
5
30-40
2
The modal class is 0 to 10, with f1=14, f0=0 and f2=9. Then
mode=0+28−0−914−0×10=7.37days.
Two modal classes, and classes of different width
A tie. If two classes share the largest frequency, the data are bimodal. Report both modal classes. Do not use the formula to give one mode, because it would hide that the data have two peaks.
Unequal class widths. The formula needs classes of equal width. In an Indian Class 10 histogram the classes are equal, so the height of a bar is the frequency. In A-Level, IGCSE and IB books the area of a bar stands for the frequency, and the height is the frequency density, which is the frequency divided by the class width. The modal class is then the class with the largest frequency density, which may not be the class with the most values.
Inclusive classes. For classes such as 31 to 40, use the boundaries 30.5 and 40.5. So l=30.5 and h=10.
What other books say. IGCSE, GCSE and IB questions on grouped data ask for the modal class and do not use the formula. The formula is a feature of the Indian syllabus. A-Level books also give the modal class.
Practise with new numbers
Try it in Python
This program finds the modal class of the typing table and then the mode. It also handles a modal class at either end, by using 0 for a missing neighbour.
Common mistakes
Swapping f0 and f2. The top line is f1−f0. The class before the modal class has f0.
Using the class mark as the mode. The mode is the class mark only when f0=f2.
Forgetting the end classes. A missing neighbour has frequency 0, not "nothing to use".
Using 31 instead of 30.5. For inclusive classes, work with the class boundaries.
Remember these
The modal class has the greatest frequency.
mode=l+2f1−f0−f2f1−f0×h.
The mode leans towards the neighbouring class with the larger frequency.
With two equal largest frequencies the data are bimodal. The formula needs equal class widths.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A table has the frequencies 3,8,15,11,4 in five classes. Which class is the modal class?
For a modal class 20 to 30 with f1=15, f0=8 and f2=11, find the mode.
When is the mode of a modal class exactly equal to its class mark?
What value do you use for f0 when the first class is the modal class?
Two classes of a table both have the largest frequency. What should you report?
References
NCERT, Mathematics for Class 10, the chapter Statistics: the mode of grouped data.
OpenStax, Introductory Statistics, Chapter 2 Descriptive Statistics: the mode, and skewness.
Enroll free in Mode and Median of Grouped Data
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.