Question: how to calculate mean deviation and variance?
Answer: Calculate the mean.
Subtract the mean from each observation.
Square each of the resulting observations.
Add these squared results together.
Divide this total by the number of observations (variance, S2).
Use the positive square root (standard deviation, S).