Beta Distribution Calculator
Find PDF, CDF, mean, variance, mode, median, skewness, and kurtosis for any Beta(α, β) distribution on [0, 1].
📊 What is the Beta Distribution Calculator?
The beta distribution is a continuous probability distribution defined on the closed interval [0, 1] and parameterized by two positive shape parameters, alpha and beta. Because its support is bounded between 0 and 1, it is a natural choice for modeling quantities that are themselves proportions, probabilities, or rates. This calculator handles both probability queries (what is the chance that a Beta-distributed variable falls below a given x?) and full distribution characterization (what are the mean, variance, mode, median, skewness, and kurtosis?).
The applications of the beta distribution span many disciplines. In Bayesian statistics, the beta distribution is the conjugate prior for the binomial likelihood. If a coin has an unknown bias modeled as Beta(alpha, beta) and you observe s heads and f tails, the posterior distribution is Beta(alpha + s, beta + f). This clean update rule makes the beta distribution foundational in Bayesian inference. In project management, the PERT technique uses a beta distribution to model the time needed to complete a task, where optimistic, most likely, and pessimistic estimates define the shape. In A/B testing, conversion rates for two variants are each modeled as beta distributions, and the probability that one variant is better than the other is computed analytically. In quality control, defect rates per lot are bounded in [0, 1] and often follow a beta distribution.
The shape of the distribution changes dramatically with alpha and beta. When both parameters exceed 1, the density is bell-shaped with a single interior peak. When both equal 1, the result is a flat uniform distribution. When alpha equals beta, the distribution is symmetric about 0.5. When both parameters fall below 1, the density becomes U-shaped, with large probability mass near the boundaries 0 and 1. When alpha is much larger than beta, the density concentrates near 1; when beta dominates, it concentrates near 0.
A common misunderstanding is that the PDF value represents a probability. For continuous distributions, the PDF f(x) is a probability density, not a probability. It can exceed 1 for narrow, concentrated distributions (for example, Beta(10, 10) has a PDF value above 3 near x = 0.5). The probability of falling in an interval [a, b] is the integral of f(x) from a to b, which this calculator computes as the difference of CDF values.
📐 Formulas
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 - Bayesian Posterior: Beta(2, 5)
A quality analyst models a defect rate as Beta(2, 5). What is the probability the rate is below 30%? What is the expected rate?
Example 2 - Uniform Special Case: Beta(1, 1)
A researcher uses Beta(1, 1) as a non-informative prior, expressing complete uncertainty about a probability. Confirm it is equivalent to the uniform distribution.
Example 3 - Symmetric Bell: Beta(3, 3)
An A/B testing model assumes a conversion rate follows Beta(3, 3). What is the probability the rate falls below 50%? Find the mean, mode, and standard deviation.
❓ Frequently Asked Questions
🔗 Related Calculators
What is the beta distribution and when is it used?
The beta distribution is a continuous distribution on [0, 1] with shape parameters α and β. It models proportions, probabilities, and rates. Common applications include Bayesian conjugate priors for binomial data, PERT project duration estimates, A/B test conversion rates, and quality control defect rates.
What do the shape parameters alpha and beta control?
Alpha controls weight near x = 1, and beta controls weight near x = 0. When both exceed 1, the distribution is bell-shaped. When both equal 1, it is uniform. When both are below 1, it becomes U-shaped with mass near the endpoints 0 and 1.
What is the PDF formula for the beta distribution?
The PDF is f(x; α, β) = x^(α-1) * (1-x)^(β-1) / B(α, β), where B is the beta function equal to Γ(α)*Γ(β)/Γ(α+β). The PDF gives density at a specific point and can exceed 1 for narrow distributions.
How is the CDF of the beta distribution computed?
The CDF equals the regularized incomplete beta function I_x(α, β), computed via Lentz continued fraction algorithm. This calculator uses the same numerically stable method as Numerical Recipes. For Beta(2, 5) at x = 0.3, the CDF is approximately 57.98%.
What is the mean of the beta distribution?
The mean is α / (α + β). For Beta(2, 5) the mean is 2/7, about 0.2857. For Beta(5, 2) it is 5/7, about 0.7143. Increasing α relative to β shifts the distribution toward higher x values.
What is the variance of the beta distribution?
The variance is α*β / ((α+β)^2 * (α+β+1)). For Beta(2,5) the variance is 10/392, about 0.0255. Larger total α+β concentrates the distribution even when the mean stays fixed.
What is the mode of the beta distribution?
For α > 1 and β > 1, the mode is (α-1)/(α+β-2). For α ≤ 1 and β > 1, the mode is 0. For α > 1 and β ≤ 1, the mode is 1. When both are ≤ 1, the distribution is U-shaped with no interior mode.
When is the beta distribution symmetric?
The beta distribution is symmetric about x = 0.5 when α equals β. Skewness is zero in this case, and mean, median, and mode all equal 0.5. The distribution becomes more concentrated around 0.5 as α = β increases.
How is the beta distribution used in Bayesian statistics?
The beta distribution is the conjugate prior for the binomial likelihood. If you start with Beta(α, β) and observe s successes and f failures, the posterior is Beta(α+s, β+f). This allows clean analytical updating without numerical integration.
What is the relationship between Beta(1,1) and the uniform distribution?
Beta(1, 1) is exactly the Uniform(0, 1) distribution. The PDF is constant at 1 over [0, 1], the CDF is simply x, and every interval of the same length has the same probability. Setting α = β = 1 in this calculator confirms all these properties.