[SciPy-User] scipy.stats.distributions lacking categorical and multinomial?

Skipper Seabold jsseabold at gmail.com
Thu Dec 13 12:44:36 EST 2012


On Thu, Dec 13, 2012 at 12:36 PM, Robert Kern <robert.kern at gmail.com> wrote:
> On Thu, Dec 13, 2012 at 5:30 PM, Ben Gamari <bgamari.foss at gmail.com> wrote:
>> Is there any particular reason for the categorical (generalized
>> Bernoulli) and multinomial (generalized binomial) distribution not being
>> included in scipy.stats.distributions?
>
> scipy.stats.distributions only provides a framework for univariate
> distributions. It's not clear what the interfaces should be for
> multivariate distributions, but you are welcome to make proposals.
>

I don't know what your needs are, but FWIW, I've been able to get by
using np.random.multinomial for sampling and either rolling my own
functions or using PyMC for the included categorical_like and
multinomial_like.

Skipper



More information about the SciPy-User mailing list