Enter class intervals and frequencies

Add each class with its lower and upper bound and absolute frequency. The calculator completes the frequency table, statistics and histogram. Insert rows at any position without losing data.

Use continuous numerical intervals such as [0,10) and [10,20), possibly of unequal widths. Classes may not overlap. For integer-coded classes 10–19 and 20–29, adjust to continuous boundaries (9.5–19.5 and 19.5–29.5) before calculating quantiles.

Paste a spreadsheet table

One row per line, three numbers separated by semicolons: lower;upper;frequency. Comma decimals are accepted. Import replaces the current table.

How to calculate statistics from a grouped frequency table

Enter class intervals and frequencies to obtain the midpoint-based approximate mean, median, quartiles, selected percentile, modal class and estimated mode when unique, population or sample variance, standard deviation, mean absolute deviation and coefficient of variation. The calculator builds cumulative and relative frequency tables and a density-based histogram for unequal class widths. Results are approximations because individual observations are unknown.

Example: classes [0,10), [10,20), [20,30), [30,40) with frequencies 3, 7, 12, 8. There are 30 observations and the approximate midpoint-based mean is 23.33.

Results are estimates and depend on the supplied values.

How to solve grouped-data exercises

Class midpoints and mean

A class midpoint is the centre of each interval. The mean is estimated by frequency weighting these midpoints, because individual values are unavailable.

xi = (lower + upper)/2; mean ≈ Σ(fi × xi) / N

Median, quartiles and percentiles

Use cumulative frequencies to identify the class that reaches p×N. Interpolate within the class while assuming values are uniformly distributed there.

Quantile(p) ≈ L + ((pN − prior F) / fi) × class width

Variance and standard deviation

Observations are approximated by their class midpoints. Divide the weighted sum of squared deviations by N (population) or N−1 (sample). The sample formula requires N greater than one.

Grouped variance ≈ Σ fi(xi − mean)² / N (or N−1)

Mode with unequal intervals

The most frequent class need not have the greatest histogram height when widths differ: compare densities fi/width. A point mode is only estimated with one modal class and touching neighbours.

Density = fi / width; mode ≈ L + (d1/(d1+d2)) × width
Important limitations

All statistics are approximate because individual observations within each class are unknown. Non-overlapping intervals may have unequal widths; their entered bounds are used directly for quantiles. Adjust class boundaries for discrete classes such as 10–19 before entering. There is no single point mode when multiple classes share the maximum density. No inferential statistics or confidence intervals are calculated.

Frequently asked questions

What is a class midpoint?

It is the midpoint of an interval, representing its values in approximate mean and dispersion calculations.

How is the grouped mean calculated?

Multiply each midpoint by its frequency, add the products and divide by the total frequency.

Is the grouped median exact?

Usually not. It assumes uniform values within the median class. The true median of raw observations may differ.

Should I choose sample or population variance?

Use population variance for the entire population of interest; use sample variance (N−1) for a sample. Sample variance is undefined at N=1.

Why does the histogram use density?

With unequal class widths, bar height should be frequency divided by class width, so bar area corresponds to frequency.

Can I paste a table from Excel?

Yes. Use lower;upper;frequency as three semicolon-separated columns and one class per line. Import replaces the current table.

What happens if two classes are modal?

If they share the greatest frequency density, a single numerical mode is not reported.

How do standard deviation and variance differ?

Variance has squared units; standard deviation is its square root, in the original units.