*34*

Often we may want to calculate the mean and standard deviation of data that is grouped in some way. For example, suppose we have the following grouped data:

While itâ€™s not possible to calculate the exact mean and standard deviation since we donâ€™t know the raw data values, it is possible to estimate the mean and standard deviation.

The following steps explain how to do so.

**Related:** How to Find the Mode of Grouped Data

**Calculate the Mean of Grouped Data**

We can use the following formula to estimate the mean of grouped data:

**Mean:**Â Î£m_{i}n_{i}Â / N

where:

**m**Â TheÂ midpointÂ of the i_{i}:^{th}group**n**Â The frequency of the i_{i}:^{th}group**N:**Â The total sample size

Hereâ€™s how we would apply this formula to our dataset from earlier:

The mean of the dataset turns out to beÂ **22.89**.Â

**Note:** The midpoint for each group can be found by taking the average of the lower and upper value in the range. For example, the midpoint for the first group is calculated as: (1+10) / 2 = 5.5.

**Calculate the Standard Deviation of Grouped Data**

We can use the following formula to estimate the standard deviation of grouped data:

**Standard Deviation:** âˆšÎ£n_{i}(m_{i}-Î¼)^{2} / (N-1)

where:

**n**Â The frequency of the i_{i}:^{th}group**m**Â TheÂ midpointÂ of the i_{i}:^{th}group**Î¼**: The mean**N:**Â The total sample size

Hereâ€™s how we would apply this formula to our dataset:

The standard deviation of the dataset turns out to be **9.6377**.

**Additional Resources**

How to Estimate the Mean and Median of Any Histogram

How to Calculate Percentile Rank for Grouped Data

How to Find the Median of Grouped Data