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 Alextp
Recipients Alextp, rhettinger, steven.daprano, zach.ware
Date 2014-03-24.18:23:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395685433.41.0.641548267154.issue21046@psf.upfronthosting.co.za>
In-reply-to
Content
5) pvariance.
Calculates "population variance" of iterable by such formula:

pvariance([x1, x2, ..., xN], M) = ((x1 - M)**2 + ... + (xN - M)**2) / N

M is optional argument which should be value of mean([x1, ... xN]) calculated before. If M parameter is missed in call, it's calculated automatically:
M = (x1 + ... + xN) / N

6) variance.
(NOTE: pls check this.)
Calculates "sample variance" from iterable. It's given by the same formula as pvariance, but not for entire iterable value set. Only subset of iterable is used for calculation. .......... (write here how this subset is taken, randomly or what..... i didn't get it from Wikipedia.)

Ok?
History
Date User Action Args
2014-03-24 18:23:53Alextpsetrecipients: + Alextp, rhettinger, steven.daprano, zach.ware
2014-03-24 18:23:53Alextpsetmessageid: <1395685433.41.0.641548267154.issue21046@psf.upfronthosting.co.za>
2014-03-24 18:23:53Alextplinkissue21046 messages
2014-03-24 18:23:53Alextpcreate