aesara.tensor.random.multinomial = <aesara.tensor.random.basic.MultinomialRV object>[source]#

A multinomial discrete random variable.

The probability mass function of multinomial in terms of the number of experiments n and the probabilities p_1, \dots, p_k of the k different possible outcomes is:

f(x_1,\dots,x_k; n, p_1, \dots, p_k) = \frac{n!}{x_1! \dots x_k!} \prod_{i=1}^k x_i^{p_i}

where n>0 and \sum_{i=1}^k p_i = 1.


The length of the support dimension is determined by the last dimension in the second parameter (i.e. the probabilities vector).