The grouped data median and quartile calculator estimates the median, a quartile or any percentile of a frequency table by interpolating inside the class that contains it.
How the calculation works
- Choose the percentile you want.
- Enter the total number of observations and the class that contains the position: lower boundary, width, frequency and cumulative frequency before it.
- The calculator gives the value, the position, a class check and the share of the class passed.
Example
A table of 120 exam scores has 45 scores below 20, and the class from 20 to 30 holds 30 scores. The median is at position 120 / 2 = 60.00. Since 45 ≤ 60 ≤ 75, it falls in that class, and the median is 20 + (60 − 45) / 30 × 10 = 25.000. The median is 50.0 % of the way through the class.
Why it matters
The calculator helps students who learn descriptive statistics, teachers who summarize results from a table, and analysts who have only grouped data from a report or a survey.
Good to know
Boundaries must be continuous: if the classes are 20 to 29 and 30 to 39 for whole numbers, use the real boundaries 19.5 and 29.5. Open-ended classes at the extremes cannot be interpolated. The cumulative frequency before the class is the sum of all the frequencies of lower classes, and the class check tells you if you picked the wrong one. For the mean of grouped data, use the class midpoints weighted by their frequencies, and for the mode, the modal class with its neighbors. When the class widths are unequal, interpolation still works inside the class, but histograms must be drawn with densities.
Related tools
The percentile calculator works on raw values, the percentile rank calculator finds the rank of a value, the average calculator gives mean and median of a list and the histogram bin width calculator chooses classes.