Compute the probability density function of the multinomial distribution.
1
, then the corresponding element
of y will be NaN
.
x = [1, 4, 2]; p = [0.2, 0.5, 0.3]; y = mnpdf (x, p);
x = [1, 4, 2; 1, 0, 9]; p = [0.2, 0.5, 0.3; 0.1, 0.1, 0.8]; y = mnpdf (x, p);
Package: statistics