Elementary theory of the beta distribution #
This file completes the elementary moment theory of Mathlib's beta distribution. For positive
shape parameters it computes every natural raw moment, and obtains the mean and variance as the
first two cases. It also records that the beta law is carried by [0, 1], so every exponential
moment exists.
Main results #
TauCeti.Probability.betaPDFReal_nonneg— nonnegativity of the density;TauCeti.Probability.integrable_betaMeasure_iffandTauCeti.Probability.integral_betaMeasure_eq— integrability and integration against the beta law, transferred to the real density;TauCeti.Probability.betaMeasure_eq_withDensity_restrict_Ioo— the law is its density against Lebesgue measure on the open unit interval;TauCeti.Probability.integral_pow_betaMeasure— the natural raw moments as a quotient of Gamma values;TauCeti.Probability.integral_id_betaMeasure— the mean isα / (α + β);TauCeti.Probability.variance_id_betaMeasure— the variance isα * β / ((α + β) ^ 2 * (α + β + 1));TauCeti.Probability.integrableExpSet_id_betaMeasure— every exponential moment exists.
The moment calculation rewrites the density integral as Euler's beta integral — the real-valued
TauCeti.integral_rpow_mul_one_sub_rpow, proved in
TauCeti/Analysis/SpecialFunctions/Beta.lean — and then uses the Gamma quotient.
References #
- Tau Ceti roadmap,
StandardDistributions, Layer 1, "Beta". - N. L. Johnson, S. Kotz, N. Balakrishnan, Continuous Univariate Distributions, vol. 2, 2nd ed., Wiley, 1995.
For positive shape parameters the beta density is nonnegative: it vanishes off the open unit
interval, and on it the normalizing constant ProbabilityTheory.beta α β is positive.
The beta law presented by its real-valued density.
Integrability transfer. A function is integrable against a beta law with positive shape parameters exactly when its density-weighted version is Lebesgue integrable.
Integral transfer. An integral against a beta law with positive shape parameters is the density-weighted Lebesgue integral.
A beta measure lies almost everywhere in the open unit interval, for all parameter values.
The beta law is its density against Lebesgue measure on the open unit interval: the density vanishes off the closed interval, and the two endpoints are null.
The beta distribution is carried by the unit interval.
The nth raw moment of a beta distribution with positive shape parameters.
Every exponential moment of a beta distribution with positive shape parameters exists.