Neg binom dist
NEGBINOM.DIST Function¶
The NEGBINOM.DIST function in Excel is used to calculate the negative binomial distribution, which represents the
probability of a certain number of failures occurring before a specified number of successes is achieved in a series of
independent trials.
Key Features of NEGBINOM.DIST:¶
- Useful in scenarios where you want to model the number of failures before achieving a certain number of successes ( e.g., defective items before reaching a certain count of good items in batch testing).
- Can compute either the probability mass function (PMF) or cumulative distribution function (CDF).
Syntax:¶
Parameters:¶
- number_f: Required. The number of failures before the specified number of successes. Must be an integer ≥ 0.
- number_s: Required. The number of successes that need to be achieved. Must be an integer > 0.
- probability_s: Required. The probability of a success in an individual trial. A decimal value between 0 and 1.
- cumulative: Required. A logical value (TRUE or FALSE) that specifies the type of distribution to calculate:
- TRUE = Returns the cumulative distribution function (probability of up to
number_ffailures). - FALSE = Returns the probability mass function (probability of exactly
number_ffailures).
- TRUE = Returns the cumulative distribution function (probability of up to
How It Works:¶
- The function calculates the probability using the negative binomial distribution formula.
- Depending on the
cumulativeparameter:- If
FALSE, it provides the exact probability of seeing that specific number of failures. - If
TRUE, it calculates the cumulative probability up to and including the given number of failures.
- If
Examples:¶
-
Exact Probability of Failures (PMF): To calculate the probability of exactly 3 failures before achieving 5 successes when the success probability is 70%:
Result: The PMF value for the specified parameters. -
Cumulative Probability of Failures (CDF): To calculate the cumulative probability of up to 3 failures before 5 successes:
Result: The CDF value with the given inputs. -
Using Higher Failure Counts: For 10 failures before achieving 8 successes with a success probability of 40%:
Result: The exact probability of 10 failures.
Notes:¶
-
Ranges for Input Values:
- If
number_fornumber_sare non-integers, they are truncated to integers. - Any invalid input (e.g.,
number_f < 0,number_s <= 0, orprobability_snot in range [0, 1]) results in the#NUM!error.
- If
-
Practical Applications:
- Quality Control: Model defective parts before finding a specific count of non-defective ones.
- Business Analysis: Calculate the likelihood of failures in customer interactions before achieving a number of successful outcomes.
- Risk Management: Assess probabilities in repeated trials where multiple failures are acceptable before successes are reached.
-
Relation to Statistical Theory:
- The function assumes trials are independent.
- It complements other Excel distribution functions, such as
BINOM.DISTfor related use cases.
Applications:¶
- Statistical Modeling: Analyze the probability of a fixed number of failures before a specific number of successes.
- Experimentation: Understand outcomes in repeated trials where success has a fixed probability.
- Forecasting: Simulate scenarios involving repeated attempts to achieve a target result.
Tip: Use cumulative mode (
cumulative = TRUE) for calculating probabilities across a range of outcomes.