3 ms·
Wrt the python package. Scipy has binomial and poisson classes [1,2]. I don't know if these fit the bill? [1]https://docs.scipy.org/doc/scipy/reference/generat
by el_oni 4y ago
Wrt the python package. Scipy has binomial and poisson classes [1,2]. I don't know if these fit the bill?
[1]https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.binom.html https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...
[2]https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...
- lancebeet 4y agoI think what he/she is looking for is the Poisson-Binomial distribution[1]. There is mention of one python package in the wikipedia article[2], but it doesn't seem to be widely used. There's an open issue from 2016 to implement it in scipy.stats[3]. [1] https://en.wikipedia.org/wiki/Poisson_binomial_distribution https://en.wikipedia.org/wiki/Poisson_binomial_distribution [2] https://github.com/tsakim/poibin https://github.com/tsakim/poibin [3] https://github.com/scipy/scipy/issues/6000 https://github.com/scipy/scipy/issues/6000
- defrost 4y agoHeh. The attempt to shoehorn in the Python version of the R Fourier variation was closed 18 days ago with a "doesn't quite fit, try again later" [4] https://github.com/scipy/scipy/pull/12000 https://github.com/scipy/scipy/pull/12000
- javitury 4y agoThanks for the suggestions but unfortunately the poisson-binomial distribution [1] is not a simple combination of those two distributions. It requires of specialized packages like PoissonBinomial[2] in R. [1]https://en.wikipedia.org/wiki/Poisson_binomial_distribution https://en.wikipedia.org/wiki/Poisson_binomial_distribution [2]https://cran.r-project.org/web/packages/PoissonBinomial/index.html https://cran.r-project.org/web/packages/PoissonBinomial/inde...
- el_oni 4y agoAhh my apologies. Shows my lack of domain knowledge. Looking at some child comments it looks like there have been attempts to get it added to scipy since 2016.