homechevron_rightProfessionalchevron_rightStatistics

# Negative Binomial Distribution. Probability density function, cumulative distribution function, mean and variance

This calculator calculates negative binomial distribution pdf, cdf, mean and variance for given parameters This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/7696/. Also, please do not modify any references to the original work (if any) contained in this content.

In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure", in which the probability of success is the same every time the experiment is conducted. Wikipedia

When we want to know the probability of k successes in n such trials, we should look into binomial distribution.
When we want to know the probability of getting the first success on k-th trial, we should look into geometric distribution.

When we want to know the probability that the k-th success is observed on the n-th trial, we should look into negative binomial distribution.

Probability density function of negative binomial distribution is

where

• p is the probability of success of a single trial,
• x is the trial number on which the k-th success occurs.
• is the number of combinations of m from n

Cumulative distribution function of negative binomial distribution is

where

• is the regularized incomplete beta function

Note that , that is, the chance to get the k-th success on the k-th trial is exactly k multiplications of p, which is quite obvious.

Mean or expected value for the negative binomial distribution is

Variance is

The calculator below calculates mean and variance of negative binomial distribution and plots probability density function and cumulative distribution function for given parameters: the probability of success p, number of successes k and the number of trials to plot on chart n.

Note that there are other formulation of negative binomial distribution. They are created using the following notation: n - number of trials, r - number of failures, k - number of successes, with n=k+r. These are:

• k successes, given r failures
• n trials, given r failures
• r failures, given k successes
• n trials, given k successes (case described above)
• k successes, given n trials (binomial distribution).

They have slightly different formulas. #### Negative Binomial Distribution. Probability density function, cumulative distribution function, mean and variance

Digits after the decimal point: 2
Mean

Variance

Negative Binomial Distribution
Cumulative distribution function PLANETCALC, Negative Binomial Distribution. Probability density function, cumulative distribution function, mean and variance