Artificial intelligent assistant

Catastrophic cancellation I need some informations about algorithms to solve the problem of catastrophic cancellation, or in general to calculate mean and variance of a data stream. For example about Donald Knuth's algorithm or, also, about new algorithms or methods to solve the same problem.

See this page. The third algorithm shown is Knuth's. The algorithm is said to be "numerically stable", which implies that it avoids catastrophic cancellation, among other things.

See also here or here. The algorithm given by Knuth goes back to a 1962 paper by Welford. You will find lots of material if you google "welford mean variance".

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 8e1df5759c5e159fbc0de428dcdcae6d