This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author steven.daprano
Recipients steven.daprano, wolma
Date 2014-04-09.13:29:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <20140409132915.GB11385@ando>
In-reply-to <1397031642.37.0.525075881124.issue21184@psf.upfronthosting.co.za>
Content
On Wed, Apr 09, 2014 at 08:20:42AM +0000, Wolfgang Maier wrote:
> I do not think this is a bug in the module, but rather incorrect usage.
[...]

No, it is legitimate usage. See, for example, "Numerical Recipes in 
Pascal" by Press et al. When you know the population mean independently 
from the sample you're using, you should not apply Bessel's Correction 
(that is, you should use a denominator of n rather than n-1, which 
is equivalent to using the population variance).

I don't think it is appropriate to include too much of the complexity 
about variance in the docs. (They should document the module, not teach 
all the odd corners of statistics theory.) I've tried to clarify the 
different uses of (p)variance here: 
http://import-that.dreamwidth.org/2291.html

If you're still not convinced, this usage is equivalent to the 
gsl_stats_variance_with_fixed_mean function from the GNU Scientific 
Library:
https://www.gnu.org/software/gsl/manual/html_node/Mean-and-standard-deviation-and-variance.html
History
Date User Action Args
2014-04-09 13:29:31steven.dapranosetrecipients: + steven.daprano, wolma
2014-04-09 13:29:31steven.dapranolinkissue21184 messages
2014-04-09 13:29:31steven.dapranocreate