Start with definition of mean. (Sum index i is over all n- observed i ndividual data values. Sum index k is over the number of cell intervals, n c .)
Sample Mean:
Sum index "k" is over the number of cells , n c = 5.
Divide the cell sum by the total of observations, n = 20.