The mean ¯x of a grouped data is given by:
∑fixi∑fi
For grouped data, using the direct method first, we find the sum of the values of all the observations after multiplying them with their respective frequencies. Then we divide this result by the total number of observations (sum of all frequencies).