Elementary theory of the binomial distribution #
This file develops the moments, transforms, convolution law, and independent-sum
characterization of Mathlib's binomial measure. The native law remains
ProbabilityTheory.binomial n p on ℕ; real-valued moments and transforms use its cast pushforward
Bin(ℝ, n, p). Its variance is n * p * (1 - p).
Main results #
TauCeti.Probability.pgf_binomialcomputes the probability-generating function on the native carrier;TauCeti.Probability.variance_id_map_cast_binomialcomputes the variance of the cast law;TauCeti.Probability.integral_sq_id_map_cast_binomialcomputes its second raw moment;TauCeti.Probability.mgf_id_map_cast_binomialandTauCeti.Probability.cgf_id_map_cast_binomialcompute its moment and cumulant generating functions;TauCeti.Probability.charFun_map_cast_binomialcomputes its characteristic function;TauCeti.Probability.binomial_conv_binomialproves additivity of the native binomial laws;TauCeti.Probability.iIndepFun.hasLaw_sum_bernoulliidentifies a finite sum of independent Bernoulli variables with a binomial law.
References #
- N. L. Johnson, A. W. Kemp, S. Kotz, Univariate Discrete Distributions, 3rd ed., Wiley, 2005, Chapter 3.
TauCetiRoadmap/StandardDistributions/README.md, Layer 1, "Bernoulli and binomial".
The probability-generating function of a binomial distribution.
The moment generating function of the real-valued binomial law.
The cumulant generating function of the real-valued binomial law.
The characteristic function of the real-valued binomial law.
The convolution of two native binomial laws with the same success probability is binomial, with the numbers of trials added.
A finite sum of independent Bernoulli variables with common success probability p has the
native binomial law, with as many trials as the index type has elements.
Variance #
The variance of the real-valued binomial measure itself.
The variance of a real-valued binomial random variable with parameters n and p is
p(1-p)n.
The second raw moment of a real-valued binomial law.