Online algorithm for mean and variance, with support for uneven weights.
See algorithms for calculating variance.
rolling-stats