Determine the midpoint of each interval.
Sum up all frequencies to obtain the number of samples.
For each range of grouped data, multiply its midpoint by associated frequency. Add them all up.
Divide this value by the number of samples.
Read more