Main Content
mnpdf
Multinomial probability density function
Syntax
Y = mnpdf(X,PROB)
Description
Y = mnpdf(X,PROB)
returns the pdf for the
multinomial distribution with probabilities PROB
,
evaluated at each row of X
. X
and PROB
are m-by-k matrices
or 1-by-k vectors, where k is
the number of multinomial bins or categories. Each row of PROB
must
sum to one, and the sample sizes for each observation (rows of X
)
are given by the row sums sum(X,2)
. Y
is
an m-by-1 vector, and mnpdf
computes
each row of Y
using the corresponding rows of the
inputs, or replicates them if needed.
Examples
Extended Capabilities
Version History
Introduced in R2006b