[ top | up ]

The Negative Binomial Distribution

Syntax

dnbinom(x, n, p)
pnbinom(x, n, p)
qnbinom(px, n, p)
rnbinom(nobs, n, p)

Description

These functions provide information about the negative binomial distribution with parameters n and p. dnbinom gives the density, pnbinom gives the distribution function qnbinom gives the quantile function and rnbinom generates random deviates.

The negative binomial distribution has density

p(x) = Choose(x+n-1,x) p^n (1-p)^x

((Equations will(?) come with HTML 3.x ))
for x = 0, 1, 2, ...