@[instance]
Equations
- pmf.of_multiset s hs = ⟨λ (a : α), ↑(multiset.count a s) / ↑(s.card), _⟩
Equations
- pmf.of_fintype f h = ⟨f, _⟩
Equations
- pmf.bernoulli p h = pmf.of_fintype (λ (b : bool), cond b p (1 - p)) _
measure_theory.probability_mass_function