[Numpy-discussion] Efficient way to draw multinomial distribution random samples

Kevin Sheppard kevin.k.sheppard at gmail.com
Sun Nov 1 19:58:27 EST 2020


This is in the pending PR.  Hopefully out in 1.20.

Kevin


On Sun, Nov 1, 2020, 23:55 Currurant <currurant at gmail.com> wrote:

> I realized that neither numpy.random.multinomial nor rng.multinomial has
> the
> ability to draw from different multinomial distributions at the same time
> like what MATLAB mnrnd() does here:
>
> https://www.mathworks.com/help/stats/mnrnd.html
>
> Also, I have asked this question on StackOverFlow:
>
>
> https://stackoverflow.com/questions/64529620/is-there-an-efficient-way-to-generate-multinomial-random-variables-in-parallel?noredirect=1#comment114131565_64529620
>
> It seems like this is something good to add to numpy.random, since it would
> be much more faster when you have many multinomial distributions to draw
> from---using loops.
>
>
>
> --
> Sent from: http://numpy-discussion.10968.n7.nabble.com/
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at python.org
> https://mail.python.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/numpy-discussion/attachments/20201102/a44e8c78/attachment.html>


More information about the NumPy-Discussion mailing list