Welford's method http://www.johndcook.com/blog/standard_deviation/ http://www.johndcook.com/blog/2008/09/28/theoretical-explanation-for-numerical-results/ http://www.johndcook.com/blog/2008/09/26/comparing-three-methods-of-computing-standard-deviation/