bundles / scipy 1.17.1 / scipy / stats / _multivariate / multinomial_gen / logpmf
function
scipy.stats._multivariate:multinomial_gen.logpmf
Signature
def logpmf ( self , x , n , p ) Summary
Log of the 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
logpmf: ndarray or scalarLog of the probability mass 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.logpmf