Density of the given number of positive outcomes under a binomial random variable with the given number of trials.
Density of the given number of positive outcomes under a binomial random variable with the given number of trials. Computing a binomial coefficient exactly can be very expensive for a large number of trials, so this method uses an approximation algorithm when the number of trials is sufficiently large.
Generate a geometric distributed random variable.