multinomial

(function for equations)

 

Usage:

multinomial (n1, n2, ... nn)

Definition:

(n1 + n2 + ... nn)! / (n1! * n2! * ... nn!)

Required:

ni0         ni are integers

Returns the number of ways an (n1+n2+…nn) sized set of distinct elements can be partitioned into sets of size n1, n2, … nn.  

If partitioning into only two sets, this is the same as binomial.

The probability distribution based on this function is the multinomial distribution.