Mathlib.Probability.Distributions.Beta
16 declarations. Mathlib docs · Source
Beta distributions over ℝ
Define the beta distribution over the reals.
Main definitions
betaPDFReal: the functionα β x ↦ (1 / beta α β) * x ^ (α - 1) * (1 - x) ^ (β - 1)for0 < x ∧ x < 1or0else, which is the probability density function of a beta distribution with shape parametersαandβ(when0 < αand0 < β).betaPDF:ℝ≥0∞-valued pdf,betaPDF α β = ENNReal.ofReal (betaPDFReal α β).
def ProbabilityTheory.beta E1 #
ℝ → ℝ → ℝ
The normalizing constant in the beta distribution.
theorem ProbabilityTheory.beta_pos E1 #
∀ {α β : ℝ}, 0 < α → 0 < β → 0 < ProbabilityTheory.beta α β
theorem ProbabilityTheory.beta_eq_betaIntegralReal E1 #
∀ (α β : ℝ), 0 < α → 0 < β → ProbabilityTheory.beta α β = ((↑α).betaIntegral ↑β).re
Relation between the beta function and the gamma function over the reals.
def ProbabilityTheory.betaPDFReal E3 #
ℝ → ℝ → ℝ → ℝ
The probability density function of the beta distribution with shape parameters α and β.
Returns (1 / beta α β) * x ^ (α - 1) * (1 - x) ^ (β - 1)
when 0 < x < 1 and 0 otherwise.
def ProbabilityTheory.betaPDF E3 #
ℝ → ℝ → ℝ → ENNReal
The pdf of the beta distribution, as a function valued in ℝ≥0∞.
theorem ProbabilityTheory.betaPDF_eq E0 #
∀ (α β x : ℝ),
ProbabilityTheory.betaPDF α β x =
ENNReal.ofReal (if 0 < x ∧ x < 1 then 1 / ProbabilityTheory.beta α β * x ^ (α - 1) * (1 - x) ^ (β - 1) else 0)
theorem ProbabilityTheory.betaPDF_eq_zero_of_nonpos E1 #
∀ {α β x : ℝ}, x ≤ 0 → ProbabilityTheory.betaPDF α β x = 0
theorem ProbabilityTheory.betaPDF_eq_zero_of_one_le E1 #
∀ {α β x : ℝ}, 1 ≤ x → ProbabilityTheory.betaPDF α β x = 0
theorem ProbabilityTheory.betaPDF_of_pos_lt_one E1 #
∀ {α β x : ℝ},
0 < x →
x < 1 →
ProbabilityTheory.betaPDF α β x =
ENNReal.ofReal (1 / ProbabilityTheory.beta α β * x ^ (α - 1) * (1 - x) ^ (β - 1))
theorem ProbabilityTheory.lintegral_betaPDF E1 #
∀ {α β : ℝ},
∫⁻ (x : ℝ), ProbabilityTheory.betaPDF α β x =
∫⁻ (x : ℝ) in Set.Ioo 0 1, ENNReal.ofReal (1 / ProbabilityTheory.beta α β * x ^ (α - 1) * (1 - x) ^ (β - 1))
theorem ProbabilityTheory.betaPDFReal_pos E1 #
∀ {α β x : ℝ}, 0 < x → x < 1 → 0 < α → 0 < β → 0 < ProbabilityTheory.betaPDFReal α β x
The beta pdf is positive for all positive reals with positive parameters.
theorem ProbabilityTheory.measurable_betaPDFReal E1 #
∀ (α β : ℝ), Measurable (ProbabilityTheory.betaPDFReal α β)
The beta pdf is measurable.
theorem ProbabilityTheory.stronglyMeasurable_betaPDFReal E1 #
∀ (α β : ℝ), MeasureTheory.StronglyMeasurable (ProbabilityTheory.betaPDFReal α β)
The beta pdf is strongly measurable.
theorem ProbabilityTheory.lintegral_betaPDF_eq_one E0 #
∀ {α β : ℝ}, 0 < α → 0 < β → ∫⁻ (x : ℝ), ProbabilityTheory.betaPDF α β x = 1
The pdf of the beta distribution integrates to 1.
def ProbabilityTheory.betaMeasure E1 #
ℝ → ℝ → MeasureTheory.Measure ℝ
Measure defined by the beta distribution.
theorem ProbabilityTheory.isProbabilityMeasureBeta E1 #
∀ {α β : ℝ}, 0 < α → 0 < β → MeasureTheory.IsProbabilityMeasure (ProbabilityTheory.betaMeasure α β)