ArticleslgStudy

mathematics

Beta-binomial distribution

Beta-binomial distribution is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Beta-binomial distribution rather than just read about it. In short: In probability theory and statistics, the beta-binomial distribution is a family of discrete probability distributions on a finite support of non-negative integers arising when the probability of success in each of a fixed or known number of Bernoulli trials is either unknown or random. The beta-binomial distribution is the binomial distribution in which the probability of success at each of n trials is not fixed bu…

Beta-binomial distribution — main illustration
Beta-binomial distribution — illustration

Key takeaways

  • Beta-binomial distribution belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Beta-binomial distribution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Beta-binomial distribution from memory before moving on to harder problems.

Reference excerpt

In probability theory and statistics, the beta-binomial distribution is a family of discrete probability distributions on a finite support of non-negative integers arising when the probability of success in each of a fixed or known number of Bernoulli trials is either unknown or random. The beta-binomial distribution is the binomial distribution in which the probability of success at each of n trials is not fixed but randomly drawn from a beta distribution. It is frequently used in Bayesian statistics, empirical Bayes methods and classical statistics to capture overdispersion in binomial type distributed data. The beta-binomial is a one-dimensional version of the Dirichlet-multinomial distribution as the binomial and beta distributions are univariate versions of the multinomial and Dirichlet distributions respectively. The special case where α and β are integers is also known as the negative hypergeometric distribution.

Motivation and derivation

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 probability of a specific number of heads, x in n future trials. This is given by

f(x∣n,α,β)=∫01Bin(x|n,p)Beta(p∣α,β)dp=(nx)1B(α,β)∫01px+α−1(1−p)n−x+β−1dp=(nx)B(x+α,n−x+β)B(α,β). Using the properties of the beta function, this can alternatively be written

f(x∣n,α,β)=Γ(n+1)Γ(x+α)Γ(n−x+β)Γ(n+α+β)Γ(x+1)Γ(n−x+1)Γ(α+β)Γ(α)Γ(β)

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 The first three raw moments are

μ1=nαα+βμ2=nα[n(1+α)+β](α+β)(1+α+β)μ3=nα[n2(1+α)(2+α)+3n(1+α)β+β(β−α)](α+β)(1+α+β)(2+α+β) and the kurtosis is

β2=(α+β)2(1+α+β)nαβ(α+β+2)(α+β+3)(α+β+n)[(α+β)(α+β−1+6n)+3αβ(n−2)+6n2−3αβn(6−n)α+β−18αβn2(α+β)2]. Letting p=αα+β we note, suggestively, that the mean can be written as

μ=nαα+β=np and the variance as

σ2=nαβ(α+β+n)(α+β)2(α+β+1)=np(1−p)α+β+nα+β+1=np(1−p)[1+(n−1)ρ] where ρ=1α+β+1. The parameter ρ is known as the "intra class" or "intra cluster" correlation. It is this positive correlation which gives rise to overdispersion. Note that when n=1, no information is available to distinguish between the beta and binomial variation, and the two models have equal variances.

Factorial moments The r-th factorial moment of a Beta-binomial random variable X is

E⁡[(X)r]=n!(n−r)!B(α+r,β)B(α,β)=(n)rB(α+r,β)B(α,β).

Point estimates

Method of moments The method of moments estimates can be gained by noting the first and second moments of the beta-binomial and setting those equal to the sample moments m1 and m2. We find

α^=nm1−m2n(m2m1−m1−1)+m1β^=(n−m1)(n−m2m1)n(m2m1−m1−1)+m1. These estimates can be non-sensically negative which is evidence that the data is either undispersed or underdispersed relative to the binomial distribution. In this case, the binomial distribution and the hypergeometric distribution are alternative candidates respectively.

Maximum likelihood estimation While closed-form maximum likelihood estimates are impractical, given that the pdf consists of common functions (gamma function and/or Beta functions), they can be easily found via direct numerical optimization. Maximum likelihood estimates from empirical data can be computed using general methods for fitting multinomial Pólya distributions, methods for which are described in (Minka 2003). The R package VGAM through the function vglm, via maximum likelihood, facilitates the fitting of glm type models with responses distributed according to the beta-binomial distribution. There is no requirement that n is fixed throughout the observations.

Example: Sex ratio heterogeneity The following data gives the number of male children among the first 12 children of family size 13 in 6115 families taken from hospital records in 19th century Saxony (Sokal and Rohlf, p. 59 from Lindsey). The 13th child is ignored to blunt the effect of families non-randomly stopping when a desired gender is reached.

The first two sample moments are

m1=6.23m2=42.31n=12 and therefore the method of moments estimates are

α^=34.1350β^=31.6085. The maximum likelihood estimates can be found numerically

α^mle=34.09558β^mle=31.5715 and the maximized log-likelihood is

log⁡ℒ=−12492.9 from which we find the AIC

𝐴𝐼𝐶=24989.74. The AIC for the competing binomial model is AIC = 25070.34 and thus we see that the beta-binomial model provides a superior fit to the data i.e. there is evidence for overdispersion. Trivers and Willard postulate a theoretical justification for heterogeneity in gender-proneness among mammalian offspring. The superior fit is evident especially among the tails

Role in Bayesian statistics The beta-binomial distribution plays a prominent role in the Bayesian estimation of a Bernoulli success probability p which we wish to estimate based on data. Let 𝐗={X1,X2,⋯Xn1} be a sample of independent and identically distributed Bernoulli random variables Xi∼Bernoulli(p). Suppose, our knowledge of p - in Bayesian fashion - is uncertain and is modeled by the prior distribution p∼Beta(α,β). If Y1=∑i=1n1Xi then through compounding, the prior predictive distribution of

Y1∼BetaBin(n1,α,β). After observing Y1 we note that the posterior distribution for p

f(p|𝐗,α,β)∝(∏i=1n1pxi(1−p)1−xi)pα−1(1−p)β−1=Cp∑xi+α−1(1−p)n1−∑xi+β−1=Cpy1+α−1(1−p)n1−y1+β−1 where C is a normalizing constant. We recognize the posterior distribution of p as a Beta(y1+α,n1−y1+β). Thus, again through compounding, we find that the posterior predictive distribution of a sum Y2 of a future sample of size n2 of Bernoulli(p) random variables is

… excerpt ends here. Continue reading the full article.

Illustrations

Beta-binomial distribution illustration
Beta-binomial distribution illustration

Worked examples

Example 1 — a first encounter with Beta-binomial distribution

Start with the simplest possible case. Write down what Beta-binomial distribution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Beta-binomial distribution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Beta-binomial distribution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Beta-binomial distribution

In research
Beta-binomial distribution appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Beta-binomial distribution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Beta-binomial distribution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Compound probability distributions, Conjugate prior distributions, Discrete distributions, so understanding it makes those chapters shorter.
In everyday life
Look for Beta-binomial distribution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Beta-binomial distribution” →

How to study Beta-binomial distribution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Beta-binomial distribution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Beta-binomial distribution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Beta-binomial distribution in simple terms?

In probability theory and statistics, the beta-binomial distribution is a family of discrete probability distributions on a finite support of non-negative integers arising when the probability of success in each of a fixed or known number of Bernoulli trials is either unknown or random. The beta-bi…

Why does Beta-binomial distribution matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Beta-binomial distribution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Beta-binomial distribution.

Tags

  • Compound probability distributions
  • Conjugate prior distributions
  • Discrete distributions

Keep exploring