One arch passes through the middle of the modal bar and the bars on either side. The top of the arch is the mode. Change the three frequencies and watch the top move.
Mode (top of the arch)
Modal class midpoint
Class 10 · Statistics
Deriving the mode of grouped data
Draw two lines across the modal bar. They cross at the peak of the data, and two similar triangles tell us exactly where. Nothing beyond Class 10 geometry is needed.
Symbols
l
Lower limit of the modal class
h
Class width (equal for all classes)
f1
Frequency of the modal class, the highest
f0
Frequency of the class before it
f2
Frequency of the class after it
d1 = f1 − f0
How much the modal class exceeds the one before it
d2 = f1 − f2
How much the modal class exceeds the one after it
Example values: f₀ = 8, f₁ = 20, f₂ = 12, h = 10. Line AB climbs into the modal class and line CD falls out of it. The shaded triangles PAC and PBD are similar. The dashed line drops from P to the axis, and that is the mode. The dotted line marks the class midpoint for comparison.
Step 1
Draw the two lines
Mark four corners on the histogram. Join A to B, which shows the data rising into the modal class, and join C to D, which shows them falling away. The lines cross at P, where the rise meets the fall. The mode is the x-value of P.
A = (l, f0)top-right corner of the preceding bar
B = (l + h, f1)top-right corner of the modal bar
C = (l, f1)top-left corner of the modal bar
D = (l + h, f2)top-left corner of the succeeding bar
Step 2
Find two similar triangles
Look at triangle PAC (shaded clay) and triangle PBD (shaded green). A and C both lie on the line x = l, and B and D both lie on the line x = l + h. Both lines are vertical, so AC is parallel to BD.
∠APC = ∠BPDvertically opposite angles at P
∠PAC = ∠PBDalternate angles, AC ∥ BD, transversal AB
△PAC ~ △PBDAA similarity
Step 3
Read off the sides AC and BD
A and C sit above the same point l, at heights f0 and f1. B and D sit above l + h, at heights f1 and f2. The vertical gaps are the sides we need.
AC = f1 − f0 = d1
BD = f1 − f2 = d2
Step 4
Compare the altitudes from P
Let t be the distance from l to the mode, so P is t to the right of the line x = l. The altitude from P to AC is the horizontal segment of length t. The altitude from P to BD is the rest of the class width, h − t. In similar triangles, corresponding altitudes are in the same ratio as corresponding sides.
th − t = ACBD = d1d2altitude ratio = side ratio
Step 5
Solve for t
td2 = d1(h − t)cross-multiply
td2 + td1 = d1hcollect the t terms
t(d1 + d2) = d1hfactor out t
t = d1d1 + d2 × hdivide by d₁ + d₂
Step 6
Put the frequencies back
The mode is l + t. Replace d1 with f1 − f0, and add d1 and d2 to get the denominator.
d1 + d2 = (f1 − f0) + (f1 − f2) = 2f1 − f0 − f2
Mode = l + t = l + f1 − f02f1 − f0 − f2 × h
Mode of grouped data
Mode = l + f1 − f02f1 − f0 − f2 × h
In words, the mode splits the modal class in the ratio d1 : d2, counted from the lower limit.
What the result tells you
The crossing sits nearer the smaller gap. If the preceding class is taller, then d1 is smaller than d2. The left triangle is the smaller one, so P lies nearer l and the mode is left of the midpoint. If the succeeding class is taller, P lies nearer l + h.
When the midpoint is right. If f0 = f2, then d1 = d2. The two triangles are congruent, t = h/2, and the mode is exactly the midpoint. This is the only case.
When there is no single crossing. If all three frequencies are equal, lines AB and CD both run along the tops of the bars and never meet at one point. Then d1 + d2 = 0 and the formula does not apply.
Worked example
Modal class 20–30, so l = 20 and h = 10. The frequencies are f0 = 8, f1 = 20, f2 = 12.
The classes must have equal width. The answer is an estimate, because grouping hides where the individual values lie inside each class. Two straight lines are the simplest way to show the data rising into the modal class and falling out of it.