Documentation

TauCeti.Probability.Distributions.Beta.Basic

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 #

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 #

theorem TauCeti.Probability.betaPDFReal_nonneg {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) (x : ℝ) :

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.

Integrability transfer. A function is integrable against a beta law with positive shape parameters exactly when its density-weighted version is Lebesgue integrable.

theorem TauCeti.Probability.integral_betaMeasure_eq {E : Type u_1} [NormedAddCommGroup E] [NormedSpace ℝ E] {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) (g : ℝ → E) :

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.

@[simp]
theorem TauCeti.Probability.integral_pow_betaMeasure {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) (n : ℕ) :
∫ (x : ℝ), x ^ n ∂ProbabilityTheory.betaMeasure α β = Real.Gamma (α + ↑n) * Real.Gamma (α + β) / (Real.Gamma α * Real.Gamma (α + β + ↑n))

The nth raw moment of a beta distribution with positive shape parameters.

@[simp]
theorem TauCeti.Probability.integral_id_betaMeasure {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) :
∫ (x : ℝ), x ∂ProbabilityTheory.betaMeasure α β = α / (α + β)

The mean of a beta distribution with positive shape parameters.

@[simp]
theorem TauCeti.Probability.variance_id_betaMeasure {α β : ℝ} (hα : 0 < α) (hβ : 0 < β) :
ProbabilityTheory.variance id (ProbabilityTheory.betaMeasure α β) = α * β / ((α + β) ^ 2 * (α + β + 1))

The variance of a beta distribution with positive shape parameters.

@[simp]

Every exponential moment of a beta distribution with positive shape parameters exists.