Documentation

TauCeti.Probability.Distributions.PoissonBinomial.Basic

The Poisson-binomial distribution #

The Poisson-binomial distribution is the law of a finite sum of independent Bernoulli variables whose success probabilities need not agree. This file defines the law by its subset weights and proves the mass formula, normalization, probability-generating function, independent-sum characterization, and the recursion obtained by adjoining one Bernoulli trial.

These results provide the count law used for order statistics of independent, non-identically distributed real random variables.

Main results #

References #

noncomputable def TauCeti.Probability.poissonBinomialWeight {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) (s : Finset ι) :

The probability of the success set s for independent Bernoulli trials with success probabilities p.

Instances For

    The product formula for the probability of a given success set.

    @[simp]
    theorem TauCeti.Probability.poissonBinomialWeight_ne_zero_iff {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) (s : Finset ι) :
    poissonBinomialWeight p s ≠ 0 ↔ (∀ i ∈ s, p i ≠ 0) ∧ ∀ i ∉ s, p i ≠ 1

    A success set has nonzero weight exactly when it contains every certain success and contains no trial whose success probability is zero.

    The Poisson-binomial law with success probabilities p is the weighted sum of point masses at the cardinalities of all possible success sets.

    Instances For
      @[simp]
      theorem TauCeti.Probability.sum_poissonBinomialWeight {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) :
      ∑ s : Finset ι, poissonBinomialWeight p s = 1

      The Poisson-binomial weights sum to one.

      theorem TauCeti.Probability.poissonBinomialMeasure_apply {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) (S : Set ℕ) :
      (poissonBinomialMeasure p) S = ∑ s : Finset ι with s.card ∈ S, ↑(poissonBinomialWeight p s)

      The value of a Poisson-binomial law on a measurable set is the sum of the weights of the success sets whose cardinalities belong to it.

      The Poisson-binomial law is a probability measure.

      Every function is integrable against a Poisson-binomial law because the law has finite support.

      theorem TauCeti.Probability.integral_poissonBinomialMeasure {ι : Type u_1} [Fintype ι] {E : Type u_3} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] (f : ℕ → E) (p : ι → ↑unitInterval) :

      Integration against a Poisson-binomial law is a finite weighted sum over success sets.

      @[simp]

      The mass at k is the sum of the success-set weights over subsets of cardinality k.

      @[simp]

      The real singleton mass of a Poisson-binomial law.

      theorem TauCeti.Probability.poissonBinomialMeasure_singleton_ne_zero_iff {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) (k : ℕ) :
      (poissonBinomialMeasure p) {k} ≠ 0 ↔ {i : ι | p i = 1}.card ≤ k ∧ k ≤ {i : ι | p i ≠ 0}.card

      The possible counts run from the number of certain successes to the number of trials with nonzero success probability, including both endpoints and every count between them.

      A Poisson-binomial law has no mass above the number of trials.

      @[simp]

      A Poisson-binomial count is at most the number of trials almost surely.

      @[simp]
      theorem TauCeti.Probability.pgf_poissonBinomialMeasure {ι : Type u_1} [Fintype ι] (p : ι → ↑unitInterval) (z : ℝ) :
      pgf id (poissonBinomialMeasure p) z = ∏ i : ι, (1 - ↑(p i) + ↑(p i) * z)

      The probability-generating function of a Poisson-binomial law is the product of the Bernoulli probability-generating functions.

      theorem ProbabilityTheory.iIndepFun.hasLaw_sum_poissonBinomialMeasure {ι : Type u_1} {Ω : Type u_2} [Fintype ι] [MeasurableSpace Ω] {P : MeasureTheory.Measure Ω} {X : ι → Ω → ℕ} {p : ι → ↑unitInterval} (hindep : iIndepFun X P) (hX : ∀ (i : ι), HasLaw (X i) (bernoulliMeasure 1 0 (p i)) P) :
      HasLaw (fun (ω : Ω) => ∑ i : ι, X i ω) (TauCeti.Probability.poissonBinomialMeasure p) P

      A finite sum of independent Bernoulli variables has the Poisson-binomial law with the corresponding success probabilities.

      Pushing the product of Bernoulli laws forward by coordinate sum gives the Poisson-binomial law.

      Pushing the product of native Bernoulli laws forward by the sum of the real-cast coordinates gives the real cast of the Poisson-binomial law.

      @[simp]

      The Poisson-binomial law of an empty family is the point mass at zero.

      @[simp]

      Equal success probabilities recover the ordinary binomial distribution.

      Adjoining one trial convolves the previous Poisson-binomial law with its Bernoulli law.

      The finite weighted sum defining a Poisson-binomial law, written as a countable measure sum.

      The success-set weight is measurable in the vector of success probabilities.

      The Poisson-binomial family is measurable in its finite vector of success probabilities.