Modal Class for Grouped Data
When data are grouped into intervals, the table no longer contains each original observation. We can still identify the modal class, but the table may not identify one exact mode.
The modal class is the class interval with the highest frequency, so it contains more observations than any other interval.
Worked example:
Store A's shoe size data:
| Shoe Size (Class Interval) | Frequency () |
|---|---|
| (Highest Frequency) | |
| Total |
The highest frequency is , so the modal class is .
This tells us that the most frequently sold shoe sizes lie in that interval. Because the data are grouped, the table does not identify which individual size occurs most often.
Median for Grouped Data
The median splits ordered data into two equal halves. A grouped table lists intervals together with their frequencies. We therefore locate the median class and estimate the median's position within that class.
How to Find the Median for Grouped Data
-
Calculate the median position:
Locate the middle of the data with , where is the total frequency.
-
Create the cumulative frequency:
Add a cumulative-frequency column (). Each entry is the sum of all frequencies from the first class through the current class.
-
Determine the median class:
The median class is the first class whose cumulative frequency is equal to or greater than .
-
Use the median formula:
Once the median class is known, estimate the median with:
where:
-
= estimated median of the grouped data
-
= lower boundary of the median class. For adjacent integer-valued classes, calculate it with:
is the lower limit of the median class minus .
-
= total frequency
-
= cumulative frequency before the median class
-
= frequency of the median class
-
= class width, calculated with:
is the upper class boundary minus the lower class boundary.
Here, the correction applies because the shoe sizes are recorded as consecutive integers.
The interpolation also assumes that observations are distributed uniformly within the median class. The result is therefore an estimate from the grouped intervals. The grouped table does not contain the original individual values.
-
Worked example:
Use Store A's shoe size data from the table below.
| Shoe Size | Frequency () | Cumulative Frequency () |
|---|---|---|
| () | ||
| Total |
-
Median position: . We need the observation at position .
-
Cumulative frequency: The table already includes it.
-
Median class: The cumulative frequency reaches after the second class and after the third. Position therefore lies in .
-
Formula components:
-
Median class:
-
Lower boundary:
-
Cumulative frequency before the median class:
-
Median-class frequency:
-
Class width:
-
-
Substitute into the median formula:
The estimated median shoe size is . It falls inside the median class once the continuous class boundaries are used.
This result is an estimate. The exact values inside each interval are unavailable, so the original middle observation cannot be recovered. The mean for grouped data has the same limitation.