# Beta distribution

Editor-In-Chief: C. Michael Gibson, M.S., M.D. [1]

## Overview

Template:Probability distribution In probability theory and statistics, the beta distribution is a family of continuous probability distributions defined on the interval [0, 1] parameterized by two non-negative shape parameters, typically denoted by α and β.

## Characterization

### Probability density function

The probability density function of the beta distribution is

${\displaystyle f(x;\alpha ,\beta )={\frac {x^{\alpha -1}(1-x)^{\beta -1}}{\int _{0}^{1}u^{\alpha -1}(1-u)^{\beta -1}\,du}}\!}$
${\displaystyle ={\frac {\Gamma (\alpha +\beta )}{\Gamma (\alpha )\Gamma (\beta )}}\,x^{\alpha -1}(1-x)^{\beta -1}\!}$
${\displaystyle ={\frac {1}{\mathrm {B} (\alpha ,\beta )}}\,x^{\alpha -1}(1-x)^{\beta -1}\!}$

where ${\displaystyle \Gamma }$ is the gamma function. The beta function, B, appears as a normalization constant to ensure that the total probability integrates to unity.

### Cumulative distribution function

${\displaystyle F(x;\alpha ,\beta )={\frac {\mathrm {B} _{x}(\alpha ,\beta )}{\mathrm {B} (\alpha ,\beta )}}=I_{x}(\alpha ,\beta )\!}$

where ${\displaystyle \mathrm {B} _{x}(\alpha ,\beta )}$ is the incomplete beta function and ${\displaystyle I_{x}(\alpha ,\beta )}$ is the regularized incomplete beta function.

## Properties

### Moments

The expected value and variance of a beta random variable X with parameters α and β are given by the formulae:

{\displaystyle {\begin{aligned}\operatorname {E} (X)=&{\frac {\alpha }{\alpha +\beta }}\\\operatorname {Var} (X)=&{\frac {\alpha \beta }{(\alpha +\beta )^{2}(\alpha +\beta +1)}}\end{aligned}}}

The skewness is

${\displaystyle {\frac {2(\beta -\alpha ){\sqrt {\alpha +\beta +1}}}{(\alpha +\beta +2){\sqrt {\alpha \beta }}}}.\,\!}$

The kurtosis excess is:

${\displaystyle 6\,{\frac {\alpha ^{3}-\alpha ^{2}(2\beta -1)+\beta ^{2}(\beta +1)-2\alpha \beta (\beta +2)}{\alpha \beta (\alpha +\beta +2)(\alpha +\beta +3)}}.\,\!}$

### Quantities of information

Given two beta distributed random variables, X ~ Beta(α, β) and Y ~ Beta(α', β'), the information entropy of X is

{\displaystyle {\begin{aligned}H(X)&=\ln \mathrm {B} (\alpha ,\beta )-(\alpha -1)\psi (\alpha )-(\beta -1)\psi (\beta )+(\alpha +\beta -2)\psi (\alpha +\beta )\end{aligned}}\,}

where ${\displaystyle \psi }$ is the digamma function.

The cross entropy is

${\displaystyle H(X,Y)=\ln \mathrm {B} (\alpha ',\beta ')-(\alpha '-1)\psi (\alpha )-(\beta '-1)\psi (\beta )+(\alpha '+\beta '-2)\psi (\alpha +\beta ).\,}$

It follows that the Kullback-Leibler divergence between these two beta distributions is

${\displaystyle D_{\mathrm {KL} }(X,Y)=\ln {\frac {\mathrm {B} (\alpha ',\beta ')}{\mathrm {B} (\alpha ,\beta )}}-(\alpha '-\alpha )\psi (\alpha )-(\beta '-\beta )\psi (\beta )+(\alpha '-\alpha +\beta '-\beta )\psi (\alpha +\beta )}$

### Shapes

The beta density function can take on different shapes depending on the values of the two parameters:

• ${\displaystyle \alpha <1,\ \beta <1}$ is U-shaped (red plot)
• ${\displaystyle \alpha <1,\ \beta \geq 1}$ or ${\displaystyle \alpha =1,\ \beta >1}$ is strictly decreasing (blue plot)
• ${\displaystyle \alpha =1,\ \beta >2}$ is strictly convex
• ${\displaystyle \alpha =1,\ \beta =2}$ is a straight line
• ${\displaystyle \alpha =1,\ 1<\beta <2}$ is strictly concave
• ${\displaystyle \alpha =1,\ \beta =1}$ is the uniform distribution
• ${\displaystyle \alpha =1,\ \beta <1}$ or ${\displaystyle \alpha >1,\ \beta \leq 1}$ is strictly increasing (green plot)
• ${\displaystyle \alpha >2,\ \beta =1}$ is strictly convex
• ${\displaystyle \alpha =2,\ \beta =1}$ is a straight line
• ${\displaystyle 1<\alpha <2,\ \beta =1}$ is strictly concave
• ${\displaystyle \alpha >1,\ \beta >1}$ is unimodal (purple & black plots)

Moreover, if ${\displaystyle \alpha =\beta }$ then the density function is symmetric about 1/2 (red & purple plots).

## Parameter estimation

Let

${\displaystyle {\bar {x}}={\frac {1}{N}}\sum _{i=1}^{N}x_{i}}$

be the sample mean and

${\displaystyle v={\frac {1}{N}}\sum _{i=1}^{N}(x_{i}-{\bar {x}})^{2}}$

be the sample variance. The method-of-moments estimates of the parameters are

${\displaystyle \alpha ={\bar {x}}\left({\frac {{\bar {x}}(1-{\bar {x}})}{v}}-1\right),}$
${\displaystyle \beta =(1-{\bar {x}})\left({\frac {{\bar {x}}(1-{\bar {x}})}{v}}-1\right).}$

## Related distributions

• The connection with the binomial distribution is mentioned below.
• The Beta(1,1) distribution is identical to the standard uniform distribution.
• If X and Y are independently distributed Gamma(α, θ) and Gamma(β, θ) respectively, then X / (X + Y) is distributed Beta(α,β).
• If X and Y are independently distributed Beta(α,β) and F(2β,2α) (Snedecor's F distribution with 2β and 2α degrees of freedom), then Pr(X ≤ α/(α+xβ)) = Pr(Y > x) for all x > 0.
• The beta distribution is a special case of the Dirichlet distribution for only two parameters.
• The Kumaraswamy distribution resembles the beta distribution.
• If ${\displaystyle X\sim {\rm {U}}(0,1]\,}$ has a uniform distribution, then ${\displaystyle X^{2}\sim {\rm {Beta}}(1/2,1)\ }$ or for the 4 parameter case, ${\displaystyle X^{2}\sim {\rm {Beta}}(0,1,1/2,1)\ }$ which is a special case of the Beta distribution called the power-function distribution.
• Binomial opinions in subjective logic are equivalent to Beta distributions.

## Applications

B(ij) with integer values of i and j is the distribution of the ith-highest of a sample of i + j − 1 independent random variables uniformly distributed between 0 and 1. The cumulative probability from 0 to x is thus the probability that the i-th highest value is less than x, in other words, it is the probability that at least i of the random variables are less than x, a probability given by summing over the binomial distribution with its p parameter set to x. This shows the intimate connection between the beta distribution and the binomial distribution.

Beta distributions are used extensively in Bayesian statistics, since beta distributions provide a family of conjugate prior distributions for binomial (including Bernoulli) and geometric distributions. The beta(0,0) distribution is an improper prior and sometimes used to represent ignorance of parameter values.

The Beta distribution can be used to model events which are constrained to take place within an interval defined by a minimum and maximum value. For this reason, the Beta distribution - along with the triangular distribution - is used extensively in PERT, critical path method (CPM) and other project management / control systems to describe the time to completion of a task. In project management, shorthand computations are widely used to estimate the mean and standard deviation of the Beta distribution:

{\displaystyle {\begin{aligned}\mathrm {mean} (X)&{}=E(X)={\frac {a+4b+c}{6}},\\\mathrm {s.d.} (X)&{}={\frac {c-a}{6}},\end{aligned}}}

where a is the minimum, c is the maximum, and b is the most likely value.