Solution:
Let be the standard deviation. Then,
It follows from the above discussion that in case of individual observations, variance/ standard deviation may be computed by applying any of the above three formulas. In order to calculate the variance when deviations are taken from the actual mean, we may use the following algorithm.