In probability theory, a beta negative binomial distribution is the probability distribution of a discrete random variable X {\displaystyle X} equal to the number of failures needed to get r {\displaystyle r} successes in a sequence of independent Bernoulli trials. The probability p {\displaystyle p} of success on each trial stays constant within any given experiment but varies across different experiments following a beta distribution. Thus the distribution is a compound probability distribution.
This distribution has also been called both the inverse Markov-Pólya distribution and the generalized Waring distribution or simply abbreviated as the BNB distribution. A shifted form of the distribution has been called the beta-Pascal distribution.
If parameters of the beta distribution are α {\displaystyle \alpha } and β {\displaystyle \beta } , and if
where
then the marginal distribution of X {\displaystyle X} (i.e. the posterior predictive distribution) is a beta negative binomial distribution:
In the above, N B ( r , p ) {\displaystyle \mathrm {NB} (r,p)} is the negative binomial distribution and B ( α , β ) {\displaystyle {\textrm {B}}(\alpha ,\beta )} is the beta distribution.