QuantPrep
DashboardLearning PathsAdvanced StatisticsStatistical TestsCommunityAll Topics
Login
QuantPrep

© 2025 QuantfianceLab. All rights reserved.

Privacy PolicyTerms of ServiceContact
TwitterGitHubLinkedIn

    Negative Binomial Distribution

    Modeling the number of trials needed to achieve a specified number of successes.

    A Generalization of the Geometric Distribution

    The Negative Binomial distribution answers the question: "How many trials will it take to get my rrr-th success?" It is a generalization of the Geometric distribution, which is just the special case where r=1r=1r=1.

    In finance, a trader might use this to model how many trades it will take to achieve 10 winning trades. A venture capitalist could model how many startups they need to fund to get 3 successful exits.

    The Formula
    The probability that the rrr-th success occurs on the kkk-th trial is:
    P(X=k)=(k−1r−1)pr(1−p)k−rP(X=k) = \binom{k-1}{r-1} p^r (1-p)^{k-r}P(X=k)=(r−1k−1​)pr(1−p)k−r
    • kkk is the total number of trials.
    • rrr is the desired number of successes.
    • ppp is the probability of success on a single trial.
    Interactive Negative Binomial Distribution
    Adjust the required number of successes (rrr) and the probability (ppp) to see how the distribution changes.