Measures the variance of a series of values around their mean value.

where

The variance can be computed incrementally:

Thus, we sum all and all , then build the difference of their mean values.