Documentation

MiscMath.Probability.PoissonTrialsFixedMean.Bridge

The model and the comparator, in Mathlib's vocabulary #

Part of MiscMath.Probability.PoissonTrialsFixedMean, whose module docstring states the results and where the reader should start. This file ties the four definitions local to this library — bernWt, bernExp, tailLe, binTail — back to Mathlib's ProbabilityTheory.binomial and ProbabilityTheory.bernoulliMeasure, so that the results are not comparisons of one bespoke object against another.

Relation to Mathlib's vocabulary #

Four definitions are local to this library — bernWt, bernExp and tailLe from PoissonTrialsFixedMean.Model, binTail from PoissonTrialsFixedMean.BinomialTail — and the theorems are inequalities between them. This module ties all four back to Mathlib, so that the results are not comparisons of one bespoke object against another.

theorem MiscMath.Probability.bernExp_const_eq_integral_binomial {ι : Type u_1} [DecidableEq ι] (s : Finset ι) (P : unitInterval) (g : ) :
bernExp s (fun (x : ι) => P) g = (x : ), g x ProbabilityTheory.binomial s.card P

The comparator is Mathlib's binomial distribution. At a constant success probability P the model is the integral against Bin(#s, P).

The binomial tail is the measure of Set.Iic k under Mathlib's binomial distribution.

theorem MiscMath.Probability.bernExp_eq_integral_pi_bernoulliMeasure {ι : Type u_1} [DecidableEq ι] {s : Finset ι} {p : ι} (h0 : is, 0 p i) (h1 : is, p i 1) (g : ) :
bernExp s p g = (ω : sBool), g {z : s | ω z = true}.card MeasureTheory.Measure.pi fun (z : s) => ProbabilityTheory.bernoulliMeasure true false p z,

The model is a product of Mathlib Bernoulli measures. With one Bool-valued trial per element of s, the i-th succeeding with probability p i, bernExp s p g is the expectation of g applied to the number of successes.

The trials are indexed by {x // x ∈ s} and the product is MeasureTheory.Measure.pi, so independence is Mathlib's, not a convention of this file; each factor is ProbabilityTheory.bernoulliMeasure true false ⟨p i, _⟩, Mathlib's Bernoulli measure with its own parameter.