Negative Binomial Distribution Sample Generator

    Negative Binomial Distribution Sample Generator

    This generator produces random samples from a negative binomial distribution defined as the number of failures \(X\) before the \(r\)th success, where the probability of success is \(1-p\) (and the failure probability is \(p\)).
    Samples are generated by simulating Bernoulli trials until \(r\) successes occur.

    * Enter the number of successes \( r \) (integer \(\ge1\)), the failure probability \( p \) (with \(0

    Step 1: Enter Parameters

    e.g., 3

    e.g., 0.4 ( \( 0 < p < 1 \) )

    e.g., 1000

    Samples are generated by simulating Bernoulli trials until \( r \) successes occur. The number of failures observed is recorded.

    Related Calculators