1. Count first, estimate second
An effectif is a count; an effectif cumulé is a cumulative count. A class such as , also written [4,10[ in French, includes 4 but excludes 10. A grouped table tells us how many observations lie in each interval, not their individual values. If you start with a frequency-density histogram, recover each count as bar height times class width. Do not add the heights when widths differ.
Assume and . For this lesson, define the grouped p-quantile estimate by a continuous model that spreads each class count uniformly across its interval. Its cumulative target is , where N is the total count. For quartiles use . This convention is not a universal recipe for quantiles of raw observations: raw-data conventions may use different ranks or averages. Follow the convention stated in your course.
Find the first class whose cumulative count C reaches the target. If B is the count before that class, check . This locates a segment of the cumulative model; it does not mean that a fractional rank is an observed measurement. A count such as 22 and a time such as 9.25 minutes answer different questions.
2. Worked example: why the target is in this class
Consider 44 waiting times in minutes, grouped into , with counts . Their cumulative counts are . In sorted order, observations 1–8 are in the first class, 9–24 in the second, and 25–44 in the third. This rank map comes from the counts alone.
The grouped median target is . The first class stops at 8, so it cannot reach 22. The second reaches 24, so it does: . Select the second class before doing any interpolation. For these particular data, both middle raw-data ranks, 22 and 23, also lie in that class; their exact values remain unknown.
Now add the uniform-within-class assumption. Starting at 4 minutes, we need of the class’s 16 counts. That is the fraction of its width . Hence the estimated median is minutes. The fraction is dimensionless; multiplying by the width gives minutes.
In general, let L be the lower boundary, w the class width and f its positive count. Linear interpolation gives . This follows by solving for x. The cumulative total is assumed to increase linearly inside each class. Do not substitute the class midpoint unless the required fraction is exactly one half.
3. Worked example: quartiles use different classes
Keep the same 44 observations. For the first quartile, , and , so use the second class again. This time only of its width is needed. Thus minutes.
For the third quartile, , and , so use the third class: minutes. The estimated interquartile range is minutes. Subtract quantile values, not cumulative counts. The two quartiles need their own L, B, f and w.
4. Worked example: a boundary is not the raw median
Now take two classes , each containing 4 observations. The target is , exactly a cumulative boundary. Under the grouped model, . This is the endpoint reached by the interpolation, even though the first class excludes 10. There is no contradiction: the model spreads continuous mass, rather than claiming that observation 4 equals 10.
Compare two possible ordered raw data sets: and . Both produce exactly the same grouped counts. Using the usual even-sample median, their medians are and . The grouped estimate 10 cannot recover either exact raw median from the counts alone.
At a cumulative boundary, state the boundary estimate instead of asserting that the raw median belongs to one class. If a class is empty, never divide by its zero count. At a flat cumulative segment, the first-reaching convention used here selects its left endpoint; other conventions must be stated explicitly. If the selected class is unbounded, for example , it has no finite width: this interpolation does not apply.
5. Six graduated exercises
1. Locate before calculating
Classes contain observations. Find the cumulative counts and select the class for the grouped median target. Do not interpolate yet.
Hint
Write the rank range covered by each class.
Explained solution
The total is , and the cumulative counts are . The target is . Since , select , which contains ranks 11–26. A target rank of 13 is not a measured value of 13.
2. A fractional target
Use the same table to estimate the first quartile with the stated uniform model.
Hint
A target of 6.5 is a location on the cumulative scale, not half an observation.
Explained solution
, and , so use . The fraction is , giving . Do not round the target before interpolation.
3. Finish the median estimate
For the same table, estimate the median and explain what remains unknown.
Hint
Use the third class’s width, not the width of the first two.
Explained solution
. The estimate assumes uniform distribution within the class. The actual observations at ranks 13 and 14 are unknown, so their average, the usual raw-data median, is not determined.
4. Recover counts from density
A frequency-density histogram has classes and heights observations per unit. Estimate the grouped median.
Hint
Convert areas to counts before adding anything.
Explained solution
The counts are , so and cumulative counts are . The target satisfies . Therefore . Heights alone would give the wrong total.
5. Recognize a boundary
Classes have counts . Find the grouped median estimate. Is it necessarily the exact raw median?
Hint
The target equals a cumulative count.
Explained solution
and . The cumulative counts are , so interpolation reaches . This is a model boundary estimate. Raw ranks 10 and 11 lie on opposite sides of the boundary, so their average need not equal 8.
6. Know when to stop
Classes have counts . Can you give a finite grouped-median interpolation? What can you say about the usual raw median?
Hint
You know the selected class but not its width.
Explained solution
, , and cumulative counts are . The target is in the last class, but its width is unspecified. No finite linear interpolation follows from this table. Ranks 10 and 11 are both at least 20, so the usual raw median is at least 20, with no finite upper bound supplied by the table.
6. Final check
Check counts, then cumulative totals, the target, the class and finally the units. Always separate what the table establishes from what the uniform model estimates. This original lesson makes no course or exam claim. References and prerequisites: NIST: grouped quantiles; actuar: quantiles of grouped data; histograms and frequency density.
Useful for
Work on the step you’re missing.
Tell us the subject and your preferred time. Nablio confirms the details by text or email.
Request a lesson