The multinomial distribution #
For a natural number n and a probability vector p, the multinomial distribution assigns to
a count vector k of total size n the mass
multinomial(univ, k) * ∏ i, p.weights i ^ k i.
This file defines the distribution as a finite weighted sum of Dirac measures and establishes its
normalization, exact singleton masses and support, and finite-sum integration formula. The
parameter space is Mathlib's Convexity.StdSimplex ℝ≥0 ι; its weights are nonnegative real
numbers summing to one.
Main definitions and results #
TauCeti.Probability.multinomialWeightReal: the real-valued multinomial weight.TauCeti.Probability.multinomialWeight: the extended nonnegative multinomial weight.TauCeti.Probability.multinomialMeasure: the multinomial measure on count vectors.TauCeti.Probability.isProbabilityMeasure_multinomialMeasure: normalization.TauCeti.Probability.multinomialMeasure_singleton: the exact singleton mass.TauCeti.Probability.multinomialMeasure_singleton_ne_zero_iff: the exact support.TauCeti.Probability.integral_multinomialMeasure: integration as a finite weighted sum.TauCeti.Probability.multinomialToEuclidean: the cast of count vectors into Euclidean space, the carrier of the law's mean, covariance and transforms.
References #
- N. L. Johnson, S. Kotz, N. Balakrishnan, Discrete Multivariate Distributions, Wiley, 1997, Chapter 35.
The real-valued multinomial weight associated to nonnegative cell weights.
It is indexed by cell weights w and a count vector k. The weights need not sum to one;
the multinomial measure specializes them to the weights of a probability vector.
Instances For
The defining formula of the real multinomial weight, for use across module boundaries.
Every real multinomial weight is nonnegative.
The extended nonnegative multinomial weight in terms of the multinomial coefficient and cell weights.
The extended nonnegative multinomial weight has the expected real value.
The multinomial distribution with sample size n and cell probabilities p.
The finite antidiagonal consists precisely of the count vectors whose coordinates sum to n.
Instances For
The multinomial measure as its defining finite weighted sum of Dirac measures.
The real multinomial weights on a fixed antidiagonal satisfy the multinomial theorem.
The real multinomial weights of a probability vector sum to one.
The ℝ≥0∞-valued multinomial weights satisfy the multinomial theorem.
The ℝ≥0∞-valued multinomial weights of a probability vector sum to one.
The multinomial law is a probability measure.
With no trials, the multinomial law is concentrated at the zero count vector.
The singleton mass of a multinomial law is its defining weight on the count antidiagonal and zero elsewhere.
The real singleton mass of a multinomial law, in the usual factorial form.
The singleton mass is nonzero precisely for count vectors of total size n which do not use
a zero-weight cell.
Every multinomial weight is finite.
A multinomial law is concentrated on count vectors whose coordinates sum to the sample size.
Every function is integrable against a multinomial law because the law has finite support.
Integration against a multinomial law is the corresponding finite weighted sum.
The count vector cast into Euclidean space.
Instances For
The coordinates of the cast are the counts, as reals.
Pairing a direction with the Euclidean count vector is the corresponding weighted sum.
The cast of count vectors into Euclidean space is measurable.
Casting count vectors into Euclidean space is a closed embedding. In particular, closed sets of count vectors remain closed after casting, even when they are infinite.
Casting count vectors into Euclidean space is a measurable embedding.