PMF- negative binomial probability distribution
- User
PMF- negative binomial probability distribution
- Assistant
Sure, I'd be happy to help you with that! The Probability Mass Function (PMF) of a Negative Binomial distribution is given by:
PMF(k; r, p) = C(k + r - 1, k) * p^r * (1 - p)^k
where:
- k is the number of failures before the r-th success
- r is the number of successes
- p is the probability of success in each trial
- C(n, k) is the number of combinations of n items taken k at a time, which can be calculated as n! / (k!(n-k)!)
Here's an example to illustrate the PMF of a Negative Binomial distribution. Suppose you are flipping a coin that has a 0.4 probability of landing on heads (success), and you want to find the probability of getting 3 tails (failures) before getting 2 heads (successes). In this case, k = 3, r = 2, and p = 0.4. The PMF would be:
PMF(3; 2, 0.4) = C(3 + 2 - 1, 3) * (0.4)^2 * (1 - 0.4)^3 = C(4, 3) * (0.4)^2 * (0.6)^3 = (4! / (3! * 1!)) * (0.4)^2 * (0.6)^3 = (4 * 3 * 2 * 1) / (3 * 2 * 1 * 1) * (0.4)^2 * (0.6)^3 = 4 * (0.4)^2 * (0.6)^3 = 0.096
So, the probability of getting 3 tails before getting 2 heads with a coin that has a 0.4 probability of landing on heads is 0.096.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.