Elementary theory of the Bernoulli distribution #
This file computes the elementary moments and transforms of the real-valued Bernoulli 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;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”.
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.