Documentation

TauCeti.Probability.Distributions.Poisson.Basic

Moments and generating functions of the Poisson distribution #

This file develops the probability-generating function of the native Poisson law and the elementary analytic API of the real-valued Poisson law. For a rate r : ℝ≥0, the cast law Po(ℝ, r) has all exponential moments, moment-generating function exp (r * (exp t - 1)), cumulant-generating function r * (exp t - 1), and both mean and variance equal to r.

The zero-rate law is recorded explicitly as the point mass at zero.

The series calculation for the probability-generating function follows the calculation of ProbabilityTheory.charFun_map_cast_poissonMeasure in Mathlib; the moment-generating function is its value at exp t. The same series, together with the factorial-moment series ∑ k, exp (-r) r ^ k / k! * k.descFactorial n = r ^ n, is also stated as a HasSum, the form in which Poisson mixtures consume it. The moment formulas are then obtained by differentiating the moment-generating function.

@[simp]

A Poisson law of rate zero is concentrated at zero.

A Poisson law of rate r has mass exp (-r) at zero.

A Poisson law puts all its mass at zero exactly at rate zero.

A Poisson singleton has nonzero mass exactly when the rate is positive or the count is zero.

theorem TauCeti.Probability.hasSum_pow_poissonMeasure (r : NNReal) (z : ℝ) :
HasSum (fun (k : ℕ) => Real.exp (-↑r) * ↑r ^ k / ↑k.factorial * z ^ k) (Real.exp ((z - 1) * ↑r))

The probability-generating series of a Poisson law: weighted by the Poisson masses, the powers z ^ k sum to exp ((z - 1) * r).

theorem TauCeti.Probability.hasSum_descFactorial_poissonMeasure (r : NNReal) (n : ℕ) :
HasSum (fun (k : ℕ) => Real.exp (-↑r) * ↑r ^ k / ↑k.factorial * ↑(k.descFactorial n)) (↑r ^ n)

The factorial moments of a Poisson law as a weighted series: weighted by the Poisson masses, the falling factorials k.descFactorial n sum to r ^ n.

theorem TauCeti.Probability.lintegral_ofReal_poissonMeasure {f : ℕ → ℝ} (hf : 0 ≤ f) (r : NNReal) {a : ℝ} (ha : HasSum (fun (k : ℕ) => Real.exp (-↑r) * ↑r ^ k / ↑k.factorial * f k) a) :

The lower integral of a nonnegative observable against a Poisson law is the weighted sum of its values, whenever that sum converges.

@[simp]

The probability-generating function of a Poisson distribution.

@[simp]

The moment-generating function of a real-valued Poisson law of rate r is t ↦ exp (r * (exp t - 1)).

Every exponential moment of a real-valued Poisson law is integrable.

@[simp]

The exponential-integrability domain of a real-valued Poisson law is all of ℝ.

@[simp]

The cumulant-generating function of a real-valued Poisson law of rate r is t ↦ r * (exp t - 1).

@[simp]

The mean of a real-valued Poisson law is its rate.

@[simp]

The second raw moment of a real-valued Poisson law is r ^ 2 + r.

Every nonnegative real power of the native Poisson count is integrable.

@[simp]

The mean of the native Poisson count is its rate.

@[simp]

The variance of the native Poisson count is its rate.

A real random variable with Poisson law has expectation equal to the rate.

A real random variable with Poisson law has variance equal to the rate.