[archive]
How to compute the average, variance, covariance, and correlation of two series in a recursive way. That is, starting with the statistic for N items, how does it change when item N+1 is added?
Computing (co)variances recursively.