bivariate_poisson_pmf
def
The bivariate Poisson probability mass function bivariate_poisson_pmf a b is defined by Real.exp (-(3/2)) * ∑ j ∈ Finset.range (min a b + 1), ((1 / 2) ^ (a + b - j) / (j! * (a - j)! * (b - j)!)).
Statement
noncomputable def bivariate_poisson_pmf (a b : ℕ) : ℝ
- Defined in
- scout/2610-38017-on-the-b-symbol-weight-distribution-of-dual-melas-codes-and.md:1045
- Verified
- 01 Nov 2026
- Axioms
- none listed
- Used by 4
- bivariate_poisson_pmf_nonnegFor any natural numbers a and b, 0 ≤ bivariate_poisson_pmf a b.
- bivariate_poisson_pmf_le_oneFor any natural numbers a and b, bivariate_poisson_pmf a b ≤ 1.
- bivariate_poisson_pmf_zero_zeroThe bivariate Poisson probability mass function bivariate_poisson_pmf with independent Poisson(1/2) components evaluated at (0, 0) is…
- bivariate_poisson_pmf_symmFor any natural numbers a and b, bivariate_poisson_pmf a b = bivariate_poisson_pmf b a.
Read back from the Lean
A definition of bivariate_poisson_pmf, which takes two natural numbers a and b and returns the real number given by:
$$\exp\left(-\frac{3}{2}\right) \sum_{j=0}^{\min(a, b)} \frac{(1/2)^{a + b - j}}{j! \, (a - j)! \, (b - j)!}$$
where the sum ranges over all integers $j$ from $0$ to $\min(a, b)$ inclusive.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The joint PMF of (A+C, B+C) for independent Poisson(1/2) variables A, B, C. -/ noncomputable def bivariate_poisson_pmf (a b : ℕ) : ℝ := Real.exp (-(3/2 : ℝ)) * ∑ j ∈ Finset.range (min a b + 1), ((1 / 2 : ℝ) ^ (a + b - j) / (j.factorial * (a - j).factorial * (b - j).factorial : ℝ))