Question: how to calculate the mean and variance?
Answer: Work out the Mean (the simple average of the numbers)
Then for each number: subtract the Mean and square the result (the squared difference).
Then work out the average of those squared differences. (Why Square?)