Elementary theory of the Bernoulli distribution #
This file computes the elementary moments and transforms of the real-valued Bernoulli law
Ber((1 : ℝ), 0, p), together with the probability-generating function of the native ℕ-valued law
Ber((1 : ℕ), 0, p). It uses Mathlib's convention that the value 1 has mass p and the value
0 has mass 1 - p.
Main results #
integral_id_bernoulliMeasureandvariance_id_bernoulliMeasuregive the mean and variance;integral_of_hasLaw_bernoulliMeasureandvariance_of_hasLaw_bernoulliMeasuregive the corresponding random-variable statements;hasLaw_natCast_bernoulliMeasureandhasLaw_cast_eval_bernoulliMeasurerelate native Bernoulli variables to their real casts;pgf_bernoulliMeasurecomputes the probability-generating function on the native carrier;mgf_id_bernoulliMeasureandcgf_id_bernoulliMeasurecompute the moment- and cumulant-generating functions;charFun_bernoulliMeasurecomputes the characteristic function.
References #
- Roadmap:
TauCetiRoadmap/StandardDistributions/README.md, Layer 1, “Bernoulli and binomial”.
A Bernoulli law with a nonzero success value and positive success probability has mass strictly less than one at zero.
The probability-generating function of a Bernoulli distribution.
The real cast of a native Bernoulli variable has the corresponding real Bernoulli law.
A real-cast coordinate under a product of native Bernoulli laws has the corresponding real Bernoulli law.
The mean of the real-valued Bernoulli law with success probability p is p.
The variance of the real-valued Bernoulli law with success probability p is p(1-p).
A real-valued Bernoulli random variable with success probability p has mean p.
A real-valued Bernoulli random variable with success probability p has variance p(1-p).
The moment-generating function of the real-valued Bernoulli law.
The moment-generating function of a real-valued Bernoulli law is strictly positive.
The cumulant-generating function of the real-valued Bernoulli law.
The characteristic function of the real-valued Bernoulli law.