Beta Distribution — Definition, Formula & Examples
The beta distribution is a continuous probability distribution defined on the interval , shaped by two positive parameters and . It is commonly used to model proportions, probabilities, or any random variable naturally bounded between 0 and 1.
A random variable follows a beta distribution, written , if its probability density function is for and , where is the beta function.
Key Formula
Where:
- = Value of the random variable, restricted to $[0, 1]$
- = First shape parameter (positive real number)
- = Second shape parameter (positive real number)
- = Beta function, which normalizes the density so it integrates to 1
How It Works
The parameters and control the shape of the distribution. When , the distribution is symmetric around 0.5. When , the distribution skews left (concentrating mass near 1), and when , it skews right (concentrating mass near 0). The special case gives a uniform distribution on . In Bayesian statistics, the beta distribution serves as a conjugate prior for the Bernoulli and binomial likelihood, meaning that if your prior is beta and you observe binary data, the posterior is also beta with updated parameters.
Worked Example
Problem: Suppose a random variable . Find the mean and variance of .
Step 1: Compute the mean using the formula .
Step 2: Compute the variance using .
Answer: The mean is and the variance is approximately . Since , the distribution is right-skewed, with most of its mass concentrated below 0.5.
Visualization
Why It Matters
The beta distribution is central to Bayesian inference, where it models uncertainty about unknown probabilities — for example, estimating a click-through rate or the probability a medical treatment works. It also appears in A/B testing, reliability engineering, and project scheduling (via the PERT method).
Common Mistakes
Mistake: Confusing the shape parameters: assuming larger shifts mass toward 0.
Correction: Larger relative to shifts mass toward 1, not 0. The mean increases as grows.
