Functions > Statistics > Probability Distributions > Negative Binomial Distribution
Negative Binomial Distribution
The following functions are associated with the negative binomial equation of size n:
Click to copy this expression
dnbinom(k, n, q)—Returns the probability density for value k.
pnbinom(k, n, q)—Returns the cumulative probability distribution for value k.
qnbinom(p, n, q)—Returns the inverse cumulative probability distribution for probability p.
rnbinom(m, n, p)—Returns a vector of m random numbers having the negative binomial distribution.
Arguments
n, k are integers, n > 0 and k ≥ 0. To allow integration and other operations over these arguments, values outside of the stated range are allowed, but they produce a 0 result.
q is a real probability, 0 < q ≤ 1.
p is a real probability, 0 ≤ p ≤ 1.
m is an integer, m > 0.
All arguments are unitless numbers.
* 
In previous versions of PTC Mathcad Prime, units were allowed in the arguments of the random numbers distribution function. Starting with PTC Mathcad Prime 10.0.0.0, all arguments are unitless. This change was made to align the behavior of the random distribution function to other probability distribution functions. If your arguments used units, make sure to adjust them for maintaining a correct scaling.
Was this helpful?