bundles / scipy latest / scipy / stats / _multivariate / multinomial_gen / pmf
function
scipy.stats._multivariate:multinomial_gen.pmf
Signature
def pmf ( self , x , n , p ) Summary
Multinomial probability mass function.
Parameters
x: array_likeQuantiles, with the last axis of
xdenoting the components.n: intNumber of trials
p: array_likeProbability of a trial falling into each category; should sum to 1
Returns
pmf: ndarray or scalarProbability density function evaluated at
x
Notes
n should be a nonnegative integer. Each element of p should be in the interval and the elements should sum to 1. If they do not sum to 1, the last element of the p array is not used and is replaced with the remaining probability left over from the earlier elements.
Aliases
-
scipy.stats._multivariate.multinomial_gen.pmf