Biased coins #
Cslib.Probability.PMF.coin p is the coin on Bool showing true with probability p ∈ [0, 1].
Mathlib's PMF.bernoulli is deprecated in favor of ProbabilityTheory.bernoulliMeasure, which is a
Measure; this is the PMF form, for building discrete distributions such as independent products
(Cslib.Probability.PMF.pi) of coins.
Main definitions #
Cslib.Probability.PMF.coin: the coin showingtruewith probabilityp.
Main results #
Cslib.Probability.PMF.coin_apply,Cslib.Probability.PMF.coin_apply_toReal: the masses of the two faces.Cslib.Probability.PMF.coin_eq_uniformOfFintype: a fair coin is the uniform distribution onBool.Cslib.Probability.PMF.toMeasure_coin: as a measure, the coin is Mathlib'sProbabilityTheory.bernoulliMeasure true false p.
The coin showing true with probability p and false with probability 1 - p.
A fair coin is the uniform distribution on Bool.
As a measure, the coin is Mathlib's Bernoulli distribution with mass p on true.