[Python-ideas] Proposal: add a calculator statistics module
Stephen J. Turnbull
stephen at xemacs.org
Tue Sep 13 04:35:56 CEST 2011
Steven D'Aprano writes:
> I propose adding a basic calculator statistics module to the standard
> library, similar to the sorts of functions you would get on a scientific
> mean (average)
> variance (population and sample)
> standard deviation (population and sample)
> correlation coefficient
+1 for these.
> and similar.
I'm not sure about that. I immediately thought "how about bivariate
linear regression?", but that's actually misleading in many cases.
Doing anything more general is beyond the scope of "like a typical
scientific/statistical hand calculator".
On the other hand, well-commented code showing how to do the bivariate
case would help people to implement more general cases. Ditto for
other common tasks like chi-square tests.
More information about the Python-ideas