https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Online_algorithm

You compute the prefix means/second moments, the suffix means/second moments, and then combine them using the parallel algorithm below, and you can use that to get the total jackknifed mean and variance.

]]>