Grouped Data Calculator

Enter the classes and their frequencies to estimate the mean, median and mode.

Class intervals separated by commas, such as 10-20.

One whole number for each class, in the same order.

Try

Result

You entered{0 to 5: 3, 5 to 10: 3}\left\{ 0\text{ to }5:\ 3,\ 5\text{ to }10:\ 3 \right\}

estimated mean=5, estimated median=5, modal class=0-5 and 5-10\displaystyle \text{estimated mean} = 5,\ \text{estimated median} = 5,\ \text{modal class} = \text{0-5 and 5-10}

Total frequency

6\displaystyle 6

Estimated standard deviation (population)

2.5\displaystyle 2.5

Median class

0 to 5\displaystyle 0\text{ to }5
Show the work
  1. Class midpoints

    Grouped data does not keep the individual values, so each class is represented by its midpoint: the mean of its lower bound LL and upper bound UU.

    Using x=L+U2x = \frac{L + U}{2}

    0+52=2.5, 5+102=7.5\frac{0 + 5}{2} = 2.5,\ \frac{5 + 10}{2} = 7.5
  2. Frequency times midpoint

    Multiply each midpoint xx by its frequency ff to estimate the total of the values in that class, then add these estimates.

    ∑fx=3×2.5+3×7.5=7.5+22.5=30\begin{aligned} \sum fx &= 3 \times 2.5 + 3 \times 7.5 \\ &= 7.5 + 22.5 \\ &= 30 \end{aligned}
  3. Estimated mean from a frequency table

    Divide the estimated total by the total frequency. Here ∑f=6\sum f = 6.

    xˉ=∑fx∑f=306=5\begin{aligned} \bar{x} &= \frac{\sum fx}{\sum f} \\ &= \frac{30}{6} \\ &= 5 \end{aligned}
  4. Median class

    The median is the value halfway through the data, at position n2=3\frac{n}{2} = 3. The cumulative frequencies are 3, 63,\ 6, and the first one that reaches 3 belongs to the class 0-5, so that is the median class.

  5. Median by interpolation

    Assume the values are spread evenly through the median class. Here L=0L = 0 is its lower bound, F=0F = 0 the cumulative frequency before it, f=3f = 3 its frequency and w=5w = 5 its width.

    m=L+n2−Ff×w=0+3−03×5=5\begin{aligned} m &= L + \frac{\frac{n}{2} - F}{f} \times w \\ &= 0 + \frac{3 - 0}{3} \times 5 \\ &= 5 \end{aligned}
  6. Modal class

    The modal class is the class with the highest frequency. Here 0-5 and 5-10 share the highest frequency, so there is more than one modal class and no single mode can be estimated.

  7. Result

    So the estimated mean is 55, the estimated median is 55 and the modal class is 0-5 and 5-10.

Worked examples