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.

Start learning thisNo 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 times frequency, added, divided by the total frequency.

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.

Original lesson, questions and flashcards written for this learning dataset.

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

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
  • 20, the number the band starts at

    20 is the band's lower boundary. Using it instead of the midpoint 30 lowers this band's estimated total. That comparison alone does not tell us the error in the whole table's mean.

  • 30, the midpoint found by adding 20 and 40 and halving (The answer)

    Yes. (20 + 40) / 2 = 30. We use the midpoint to represent the band. The actual times could all be above it, below it or at it; the counts do not tell us.

  • 21, since 21 members ticked it

    21 is the frequency: it counts members. It is not how we find the midpoint. Add the boundaries and halve: (20 + 40) / 2 = 30 minutes.

Five bands, five midpoints: 10, 30, 50, 70 and 90. Each is a stand-in for the exact times the tick-box form did not record.

Use the same move as last stop, with the midpoint replacing the exact value. Take the 40 ≤ t < 60 band: 15 members, every one of them treated as a 50-minute visitor.

Tap out the fifteen members of that band, one at a time.

Fifteen members at 50 minutes each is 15 × 50 = 750 minutes from this band. Across all five the total is 60 + 630 + 750 + 840 + 540 = 2820 minutes.

Mia has 2820 estimated minutes on the board and reaches for the last division. Five bands, she says, so 2820 / 5 = 564. She writes 564 minutes, then stops: that exceeds the upper boundary of every recorded band.

Her instinct is right. What should the 2820 be divided by?

2820 minutes÷ 5 bands = 564
  • 60, the number of members, because a mean shares the total between the people (The answer)

    Yes. 2820 / 60 = 47 minutes. The 2820 was built from members, so it has to be shared back out among members.

  • 5, but the bands should have been narrower first

    Narrower bands reduce the maximum midpoint error per value, but 564 would still use the wrong denominator. Divide the estimated total by the 60 members, not the number of bands.

  • 90, the largest midpoint

    That would ask how many 90-minute visits the total is worth, which is a different question and not an average of anybody.

About 47 minutes each. You used the same mean calculation as before, with stand-in values.

Leo wants to write 47 on the notice board. Mia wants to write about 47.

Who is right, and why?

  • Leo, because every step of the arithmetic was exact

    The arithmetic was exact, but the actual times are unknown. Counting all 21 members of one band as 30-minute visitors does not establish their real total.

  • Leo, because the bands were the same width all the way down

    Equal widths keep the working tidy. They say nothing about where inside each band the real times sat, which is what makes the mean an estimate.

  • Mia, because the actual times within each band are unknown (The answer)

    Yes. 47 is the midpoint estimate. It might match the real mean, but these counts cannot confirm that. Report it as about 47 minutes.

About 47 minutes, estimated from the bands. Anyone reading it now knows what it rests on.

Two more lines for the board. The fullest band is 20 ≤ t < 40 with 21 members, so that is the modal class. The median needs the running totals down the frequency column: 6, 27, 42, 54, 60. Position (60 + 1) / 2 = 30.5.

Which band holds the median?

0-20 ends at 620-40 ends at 2740-60 ends at 42
  • 20 ≤ t < 40, because that is the fullest band

    Fullest and middle are different questions. The 20-40 band runs out at member 27, and the 30th comes after that.

  • 40 ≤ t < 60, because 30.5 is past 27 and inside the block ending at 42 (The answer)

    Yes. Members 28 to 42 all sit in that band, and the 30th is one of them. Notice the median class and the modal class are different bands, which is allowed.

  • None of them, since the median needs an exact value

    Here both middle observations lie in 40 ≤ t < 60, so their average lies in that band too. Their exact times, and therefore the exact median, remain unknown.

Mean about 47 minutes, modal class 20 ≤ t < 40, median in 40 ≤ t < 60. These summaries use the counts without revealing anyone's exact visit time.

The tick-box form did not record the real times. You still found a usable mean by choosing one stand-in value per band and reporting the result as an estimate.

  • Add the boundaries and halve to find a midpoint that stands in for unknown values
  • Multiply each midpoint by its frequency, add, then divide by the total frequency
  • The answer is an estimate, because every member of a band is treated as sitting at its middle
  • The modal class is fullest; running totals locate middle observations, whose average gives an even-count median

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.

Start learning this