https://math.stackexchange.com/a/116344/25814 provides a mechanism to calculate the running variance of a stream of values. I'd like to replace one of the values included in the running variance with a different value.
For example, millions of users are asked a question. I calculate the variance of their answers. At some point, a user goes back and changes their answer. I'd like to calculate the new variance as it used the new value in the original calculation.
Recalculating the variance from the beginning is a very expensive process. Is there a way to update the running variance without restarting the calculation?