The mean of a data set is given by the expression
Where N is the number of elements of the data set and a_n the different elements in the data set.
Since some elements are repeated we can reduce the former formula into the next expression:
Where N is the number of elements in the data set, M is the number of not repeated elements.
Therefore, in the case of our problem:
We need to identify N and we can do it by adding up the frequencies:
Then, the mean is: