The beta distribution is an absolutely continuous probability distribution for a random variable between zero and one. It can describe uncertainty about a probability, such as an unknown coin's chance of heads. For any real , its probability density function isand zero outside . The normalizer is the Euler beta function, related to the gamma function by the beta-gamma identity:Thus the probability density function integrates to one. [ref].
The endpoint behavior explains why the restrictions are exactly : near zero the probability density function behaves like a constant times , and near one like a constant times . These improper integrals converge for positive parameters, even when the probability density function diverges at zero for or at one for . There is no probability mass at either endpoint: . A probability density function's height is not a probability; an interval's probability is the area under it.
Some useful examples of the beta distribution are:
- is the uniform distribution on , with probability density function .
- has probability density function : values near one half are favored, and it is a symmetric probability distribution about one half.
- has probability density function . Its mean is and its variance is ; most of its area lies toward the lower end.
- is the arcsine distribution, with probability density function . It favors values near both endpoints despite having mean ; its variance is .
The arcsine distribution curve is plotted only for ; its finite plotted ends do not represent finite endpoint values of the probability density function. Using the inverse sine, the shaded central interval has exact probability , calculated analytically rather than by treating the cropped curve as normalized.
To separate location from spread, write and . The mean and variance of the beta distribution areThe mean specifies the balance between the parameters; their sum controls concentration about that mean. Multiplying both parameters by the same positive number preserves the mean and changes the variance. Larger puts more area near and makes the probability density function taller there; the total area stays one. Small allows much greater spread, sometimes favoring the endpoints rather than the mean itself.
For example, keeping mean and taking gives the beta distributions , , and . Their variances are , , and , respectively. Parameters need not be integers.
The formulas follow from two short moment calculations. Multiplying the probability density function by or increases the first parameter of the Euler beta function:Apply the Gamma function recurrence to the beta-gamma identity, then subtract from to obtain the variance.
The beta distribution is especially convenient as a prior distribution for the unknown success probability of Bernoulli trials. The Beta-binomial conjugacy says that successes and failures update a prior distribution to a posterior distribution . For example, suppose a coin has prior distribution and we observe eight heads and two tails. Its posterior distribution is then , with posterior mean . [ref]
https://ocw.mit.edu/courses/18-05-introduction-to-probability-and-statistics-spring-2022/mit18_05_s22_class15-prep.pdf. MIT 18.05, Reading 15: beta priors and conjugate updating
.For with positive parameters, and real , , multiply its density by . The resulting integral is a beta function with shifted parameters, henceThe restrictions on the powers are exactly the endpoint-integrability conditions. This includes ordinary moments, reciprocal moments when they exist, and quantities involving both the occupied fraction and remaining fraction . In particular, gives .[ref]
For , direct integration of its probability density function gives the displayed tail for . Increasing strictly decreases every such tail probability, and converges in probability to zero as . Its mean is and its variance is ; both decrease for . For the variance, logarithmic differentiation gives in that range.
After successes in conditionally independent Bernoulli trials, Beta-binomial conjugacy gives posterior mean . Its derivative with respect to is negative, while the weight assigned to the prior mean is increasing for .
For an independent statistical sample from the beta distribution with parameters , , the probability density function is on . Its raw moments are for , by direct integration. Consequently the method of moments gives , whereas the maximum-likelihood estimator is .
The second formula follows by setting the score function to zero; its derivative is negative. Also has an exponential distribution of rate , since . The central limit theorem and delta method giveThus the asymptotic relative efficiency of relative to is . The transformed sum has a gamma distribution of shape and rate , which also gives for and for .
Moment matching for a beta prior turns a desired mean and variance for an unknown probability into the parameters of a beta distribution prior. Choose andSolving the beta distribution mean and variance identities givesThe strict upper bound on the variance makes , so both parameters are positive. Substitution gives mean and variance exactly. A smaller specified variance at fixed mean produces a more concentrated prior distribution.
For example, a desired prior mean and variance give , hence the beta distribution prior . With the same mean and variance , the calculation instead gives and the broader beta distribution prior . Both appear in the concentration diagram above.
The excluded boundary cases have clear meanings. Zero variance would require with certainty, not a beta distribution with finite positive parameters. At the other boundary, any random variable satisfies , hence variance at most ; equality requires to take only the endpoint values zero and one. This is a Bernoulli distribution, not a beta distribution. Thus cannot be matched by positive finite parameters, and or is also excluded.
After observing Bernoulli trials, the Beta-binomial conjugacy makes the posterior mean a weighted average of the prior mean and observed binomial proportion :This formula gives a precise interpretation as the prior's weight relative to the sample size in this posterior mean. It does not require fictitious observed counts: the beta distribution parameters can be any positive real numbers. For the eight-head, two-tail example above, and , so the posterior mean is .
// Target: statistical-inference.bigb
For positive integers , the th order statistic from independent uniform distributions on has Beta distribution . Selecting the observations below and above a value gives its probability density function proportional to , with normalizing factor .
Independent gamma distributions and with a common rate yield a Beta distribution . The change of variables , has Jacobian determinant , and factors the joint probability density function into a Beta distribution density in and a gamma distribution density in . In particular, independent chi-squared distributions with and degrees of freedom give the required ratio.
Articles by others on the same topic
The Beta distribution is a continuous probability distribution defined on the interval \([0, 1]\). It is often used to model random variables that represent probabilities or proportions. The distribution is parameterized by two positive shape parameters, denoted as \(\alpha\) and \(\beta\), which influence the shape of the distribution.

