Variance and standard deviation for grouped data
The formula for variance and standard deviation for grouped data is very similar to the one for ungrouped data.
Below, we show the formula for ungrouped data and grouped data.
Ungrouped data Variance = Variance =
Grouped data Variance = Variance =
For grouped data, m is the midpoint of a class and f is the frequency of a class
Did you notice the similarity? Recall that a class is a group of values such as 1-3 containing 1, 2, and 3.
For grouped data, we use the midpoint of a class instead of x or the exact value
Then, just like the mean, we multiply the numerator by f or the frequency before taking the sum.
To get the standard deviation, just take the square root of the variance.
By the same token, to get the variance, just raise the standard deviation to the power of 2.
Let s represent the sample standard deviation, then s² is the sample variance.
Let σ represent the population standard deviation, then σ² is the population variance.