Estimate the mean, standard deviation, variance and median from a frequency table, when all you know is how many values fall in each class.
s = √(Σf(m − x̄)² ÷ (Σf − 1)), m = class midpoint
Lower limit, upper limit, then frequency. List the classes in order.
It's an estimate of the standard deviation made from a frequency table rather than from the raw values. Once data is grouped ("12 deliveries between 30 and 40 km"), the individual values are gone, so every value in a class is treated as if it sat at the class midpoint.
The mean and standard deviation are then worked out as usual, with each midpoint counted as many times as its frequency. If the values inside each class are spread fairly evenly, the estimates come out close to the real thing. If they bunch at one end of a class, the estimates drift.
The median is estimated differently: find the class that holds the middle value, then assume its values are spread evenly across the class and read off where the middle one would fall.
Midpoint method as taught in OpenStax Introductory Statistics. See Sources.
L is the lower limit of the class holding the middle value, CF the cumulative frequency before it, f its frequency and w its width.
The mean and median are close, which fits the nearly symmetric table. Roughly two-thirds of deliveries would be expected within 23 to 48 km.
The column layout most textbooks use. Add the fm column for the mean and the last column for the sum of squares.
| Class | f | m | fm | f(m − x̄)² |
|---|---|---|---|---|
| 10–20 | 5 | 15 | 75 | 2,101.25 |
| 20–30 | 8 | 25 | 200 | 882 |
| 30–40 | 12 | 35 | 420 | 3 |
| 40–50 | 10 | 45 | 450 | 902.5 |
| 50–60 | 5 | 55 | 275 | 1,901.25 |
They have no midpoint. Close them with a sensible upper limit based on what you know, and note that the estimate depends on that choice.
No. The midpoint method works with unequal widths. Only histograms need extra care, because bar areas must reflect the widths.
An adjustment that subtracts w² ÷ 12 from the grouped variance to allow for grouping. It suits equal-width classes and smooth, bell-shaped data, and is rarely used in introductory courses.
Grouping replaces each value with its class midpoint. The difference is the information lost by grouping.
Those are discrete classes with a gap. The true boundaries are 9.5–19.5, 19.5–29.5 and so on; the midpoints (14.5, 24.5) come out the same either way.
Use n − 1 if the table summarises a sample and you want to estimate the wider population’s spread, which is the usual case. Use n for a complete population.
The modal class is the one with the highest frequency. A finer estimate is L + (d₁ ÷ (d₁ + d₂)) × w, where d₁ and d₂ are the differences in frequency from the neighbouring classes.
Yes. Empty classes are allowed and simply contribute nothing, though the total frequency must be at least 2.
Related Tools