The standard way to estimate the an expected value of a population from a sample of values v_{1} … v_{n} is to compute the average (1/n) sum_{i = 1...n}v_{i}. It is well known in statistics that for grouped data, there are other estimators that can have smaller expected square error.