MultinomialDistribution
draws over categories with probabilities (summing to 1); a count vector on the -simplex.
MultinomialDistribution(n, {p1, ..., pk})n independent draws, each landing in category i with probability pi.Typed signatures
| Type | Package | Applies |
|---|---|---|
(real<0..>, list<real>) -> distribution | statistics | always |
Details
- when , otherwise — the multinomial coefficient is compute-engine's own native
Multinomial(x1,...,xk), which already computes for ; the guard is what checks that sum against the DISTRIBUTION's own . - ; — both length- lists (Wolfram's own
Varianceconvention: componentwise, not the full covariance matrix). Covariance(compute-engine native over two collections) is widened to also accept a singleMultinomialDistribution, answering the full covariance matrix: (), on the diagonal.- RandomVariate draws via sequential conditional binomials (category gets successes, the last category takes the exact remainder), seeded through the same
SeedRandomstream every other distribution in this package uses.
Examples
About
| Examples | 5 |
|---|
See also: MultinormalDistribution, BinomialDistribution, Covariance, RandomVariate