As a compound distribution The
beta distribution is a
conjugate distribution of the
binomial distribution. This fact leads to an analytically tractable
compound distribution where one can think of the p parameter in the binomial distribution as being randomly drawn from a beta distribution. Suppose we were interested in predicting the number of heads, x in n future trials. This is given by : \begin{align} f(x\mid n,\alpha,\beta) & = \int_0^1 \mathrm{Bin}(x|n,p)\mathrm{Beta}(p\mid \alpha, \beta) \, dp \\[6pt] & = {n\choose x}\frac{1}{\mathrm{B}(\alpha,\beta)} \int_0^1 p^{x+\alpha-1}(1-p)^{n-x+\beta-1} \, dp \\[6pt] & = {n\choose x}\frac{\mathrm{B}(x+\alpha,n-x+\beta)} {\mathrm{B}(\alpha,\beta)}. \end{align} Using the properties of the
beta function, this can alternatively be written : f(x\mid n,\alpha,\beta) = \frac{\Gamma(n+1)\Gamma(x+\alpha)\Gamma(n-x+\beta)}{\Gamma(n+\alpha+\beta)\Gamma(x+1)\Gamma(n-x+1)} \frac{\Gamma(\alpha+\beta)}{\Gamma(\alpha)\Gamma(\beta)}
As an urn model The beta-binomial distribution can also be motivated via an
urn model for positive
integer values of
α and
β, known as the
Pólya urn model. Specifically, imagine an urn containing
α red balls and
β black balls, where random draws are made. If a red ball is observed, then two red balls are returned to the urn. Likewise, if a black ball is drawn, then two black balls are returned to the urn. If this is repeated
n times, then the probability of observing
x red balls follows a beta-binomial distribution with parameters
n,
α and
β. By contrast, if the random draws are with simple replacement (no balls over and above the observed ball are added to the urn), then the distribution follows a binomial distribution and if the random draws are made without replacement, the distribution follows a
hypergeometric distribution. ==Moments and properties==