Documentation

Linglib.Core.Probability.Distributions.Beta

Moments of the beta distribution #

This file computes the mixed moments ∫ x ^ k (1 - x) ^ l of the beta distribution with shape parameters a and b. Tilting the beta density by x ^ k (1 - x) ^ l gives the beta density with parameters a + k and b + l up to a constant, so the moment is a ratio of beta functions, and in rising factorials (a)_k (b)_l / (a + b)_{k + l}.

Main statements #

[UPSTREAM] candidate for Mathlib.Probability.Distributions.Beta.

theorem ProbabilityTheory.measurable_betaPDF (a b : ℝ) :
Measurable (betaPDF a b)
instance ProbabilityTheory.instSFiniteRealBetaMeasure_linglib (a b : ℝ) :
MeasureTheory.SFinite (betaMeasure a b)
theorem ProbabilityTheory.ae_mem_Ioo_betaMeasure (a b : ℝ) :
∀ᵐ (x : ℝ) ∂betaMeasure a b, x ∈ Set.Ioo 0 1
theorem ProbabilityTheory.beta_add_nat_div_beta {a b : ℝ} (ha : 0 < a) (hb : 0 < b) (k l : ℕ) :
beta (a + ↑k) (b + ↑l) / beta a b = Polynomial.eval a (ascPochhammer ℝ k) * Polynomial.eval b (ascPochhammer ℝ l) / Polynomial.eval (a + b) (ascPochhammer ℝ (k + l))

The ratio of beta functions in rising factorials.

theorem ProbabilityTheory.lintegral_pow_mul_one_sub_pow_betaMeasure {a b : ℝ} (ha : 0 < a) (hb : 0 < b) (k l : ℕ) :
∫⁻ (x : ℝ), ENNReal.ofReal x ^ k * ENNReal.ofReal (1 - x) ^ l ∂betaMeasure a b = ENNReal.ofReal (Polynomial.eval a (ascPochhammer ℝ k) * Polynomial.eval b (ascPochhammer ℝ l) / Polynomial.eval (a + b) (ascPochhammer ℝ (k + l)))

The mixed moments of the beta distribution.