pmf (log-space above n = 1000, matching the Python arm), mean np, second moment p^2 n(n-1) + pn, variance npq, and the p = 1/(n+1) solving P(0) = P(1). Mirrors morie.fn ch4 binomial modules.
pmf (log-space above n = 1000, matching the Python arm), mean np, second moment p^2 n(n-1) + pn, variance npq, and the p = 1/(n+1) solving P(0) = P(1). Mirrors morie.fn ch4 binomial modules.