Great blog post giving an overview of the various way you can calculate averages and over statistical values.