Beta Distribution
What is the beta distribution?
The beta distribution is a continuous probability distribution for values between 0 and 1. It is useful for describing proportions and probabilities, such as the fraction of defective products or the chance that an event occurs. Two shape parameters, $\alpha$ (alpha) and $\beta$ (beta), allow the distribution to take many different shapes.
What are some examples of the beta distribution?
Examples of quantities that can be modeled with a beta distribution include:
- The proportion of homes for sale in a city that are affordable to a particular group (e.g., teachers).
- The proportion of defective items produced by a manufacturing process.
- The probability that a component fails during a specified time interval (as in reliability analysis).
When should I consider using the beta distribution?
Consider the beta distribution when the outcome is continuous and limited to the interval from 0 to 1, including proportions and probabilities. Its flexible shape can represent values concentrated near 0, near 1, near the middle, or at both ends. If you want to explain how a proportion changes with other variables, methods such as logistic regression, penalized regression, or generalized linear models might be useful.
What are the characteristics of the beta distribution?
The parameters $\alpha$ and $\beta$ control where values tend to fall. When both are greater than 1, values tend to cluster toward the middle. When both are less than 1, values tend to cluster near 0 and 1. When the parameters are equal, the distribution is symmetric; when they differ, it is skewed. The Beta(1, 1) distribution is the continuous uniform distribution on the interval from 0 to 1.
| Model parameters |
$\alpha$, shape $\beta$, shape |
| Density function |
$f(x)=\frac{1}{B(\alpha,\beta)}x^{\alpha-1}(1-x)^{\beta-1},\quad 0<x<1,\ \alpha>0,\ \beta>0$ where $B$ is the beta function |
| Mean | $\alpha/(\alpha+\beta)$ |
| Variance | $\alpha\beta/(\alpha+\beta)^2(\alpha+\beta+1)$ |
The graph below shows how the beta density changes for different values of $\alpha$ and $\beta$.
Example of a beta random variable
Suppose the proportion of students who pass a class varies from term to term and follows a beta distribution with $\alpha$ = 8 and $\beta$ = 2. What is the probability that fewer than 50% of the students pass?
Let X represent the proportion of students who pass. Because X follows a Beta(8, 2) distribution, we want the area under its density curve to the left of 0.5. This area is the cumulative probability P(X < 0.5), found by integrating the density function from 0 to 0.5.
$P(X<0.5)=\int_{0}^{0.5} f(x)\,dx=\int_{0}^{0.5}\frac{1}{B(8,2)}x^{9-1}(1-x)^{2-1}\,dx=0.0195$
The result is 0.0195, or about 2%. In other words, under this model, a term in which fewer than half of the students pass would be unlikely.