Grouped Data Mean Calculator

Enter class midpoints and frequencies to find the grouped mean.

How it is calculated

When data are only available as classes, each class is represented by its midpoint m, the value halfway between its lower and upper boundary. The estimated mean is mean = Σ(f × m) ÷ Σf, where f is the frequency of the class. The tool multiplies each midpoint by its frequency, adds the products and divides by the total frequency. Midpoints and frequencies are two lists, separated by commas or spaces, with the same number of entries in the same order. Frequencies are counts of observations, so each must be a whole number of zero or more; a fractional or negative frequency, mismatched lists or a total frequency of zero shows no result. Midpoints may be any numbers. Use a dot for decimals, since a comma separates entries. The answer is an estimate and will differ a little from the mean of the raw data.

Worked example

Ages are grouped into the classes 0–10, 10–20, 20–30 and 30–40, with midpoints 5, 15, 25 and 35 and frequencies 4, 10, 8 and 3. Multiply each midpoint by its frequency: 5 × 4 = 20, 15 × 10 = 150, 25 × 8 = 200, 35 × 3 = 105. Sum of products: 20 + 150 + 200 + 105 = 475. Total frequency: 4 + 10 + 8 + 3 = 25. Grouped mean: 475 ÷ 25 = 19.00. The estimated mean age is 19.00.

Try this example →

Common mistakes

  • Entering the class boundaries instead of the midpoints. For a class 10–20 enter 15, not 10 or 20, otherwise the mean is biased up or down.
  • Giving the lists different lengths, for example four midpoints and five frequencies. The counts must match or there is no result.
  • Entering a percentage or relative frequency such as 10.5 or 0.25 as a frequency. Frequencies are whole counts, so a fractional value shows no result; enter the actual number of observations.
  • Typing the classes in a different order in the two lists, so that a midpoint is paired with the wrong frequency.
  • Entering cumulative frequencies instead of the class frequencies. The formula needs the count in each class alone, not the running totals.

About this calculator

When raw data points are not available — only a frequency table grouping values into class intervals, as is common with census brackets, income surveys or exam score ranges — you cannot compute an ordinary mean directly. Instead, statisticians estimate it using the grouped mean formula, Σ(f·m) / Σf, where m is each class's midpoint (standing in for every value inside that class) and f is that class's frequency.

This is an approximation, since it assumes values are evenly spread around each class's midpoint, but it is the standard method for summarizing tabulated data in introductory statistics, and it is exactly how organizations that only publish age brackets or income brackets, rather than individual respondent data, still report an average.

Was this helpful?

You can pick up to 3 reactions.

Be the first to comment.

Popular calculators

All Calculators