Documentation

Mathlib.Probability.Distributions.Bernoulli

Bernoulli distribution #

We define the Bernoulli distribution over an arbitrary measurable space X. Given x y : X and p : I (I is the unitInterval), Ber(x, y, p) := toNNReal p • dirac x + toNNReal (σ p) • dirac y. It is the measure which gives mass p to {x} and 1 - p to {y}.

Main definition #

Notation #

Tags #

Bernoulli distribution

noncomputable def ProbabilityTheory.bernoulliMeasure {X : Type u_1} [MeasurableSpace X] (x y : X) (p : unitInterval) :

The Bernoulli distribution over an arbitrary measurable space X. Given x y : X and p : I (I is the unitInterval), it is the measure which gives mass p to {x} and 1 - p to {y}.

Equations
Instances For

    The Bernoulli distribution over an arbitrary measurable space X. Given x y : X and p : I (I is the unitInterval), it is the measure which gives mass p to {x} and 1 - p to {y}.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_apply_of_mem_of_mem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : x s) (hy : y s) :
      (bernoulliMeasure x y p) s = 1
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_real_apply_of_mem_of_mem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : x s) (hy : y s) :
      (bernoulliMeasure x y p).real s = 1
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_apply_of_mem_of_notMem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : x s) (hy : ys) :
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_real_apply_of_mem_of_notMem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : x s) (hy : ys) :
      (bernoulliMeasure x y p).real s = p
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_apply_of_notMem_of_mem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : xs) (hy : y s) :
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_real_apply_of_notMem_of_mem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : xs) (hy : y s) :
      (bernoulliMeasure x y p).real s = 1 - p
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_apply_of_notMem_of_notMem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : xs) (hy : ys) :
      (bernoulliMeasure x y p) s = 0
      @[simp]
      theorem ProbabilityTheory.bernoulliMeasure_real_apply_of_notMem_of_notMem {X : Type u_1} [MeasurableSpace X] {x y : X} (p : unitInterval) {s : Set X} (hs : MeasurableSet s) (hx : xs) (hy : ys) :
      (bernoulliMeasure x y p).real s = 0
      theorem ProbabilityTheory.map_bernoulliMeasure' {X : Type u_1} {Y : Type u_2} [MeasurableSpace X] [MeasurableSpace Y] (x y : X) {f : XY} (hf : Measurable f) (p : unitInterval) :
      theorem ProbabilityTheory.integral_bernoulliMeasure {X : Type u_1} [MeasurableSpace X] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace E] [CompleteSpace E] [MeasurableSingletonClass X] (x y : X) (p : unitInterval) (f : XE) :
      (z : X), f z bernoulliMeasure x y p = p f x + (1 - p) f y