Measures the variance of two data series around their mean values.

where

The covariance can be computed incrementally:

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