Estimating the mean from grouped data - The Maths Vault

Estimating the mean from grouped data

Set up a grouped frequency table, work out the estimated mean using midpoints, then reveal the actual data behind the table and compare your estimate with the true mean. See also Mean estimation simulation for a visual histogram version.

Set up your frequency table

Choose how many groups you want, set the class intervals and frequencies, then generate a hidden dataset that matches your table.

Class interval Lower bound Upper bound Frequency
Total frequency 0

How it works

  1. Set class intervals and a different frequency for each group.
  2. Generate hidden data — the tool creates real values that fall inside each class.
  3. Work out midpoints, multiply by frequency, and divide by total frequency.
  4. Check your estimate, then reveal the actual data to see how close your estimate is to the true mean.

The percentage difference is |estimated mean − actual mean| ÷ actual mean × 100%.