It is an error in the algorithm. It is an excellent example of how errors and faults occur when the programmer follows the mathematical formula exactly. Welford's algorithm does not produce this error. It gives correct standard deviation and variance values. David Heiser