nbininv
Negative binomial inverse cumulative distribution function
Syntax
Description
returns the inverse cumulative distribution function (cdf) of the negative binomial
distribution with the corresponding number of successes x = nbininv(y,r,p)r and probability
of success in a single trial p. Because the binomial distribution is
discrete, nbininv returns the smallest integer x such
that the negative binomial cdf evaluated at x equals or exceeds
y.
The simplest application of the negative binomial is the case of successive random
trials, each having a constant probability p of success. The number of
extra trials you must perform in order to observe a given number r of
successes has a negative binomial distribution. However, consistent with a more general
interpretation of the negative binomial, nbininv allows
r to be any positive value, including nonintegers.
Examples
Input Arguments
Output Arguments
Alternative Functionality
nbininvis a function specific to the negative binomial distribution. Statistics and Machine Learning Toolbox™ also offers the generic functionicdf, which supports various probability distributions. To useicdf, create aNegativeBinomialDistributionprobability distribution object and pass the object as an input argument or specify the probability distribution name and its parameters. Note that the distribution-specific functionnbininvis faster than the generic functionicdf.
Extended Capabilities
Version History
Introduced before R2006a