CC: | jeff.kubina [...] gmail.com |
Subject: | variance calculation is not numerically stable |
Shlomi,
The method to compute the variance is numerically unstable, see http://bit.ly/gNE2pl; version 2 of the module used the method by Knuth and Welford, see http://bit.ly/gY4u5t, to compute the variance but this was removed in the update to version 3.
Would it be possible to move the variance calculation back to the Knuth and Welford method; in that case the variance would never be negative and more accurate?
--
Jeff
The method to compute the variance is numerically unstable, see http://bit.ly/gNE2pl; version 2 of the module used the method by Knuth and Welford, see http://bit.ly/gY4u5t, to compute the variance but this was removed in the update to version 3.
Would it be possible to move the variance calculation back to the Knuth and Welford method; in that case the variance would never be negative and more accurate?
--
Jeff