stats implements Welford's one-pass algorithm for computing mean and variance