[OT] Generating distribution of N dice rolls

jmh530 john.michael.hall at gmail.com
Thu Nov 10 14:34:32 UTC 2022


On Thursday, 10 November 2022 at 12:21:30 UTC, Timon Gehr wrote:
> [snip]
> A multinomial is the distribution of a frequency table obtained 
> after drawing n times from a categorical distribution. The OP 
> is only interested in the special case where that categorical 
> distribution is uniform. n is the number of samples, k is the 
> number of events. It's the terminology used by the Wikipedia 
> article I linked.
> [snip]

Ah, I see what you're saying now. When p = 1 / K, a categorical 
distribution is the same as a uniform distribution. I tend to 
think of multinomial as a generalization of binomial, but it's 
really a generalization of both binomial and categorical.


More information about the Digitalmars-d mailing list