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

Skipper Seabold jsseabold@gmail....
Thu Dec 13 11:44:36 CST 2012

On Thu, Dec 13, 2012 at 12:36 PM, Robert Kern <robert.kern@gmail.com> wrote:
> On Thu, Dec 13, 2012 at 5:30 PM, Ben Gamari <bgamari.foss@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


More information about the SciPy-User mailing list