Histogram of a Negative Binomial distibution
Fig. Negative binomial distribution of 52 trials, each with probability of success 0.3
and number of successes being 3
Blue bar - calculated mass function
Red bar - experimental mass function
Plot new distribution
Number of trials Number of successes
Probability of success Number of samples