Probability mass function | |
Distribution | |
Mean | |
Variance |
The Negative Binomial distribution is a discrete distribution bounded on the low side at 0 and unbounded on the high side. The Negative Binomial distribution gives the number of failures before the
nth success in a sequence of independent Bernoulli trials with probability
p
of success on each trial.
The Negative Binomial distribution has many uses; some occur because it provides a good approximation for the sum or mixing of other discrete distributions. By itself, it is used to model accident statistics, birth-and-death processes, market
research and consumer expenditure, lending library data, biometrical data, and many others.
Generates a sample of the Negative Binomial distribution.
Name |
Type |
Description |
p |
double |
probability of success on each trial |
n |
double |
number of desired successes |
Type |
Description |
double |
the generated sample |
Generates a sample of the Negative Binomial distribution using the specified random number generator.
Name |
Type |
Description |
p |
double |
probability of success on each trial |
n |
double |
number of desired successes |
r |
java.util.Random |
the random number generator |
Type |
Description |
double |
the generated sample |
This document includes content from the Stat::Fit User's Manual. Copyright 2016 Geer Mountain Software Corp.