Beta Distribution
A continuous random variable follows the Beta distribution with shape parameters and , defined by the probability density function
where B(\alpha,\beta) = \dfrac{\Gamma(\alpha)\Gamma(\beta)}{\Gamma(\alpha+\beta)}={\Large\int}\limits_{0}^{1} \enspace t^{\alpha-1}(1-t)^{\beta - 1}dt is the Beta function, which serves as a normalizing constant ensuring the sum-to-one condition.The Beta distribution models random proportions, probabilities, and rates—any quantity naturally bounded between and . Because its two shape parameters and control the density’s shape independently, the Beta family can produce symmetric, left-skewed, right-skewed, U-shaped, and uniform densities, making it exceptionally flexible.
Special cases:
- If , then , since for all .
- If and , the density is strictly decreasing on .
- If and , the density is strictly increasing on .
The cumulative distribution function of the Beta distribution is
where is the regularized incomplete Beta function, which has no closed-form expression in general.A key characteristic of the Beta distribution is shape control: governs how much mass is pulled toward , and governs how much mass is pulled toward . When both , the density is unimodal with mode at ; when both , the density is U-shaped, concentrating mass near and .
In Bayesian inference, the Beta distribution is the
Intuition
The Beta distribution is best understood as a distribution over probabilities. Suppose you are trying to estimate the true probability that a coin lands heads. Before flipping the coin, you might express your uncertainty about using a prior. After observing heads and tails, your updated belief is . Each success shifts mass toward ; each failure shifts mass toward . As the number of observations grows, the posterior concentrates around the true .
This makes the Beta distribution central to Bayesian estimation and to any setting where one needs to reason about unknown proportions—click-through rates, disease prevalence, batting averages, and so on.
Properties
(Mean) .
(Variance) .
As grows, the variance shrinks, concentrating the distribution more tightly around its mean. This reflects greater certainty—in a Bayesian context, more data yields a more concentrated posterior.
(Mode) If , .
(Symmetry) If , then .
This means swapping and reflects the density about . In particular, if , then is symmetric around .
(Reflection of the Gamma) If and are independent, then
This construction gives a concrete way to generate Beta random variables from Gamma random variables, and reveals the Beta as measuring the relative share of one Gamma process against the total.
(Order Statistics) If is the -th order statistic of i.i.d. random variables, then
(MGF) The moment generating function of has no simple closed form, but the -th raw moment is given by
Examples
Coin Fairness
Suppose you want to determine whether a coin is fair. You start with no prior information, so you set . You flip the coin times and observe heads and tails.
What is the posterior distribution of , and what is the MAP estimate? By conjugacy, the posterior is The MAP estimate is the mode of the posterior: which coincides with the sample proportion. The posterior mean, however, is which is shrunk toward relative to the MLE, reflecting the influence of the uniform prior.
Order Statistic Distribution
Let . Define .
What is the distribution and expected value of ? By the order statistic property, the -th order statistic of i.i.d. random variables is . Here and , so Since , the distribution is symmetric about (by the symmetry property). Its expected value is and its variance is . The median of three uniform draws is, on average, exactly , but with less variability than any single draw (which has variance ).