The Dirichlet distribution #
This file defines the Dirichlet distribution with positive parameters θ, a probability measure
on the standard simplex Convexity.StdSimplex ℝ ι of probability vectors on the finite type ι,
and computes its moments. The moment ∫ ∏ i, p i ^ x i is the probability that the Pólya urn with
weights θ draws a given sequence with counts x, so the draws of the urn are a Dirichlet mixture
of independent draws.
Main definitions #
ProbabilityTheory.dirichletFin n θ: the Dirichlet distribution onFin n → ℝ.ProbabilityTheory.dirichlet θ: the Dirichlet distribution onConvexity.StdSimplex ℝ ι.
Main statements #
ProbabilityTheory.lintegral_prod_pow_dirichlet: the moments are Pólya urn probabilities.ProbabilityTheory.isProbabilityMeasure_dirichlet: the Dirichlet distribution is a probability measure.ProbabilityTheory.polyaUrn_singleton_eq_lintegral_dirichlet: the Pólya urn is a Dirichlet mixture of independent draws.
Implementation notes #
The standard simplex carries the Borel σ-algebra of its topology, which for finite ι is induced
by the embedding of the weights into ι → ℝ. The distribution is built on Fin n → ℝ by
stick-breaking: the first coordinate is beta-distributed with parameters θ 0 and the sum of the
other parameters, and the other coordinates are 1 - p 0 times an independent Dirichlet vector
with the other parameters. It lives on the probability vectors, and is pulled back to the simplex
along an enumeration Fintype.equivFin ι, on which the moments do not depend.
References #
The Borel σ-algebra on the standard simplex #
Equations
- Convexity.StdSimplex.instMeasurableSpaceReal_linglib = borel (Convexity.StdSimplex ℝ M)
Stick-breaking on Fin n #
The Dirichlet distribution on Fin n → ℝ with parameters θ, by stick-breaking.
Equations
- One or more equations did not get rendered due to their size.
- ProbabilityTheory.dirichletFin 0 x_2 = MeasureTheory.Measure.dirac 0
- ProbabilityTheory.dirichletFin 1 x_2 = MeasureTheory.Measure.dirac 1
Instances For
The Dirichlet distribution on a finite type #
The Dirichlet distribution with parameters θ on the probability vectors over ι.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The weights of a Dirichlet-distributed point have the stick-breaking law.
The moments of the Dirichlet distribution are the probabilities of the Pólya urn with the same weights.
The probability that the Pólya urn draws a sequence is the probability of drawing it independently from a Dirichlet-distributed probability vector, the mixture form of [Pit06] Exercise 2.2.2.