Mean, Median and Mode from Grouped Frequencies

Explained with Three Examples

The Race and the Naughty Puppy

This starts with some raw data (not a grouped frequency yet) …

Grouped Frequency Table

Alex then makes a Grouped Frequency Table:

SecondsFrequency
51 – 552
56 – 607
61 – 658
66 – 704
frequency with groups

So 2 runners took between 51 and 55 seconds, 7 took between 56 and 60 seconds, etc

Oh No!

Suddenly all the original data gets lost (naughty pup!)


Only the Grouped Frequency Table survived …

… can we help Alex calculate the Mean, Median and Mode from just that table?

The answer is … no we can’t. Not accurately anyway. But, we can make estimates.

Estimating the Mean from Grouped Data

So all we have left is:

SecondsFrequency
51 – 552
56 – 607
61 – 658
66 – 704

The groups (51-55, 56-60, etc), also called class intervals, are of width 5

The midpoints are in the middle of each class: 53, 58, 63 and 68

grouped frequency

We can estimate the Mean by using the midpoints.

So, how does this work?

Think about the 7 runners in the group 56 – 60: all we know is that they ran somewhere between 56 and 60 seconds:

  • Maybe all seven of them did 56 seconds,
  • Maybe all seven of them did 60 seconds,
  • But it is more likely that there is a spread of numbers: some at 56, some at 57, etc

So we take an average and assume that all seven of them took 58 seconds.

Let’s now make the table using midpoints:

MidpointFrequency
532
587
638
684
grouped frequency

Our thinking is: “2 people took 53 sec, 7 people took 58 sec, 8 people took 63 sec and 4 took 68 sec”. In other words we imagine the data looks like this:

53, 53, 58, 58, 58, 58, 58, 58, 58, 63, 63, 63, 63, 63, 63, 63, 63, 68, 68, 68, 68

Then we add them all up and divide by 21. The quick way to do it is to multiply each midpoint by each frequency:

Midpoint
x
Frequency
f
Midpoint × Frequency
fx
532106
587406
638504
684272
Totals:211288

And then our estimate of the mean time to complete the race is:

Estimated Mean =  128821  = 61.333…

Very close to the exact answer we got earlier.

Estimating the Median from Grouped Data

Let’s look at our data again:

SecondsFrequency
51 – 552
56 – 607
61 – 658
66 – 704
grouped frequency

The median is the middle value, which in our case is the 11th one, which is in the 61 – 65 group:

We can say “the median group is 61 – 65″

But if we want an estimated Median value we need to look more closely at the 61 – 65 group.

We call it “61 – 65”, but it really includes values from 60.5 up to (but not including) 65.5.

Why? Well, the values are in whole seconds, so a real time of 60.5 is measured as 61. Likewise 65.4 is measured as 65.

At 60.5 we already have 9 runners, and by the next boundary at 65.5 we have 17 runners. By drawing a straight line in between we can pick out where the median frequency of n/2 runners is:

grouped frequency

And this handy formula does the calculation:

Estimating the Mode from Grouped Data

Again, looking at our data:

SecondsFrequency
51 – 552
56 – 607
61 – 658
66 – 704

We can easily find the modal group (the group with the highest frequency), which is 61 – 65

We can say “the modal group is 61 – 65″

But the actual Mode may not even be in that group! Or there may be more than one mode. Without the raw data we don’t really know.

But, we can estimate the Mode using the following formula:

where:

  • L is the lower class boundary of the modal group
  • fm-1 is the frequency of the group before the modal group
  • fm is the frequency of the modal group
  • fm+1 is the frequency of the group after the modal group
  • w is the group width

In this example:

  • L = 60.5
  • fm-1 = 7
  • fm = 8
  • fm+1 = 4
  • w = 5

Our final result is:

  • Estimated Mean: 61.333…
  • Estimated Median: 61.4375
  • Estimated Mode: 61.5

(Compare that with the true Mean, Median and Mode of 61.38…, 61 and 62 that we got at the very start.)

And that is how it is done.

Now let us look at two more examples, and get some more practice along the way!

Baby Carrots Example

carrots

Example: You grew fifty baby carrots using special soil. You dig them up and measure their lengths (to the nearest mm) and group the results:

Length (mm)Frequency
150 – 1545
155 – 1592
160 – 1646
165 – 1698
170 – 1749
175 – 17911
180 – 1846
185 – 1893

Mean

Length (mm)Midpoint
x
Frequency
f

fx
150 – 1541525760
155 – 1591572314
160 – 1641626972
165 – 16916781336
170 – 17417291548
175 – 179177111947
180 – 18418261092
185 – 1891873561
 Totals:508530

Estimated Mean =  853050  = 170.6 mm

Age Example

Age is a special case.

When we say “Sarah is 17” she stays “17” up until her eighteenth birthday.
She might be 17 years and 364 days old and still be called “17”.

This changes the midpoints and class boundaries.

tropical island

Example: The ages of the 112 people who live on a tropical island are grouped as follows:

AgeNumber
0 – 920
10 – 1921
20 – 2923
30 – 3916
40 – 4911
50 – 5910
60 – 697
70 – 793
80 – 891

A child in the first group 0 – 9 could be almost 10 years old. So the midpoint for this group is 5 not 4.5

The midpoints are 5, 15, 25, 35, 45, 55, 65, 75 and 85

Similarly, in the calculations of Median and Mode, we will use the class boundaries 0, 10, 20 etc

Mean

AgeMidpoint
x
Number
f

fx
0 – 9520100
10 – 191521315
20 – 292523575
30 – 393516560
40 – 494511495
50 – 595510550
60 – 69657455
70 – 79753225
80 – 8985185
 Totals:1123360

Estimated Mean =  3360112  = 30

Summary

Loading

error: Content is protected !!