Skip Menu |

This queue is for tickets about the Statistics-Descriptive CPAN distribution.

Report information
The Basics
Id: 66712
Status: resolved
Priority: 0/
Queue: Statistics-Descriptive

People
Owner: Nobody in particular
Requestors: KUBINA [...] cpan.org
Cc: jeff.kubina [...] gmail.com
AdminCc:

Bug Information
Severity: Important
Broken in: 3.0201
Fixed in: (no value)



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

 
Hi Jeff, On Fri Mar 18 09:58:35 2011, KUBINA wrote: Show quoted text
> 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? >
If possible, please submit a patch that includes modifications to one of the test scripts for that. I'm not a big expert in the methods of calculating such stuff. Regards, -- Shlomi Fish
RT-Send-CC: jeff.kubina [...] gmail.com
Hi, Jeff. Please follow my request in the comment. Otherwise, I'll have to close this bug. Regards, -- Shlomi Fish On Fri Mar 18 09:58:35 2011, KUBINA wrote: Show quoted text
> 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
On Wed Aug 03 04:15:44 2011, SHLOMIF wrote: Show quoted text
> Hi, Jeff. > > Please follow my request in the comment. Otherwise, I'll have to close > this bug. >
Closing due to lack of responsiveness and inactivity. Please reply (and preferably supply a patch) to re-open. Regards, — Shlomi Fish Show quoted text
> Regards, > > -- Shlomi Fish