Formula and example
How it is calculated
For class midpoint mᵢ and frequency fᵢ: mean=Σ(fᵢmᵢ)/Σfᵢ. The variance uses the same class midpoints.
Worked example
Classes 0–10, 10–20 and 20–30 with frequencies 2, 4 and 2 have an estimated mean of 15. The interpolated median is also 15.
Things to check
- Individual values within each class are unknown. Midpoints give approximations, not exact raw-data statistics.
- The median assumes a uniform distribution within its class. The displayed standard deviation uses divisor N.
Frequently asked questions
Can the classes have different widths?
Yes. Each class uses its own midpoint and width. A histogram would additionally require frequency density rather than frequency alone.