pub fn binomial_pmf(k: u64, n: u64, p: f64) -> f64
The binomial probability mass P(X = k) for n trials with success probability p.
P(X = k)
n
p