How to calculate arithmetic mean in statistics