Documentation

EValues.Bernoulli

Maximum utility and Bernoulli distributions #

Contains closed-form expressions for e-values, maximum utility, and divergences for Bernoulli distributions.

Main definitions #

Main statements #

Bernoulli distribution on {0, 1}. Using 1 - (1 - p) ensures that we always have a probability measure.

Equations
Instances For
    @[simp]
    theorem ProbabilityTheory.lintegral_ber {p : ENNReal} {f : {0, 1}ENNReal} :
    ∫⁻ (x : {0, 1}), f x Ber p = (1 - p) * f 0, Ber._proof_1 + (1 - (1 - p)) * f 1, Ber._proof_2
    theorem ProbabilityTheory.isEVar_bernoulli_le_iff {δ : } (hδ_pos : 0 < δ) ( : δ 1) (X : {0, 1}ENNReal) :
    IsEVar X {μ : MeasureTheory.Measure {0, 1} | MeasureTheory.IsProbabilityMeasure μ (x : {0, 1}), x μ δ} ∃ (u : ) (_ : 0 u) (_ : u δ⁻¹), ∀ (x : {0, 1}), X x ENNReal.ofReal (1 + u * (x - δ))

    The e-variables for Bernoulli measures with mean at most δ are the functions f that satisfy f x ≤ 1 + u * (x - δ) for u ∈ [0, δ⁻¹].

    theorem ProbabilityTheory.quadratic_inequality {δ : } (hδ_pos : 0 < δ) (hδ_lt_one : δ < 1) (u : ) :
    (1 - u * δ) * (1 + u * (1 - δ)) (1 - δ)⁻¹ * (δ⁻¹ * 4⁻¹)
    theorem ProbabilityTheory.four_le_mul_inv {δ : } (hδ_pos : 0 < δ) (hδ_lt : δ < 1) :
    4 (1 - δ)⁻¹ * δ⁻¹
    noncomputable def ProbabilityTheory.klBer (p q : ENNReal) :

    Kullback-Leibler divergence between two Bernoulli distributions. Meaningful only if p, q ≤ 1.

    Equations
    Instances For
      theorem ProbabilityTheory.klBer_half (δ : ) (hδ_pos : 0 < δ) (hδ_lt : δ < 1) :
      klBer 2⁻¹ (ENNReal.ofReal δ) = ENNReal.ofReal (Real.log (1 / (4 * δ * (1 - δ))))
      theorem ProbabilityTheory.maxUtility_bernoulli_le {p : ENNReal} {δ : } (hδ_pos : 0 < δ) ( : δ 2⁻¹) (hp : ENNReal.ofReal δ p) :
      theorem ProbabilityTheory.maxUtility_bernoulli_half_le {δ : } (hδ_pos : 0 < δ) ( : δ 2⁻¹) :

      The maximum utility for Bernoulli distribution with mean at most 1/2 is 2⁻¹ * log (1 / (4 * δ * (1 - δ))).

      theorem ProbabilityTheory.erenyiDiv_bernoulli {δ : } (hδ_pos : 0 < δ) ( : δ 2⁻¹) :

      The e-Rényi divergence between two Bernoulli distributions with mean at most 1/2 is log (1 / (4 * δ * (1 - δ))).

      theorem ProbabilityTheory.echernoffDiv_bernoulli {δ : } (hδ_pos : 0 < δ) ( : δ 2⁻¹) :

      The e-Chernoff divergence between two Bernoulli distributions with mean at most 1/2 is 2⁻¹ * log (1 / (4 * δ * (1 - δ))).