Mode of grouped data
Ask a shopkeeper which shoe size sells the most and you get a single number — the size that occurs most often. That number is the mode, the third of the three measures of central tendency alongside mean and median. For raw, ungrouped data the mode is easy to spot: just look for the value that repeats the most. But once data is bundled into class intervals — ages grouped in tens, marks grouped in bands of twenty — no single value repeats at all, because every entry inside a class has been merged into a range. You can no longer point at "the most common number." Instead, you first locate the modal class, the interval with the highest frequency, and then use an interpolation formula to estimate exactly where inside that class the true peak most likely sits. This article builds that formula from the ground up, applies it to a fully worked frequency table, and flags the mix-ups — modal class versus median class, boundary versus class mark, swapped neighbour frequencies — that cost ICSE students marks. By the end you should be able to pick out a modal class on sight and compute the mode of any equal-width grouped distribution with confidence.
The mode of grouped data is found by identifying the modal class (the interval with the highest frequency) and interpolating within it using , which leans the estimate toward whichever neighbouring class is less crowded.
The core idea
Why grouping changes the problem. With raw data — say the list of ages — the mode is simply the most repeated value, here . Grouped data throws that method away: once you group ages into "10–20," "20–30," and so on, you know how many people fall in each band but not their individual ages, so no value can literally "repeat" anymore. The best you can do is find the band with the most people and then interpolate a single representative value inside it.
Step 1 — find the modal class. Scan the frequency column and pick the class interval with the single highest frequency. That interval, and only that interval, is the modal class — nothing else about it (its position in the table, its width, its class mark) matters for this choice.
Step 2 — interpolate inside it. Once the modal class is fixed, the exact mode is estimated with:
where: is the lower boundary of the modal class, is the frequency of the modal class, is the frequency of the class immediately before the modal class, is the frequency of the class immediately after it, and is the class size (width), assumed equal across all intervals. The formula's job is to decide where inside the modal-class interval the true peak most likely lies, rather than just declaring the whole interval or its midpoint as "the mode." It does this by comparing two things: how much the frequency jumped going into the modal class () against the combined rise-and-fall across both of its neighbours (). If the class before is much smaller than the class after ( small, large), the numerator stays large relative to the denominator and the mode is pulled further from , toward the crowded neighbour — and vice versa. The graphical picture below shows the same idea as a geometric construction.
Goal: show why interpolating with correctly locates the mode inside the modal-class bar of a histogram, using nothing beyond the geometry of two intersecting straight lines.
Step 1. Draw the histogram of the grouped frequency distribution and focus on the modal-class bar, whose top-left corner sits at height (matching the top of the preceding bar's shared side, extended) and whose top-right corner sits at a similarly matched height with . Concretely, join the top-left corner of the modal-class bar to the top-right corner of the preceding bar with a straight line, and join the top-right corner of the modal-class bar to the top-left corner of the following bar with another straight line. These two diagonals cross at a single point inside the modal-class bar; call its horizontal distance from the value .
Step 2. Set up the two diagonal lines algebraically, measuring horizontal distance from (so runs from to across the modal class). The first diagonal falls from height at (the excess of the modal class over its predecessor) down to height at ; its height at position is . The second diagonal rises from height at to height at (the excess of the modal class over its successor); its height at is .
Step 3. The intersection point is where these two heights are equal: . Expanding gives , so .
Step 4. Solve for : . Since was measured as horizontal distance from , the actual mode is , which is exactly — the formula stated above, now justified by the geometry of the two intersecting diagonals rather than assumed.
Worked example
Find the mode of the following distribution of ages (in years) of 100 people.
| Age (years) | 10–20 | 20–30 | 30–40 | 40–50 | 50–60 |
|---|---|---|---|---|---|
| No. of people () | 12 | 30 | 34 | 18 | 6 |
Step 1. Scan the frequency row for the highest value: , occurring in the class 30–40. This is the modal class.
Step 2. Read off the values needed by the formula. (lower boundary of the modal class), (frequency of the modal class), (frequency of the preceding class, 20–30), (frequency of the following class, 40–50), and (common class width).
Step 3. Substitute into the formula and simplify the fraction first.
Step 4. Complete the arithmetic: , so the mode is . The mode of this distribution is 32 years.
Competitive stretch
Suppose instead the modal class had been the last interval, 50–60, with no class beyond it. There is no to read off the table — but the correct move is not to leave it blank or skip the term. Treat the missing neighbour as having frequency , so in the formula, and proceed exactly as before. The same rule applies symmetrically if the modal class is the first interval: take .
Common traps
- Confusing the modal class with the median class. The modal class is chosen purely by highest frequency; the median class is chosen using cumulative frequency reaching . They are frequently different classes in the same table.
- Using the class mark instead of the lower boundary . Just as with the median formula, is the lower limit of the modal class, not its midpoint — plugging in the class mark shifts the whole answer.
- Swapping and . is always the frequency of the class before the modal class; is always the frequency of the class after it. Reversing them changes both the sign pattern and the final value.
- Leaving or undefined at the table's edge. If the modal class is the first or last interval, the missing neighbour is taken as frequency , never omitted from the formula.
Ask the tutor: if you're stuck deciding which frequency is and which is , or want to practise a combined mean-median-mode problem on one data set, ask the AI tutor to walk through it with you.
How is the modal class different from the class with the highest class mark
The modal class has nothing to do with the size of the numbers in the interval — it is chosen only by which class has the largest frequency, that is, the most data points falling inside it. A class with a high class mark, like 90–100 in a marks distribution, could easily have very few students in it and would not be the modal class at all. Always scan the frequency column, not the interval labels, to find it.
Can the mode formula give an answer outside the modal class interval
It should not, if the data and the modal class are chosen correctly, because the fraction always works out to lie between 0 and 1 when is genuinely the largest frequency and its neighbours are non-negative. If your calculated mode falls below or above , re-check that you picked the correct modal class and did not swap and .
Why do mean, median, and mode of the same data usually come out different
Each measure answers a different question: the mean balances all the values by total sum, the median splits the data exactly in half by position, and the mode picks out the single most frequent region. Unless the distribution is perfectly symmetric, these three questions have three different answers, which is exactly why ICSE problems often ask you to find and compare all three for one data set.