Adding to statistics.py

I would like to add more classes for the different random variable distributions that statistics.py currently does not have. Some of examples of the distributions I would like to add are, poisson, geomteric, hypergeometric, binomial etc…

FWIW, all of the distributions you mentioned (and more) are currently available in scipy.stats.

3 Likes

I know but I wanted to add it cpython instead of having to use it.

Why? Scipy is in the process of a big stats rewrite, and their new interface is looking very well designed. Do you really think that CPython has any hope of producing anything even close?

2 Likes

statistics is intentionally limited in scope to " the level of graphing and scientific calculators" and not compete at all with scipy, etc. I am pretty sure that the few core developers who will touch it do not want to expand.

2 Likes