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 α β).
The normalizing constant in the beta distribution.
Instances For
theorem
ProbabilityTheory.beta_eq_betaIntegralReal
(α β : ℝ)
(hα : 0 < α)
(hβ : 0 < β)
:
beta α β = ((↑α).betaIntegral ↑β).re
Relation between the beta function and the gamma function over the reals.
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.
Instances For
The pdf of the beta distribution, as a function valued in ℝ≥0∞.
Instances For
theorem
ProbabilityTheory.betaPDF_eq
(α β x : ℝ)
:
betaPDF α β x = ENNReal.ofReal (if 0 < x ∧ x < 1 then 1 / beta α β * x ^ (α - 1) * (1 - x) ^ (β - 1) else 0)
theorem
ProbabilityTheory.betaPDF_of_pos_lt_one
{α β x : ℝ}
(hx_pos : 0 < x)
(hx_lt : x < 1)
:
betaPDF α β x = ENNReal.ofReal (1 / beta α β * x ^ (α - 1) * (1 - x) ^ (β - 1))
The beta pdf is measurable.
The beta pdf is strongly measurable.
@[simp]
The pdf of the beta distribution integrates to 1.
Measure defined by the beta distribution.