LightMySky

Estimating the mean from grouped data

Estimate a mean from grouped data using class midpoints, say why the answer is only an estimate, and identify the modal class and the class holding the median.

No account needed. Progress saves in this browser.

What a learner can do afterwards

  • Use the midpoint of each class as the value standing for that class
  • Explain why grouped counts do not establish whether the midpoint estimate equals the true mean
  • Identify the modal class and the class that contains the median

1 · Read

Last stop, each row gave an exact value. Here members ticked time bands instead. In 20 ≤ t < 40, 20 is included and 40 is excluded, so exactly 40 minutes goes in the next band. The five bands have 6, 21, 15, 12 and 6 members, sixty in all. Counts show how many visits fall in each band, not exact times or which band a named member chose.

0-20620-402140-601560-801280-1006
Sixty members sorted into five bands. Each bar says how many, and none of them says how long any one visit was.

To estimate a mean, choose each band's midpoint as its stand-in: add the boundaries and divide by 2. For 20 ≤ t < 40, (20 + 40) / 2 = 30. The five midpoints are 10, 30, 50, 70 and 90. A midpoint is equally far from both boundaries, but need not equal the real class mean. A value can be at most half a band's width from its midpoint. Lower boundaries give smaller estimates than midpoints; upper boundaries give larger ones.

Try it together

Use the same method as before, with the midpoint m in place of the value x. Multiply each midpoint by its frequency: 6 × 10 = 60, 21 × 30 = 630, 15 × 50 = 750, 12 × 70 = 840 and 6 × 90 = 540. Add them: 60 + 630 + 750 + 840 + 540 = 2820 minutes. Divide by how many members: 2820 / 60 = 47. So members stay about 47 minutes on average.

midpoint of each band× its frequencyadd, then divide by 60
These are the same three moves as last stop. Only the first is new: choose a value to represent each band before using it.

Midpoints replace unknown values, so 47 is an estimate even with exact arithmetic. A class's actual total is its actual mean times its frequency. If that mean is below its midpoint, the class total is overestimated; other classes may offset this. The estimate is exact if all values equal their class midpoints, but errors can also cancel. Each value's error is at most half the band width. Narrower bands lower this bound, not necessarily the actual mean error.

Find the modal class beside the largest frequency: 20 ≤ t < 40 has 21 members. Exact modes are unknown. Running totals are 6, 27, 42, 54, 60. For odd count n, locate (n + 1) / 2. For even n, this is a half position between n / 2 and n / 2 + 1: find both observations and average their values. Here 30.5 lies between positions 30 and 31, both in 40 ≤ t < 60, so the median lies there. If the two middle observations are in different bands, their average's band may be unknown.

Use midpoints times frequencies, add, then divide by total frequency to estimate the mean. The modal class has the largest frequency. Running totals locate the middle observation or pair.

Practice questions and four readings were written for this dataset. The retained video, "Estimating mean and median in data displays", is published by Khan Academy. Its license is not specified.

2 · Watch

3 · Play

step 1 of 6

The visits question gave exact numbers, so its frequency table gave an exact mean. The second question asked how long members stay on site and offered bands to tick. The sixty members' answers were counted as 6, 21, 15, 12 and 6 across the bands 0 to 20, 20 to 40, 40 to 60, 60 to 80 and 80 to 100 minutes. No exact times were recorded.

The 21 members in 20 ≤ t < 40 need one value to stand for them. Which value, and why?

0-20620-402140-601560-801280-1006

Take it off screen

Print a worksheetA4 with an answer key page for grown-ups. No screen, no internet.

Where it sits

Where this leads

Jobs that lean on this skill. Follow one to see everything it is built on.

Then practise

34 questions wait behind this lesson, each with its answer explained. Every answer feeds the sky: stars light as they are learned, and dim when it is time to come back.

Spotted a problem on this page? Tell us
Estimating the mean from grouped data · Mathematics, ages 14 to 15 · LightMySky