[Python-ideas] Proposal: add a calculator statistics module
Massimo Di Pierro
massimo.dipierro at gmail.com
Tue Sep 13 04:50:26 CEST 2011
Technically linear regression can be implemented in one line of code assuming a good linear algebra package:
(here used for fitting polynomials or any other bivariate or multivariate function linear in coefficients)
Unless python is going to have a built-in linear algebra packages, I think linear regressions fits better in scipy.
On Sep 12, 2011, at 9:35 PM, Stephen J. Turnbull wrote:
> 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.
> Python-ideas mailing list
> Python-ideas at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas