Mean is average of a given set of data. Let us consider below example
2, 4, 4, 4, 5, 5, 7, 9
These eight data points have the mean (average) of 5:
Variance is sum of squares of differences between all numbers and means.
Deviation for above example. First, calculate the deviations of each data point from the mean, and square the result of each: