First of all prepare the frequency table in such a way that its first column consist of the values of the variate and the second column the corresponding frequencies.
Thereafter multiply the frequency of each row with corresponding values of variable to obtain third column containing.
Then, sum of all entries in the column second and denoted by and in the third column to obtain.
We know that mean,
By using cross multiplication method,