Neg binom dist
NEGBINOMDIST Function¶
The NEGBINOMDIST function in Excel is used to calculate the negative binomial distribution.
This distribution gives the probability of a specified number of failures occurring before a certain number of successes
in a series of independent trials, where the probability of success in each trial is constant.
Key Features of NEGBINOMDIST:¶
- Returns the probability of a specific number of failures before reaching a target number of successes.
- Useful in statistical models for scenarios such as defective product analysis or quality assurance.
Syntax:¶
- number_f: Required. The number of failures you want before reaching the desired number of successes.
- number_s: Required. The target number of successes.
- probability_s: Required. The probability of success in each trial (a decimal between 0 and 1).
How It Works:¶
The function uses the negative binomial probability formula, which is based on the probability mass function for the negative binomial distribution:
Where:
xis the number of failures.ris the number of successes.pis the probability of a success.COMBIN(n, k)represents combinations.
Examples:¶
-
Basic Example: Suppose you are conducting an experiment where the probability of success is
Result:0.25(25%), and you want to calculate the probability of getting 5 failures before 3 successes:0.055489. -
In Product Testing: If the probability of finding a defective product in testing is
0.1(10%), and you are interested in the probability that you will find 7 defective items before identifying 4 functional products: -
Quality Control Scenario: Calculate how likely it is to have
10failures before achieving8successful production units, with a60%chance of success (probability = 0.6):
Notes:¶
-
Input Validation:
- If
number_fornumber_sis non-numeric, the function returns#VALUE!. - If
probability_sis less than 0 or greater than 1, the function returns#NUM!.
- If
-
Behavior with Decimal Values:
- The function truncates non-integer values for number_f and number_s (e.g.,
5.8becomes5).
- The function truncates non-integer values for number_f and number_s (e.g.,
-
Probability Values:
- Ensure
probability_sis a decimal between 0 and 1, representing a percentage likelihood (e.g.,0.75for 75%).
- Ensure
Applications:¶
- Business and Quality Assurance: Analyze the probability of failures in production before reaching a success milestone.
- Gaming and Probability Models: Model scenarios where a fixed number of successes are required in trials.
- Statistics in Healthcare: Use in models for occurrences of illness or recovery based on a treatment success probability.
Tip: The
NEGBINOMDISTfunction was replaced by theNEGBINOM.DISTfunction in Excel 2010 and beyond, which supports additional features for cumulative probabilities.