The variance is generally defined in terms of the arithmetic mean as:
At times, though, the denominator is defined as n instead of n - 1. The default definition used by the MATLAB is given by earlier equation; therefore we will use that definition here.