Can anyone explain this code to me? Calculation of mean and variance.

Printable View