calculating average squared variance
Variance. Variance (Ï 2) is a measure of the dispersion of a set of data points around their mean value. In other words, variance is a mathematical expectation of the average squared deviations from the mean. It is computed by finding the probability-weighted average of squared deviations from the expected value. Variance measures the variability from an average (volatility).