Beta Distribution Calculator
Calculate Beta distribution PDF, CDF, quantiles, mean, variance, skewness and kurtosis. Visualize the probability density with interactive plots.
About
The Beta distribution is defined on the interval [0, 1] and parameterized by two shape parameters α and β. It models proportions, probabilities, and bounded random variables in Bayesian inference, A/B testing, and reliability engineering. Misconfiguring shape parameters leads to incorrect posterior estimates, faulty credible intervals, and flawed hypothesis tests. This calculator uses the Lanczos approximation for the log-gamma function and Lentz’s continued fraction algorithm for the regularized incomplete beta function Ix(α, β), matching reference implementations to 10−10 relative accuracy.
The tool computes the full moment profile: mean, variance, standard deviation, skewness, excess kurtosis, and mode (when defined). It also evaluates the PDF f(x), CDF F(x), and inverse CDF (quantile) via Newton-Raphson iteration. Note: the mode is undefined when both α ≤ 1 and β ≤ 1 (the U-shaped case). For extreme parameter ratios (α/β > 10000), numerical precision may degrade near boundary values.
Formulas
The probability density function (PDF) of the Beta distribution is:
where B(α, β) is the Beta function:
The cumulative distribution function (CDF) is the regularized incomplete beta function:
Key moments and properties:
Where α = first shape parameter (alpha), β = second shape parameter (beta), x = evaluation point in [0, 1], Γ = Gamma function, Ix = regularized incomplete beta function computed via continued fraction expansion.
Reference Data
| Shape Profile | α | β | Mean | Variance | Mode | Skewness | Description |
|---|---|---|---|---|---|---|---|
| Uniform | 1 | 1 | 0.5000 | 0.0833 | Any | 0 | Flat distribution, maximum entropy on [0,1] |
| Symmetric bell | 5 | 5 | 0.5000 | 0.0227 | 0.5000 | 0 | Symmetric, concentrated at center |
| Right-skewed | 2 | 5 | 0.2857 | 0.0255 | 0.2000 | 0.5963 | Mass shifted toward 0 |
| Left-skewed | 5 | 2 | 0.7143 | 0.0255 | 0.8000 | −0.5963 | Mass shifted toward 1 |
| U-shaped | 0.5 | 0.5 | 0.5000 | 0.1250 | Bimodal | 0 | Arcsine distribution, mass at boundaries |
| J-shaped (left) | 0.5 | 1 | 0.3333 | 0.0889 | 0 | 0.5657 | Monotone decreasing |
| J-shaped (right) | 1 | 0.5 | 0.6667 | 0.0889 | 1 | −0.5657 | Monotone increasing |
| Peaked center | 10 | 10 | 0.5000 | 0.0119 | 0.5000 | 0 | Tight bell, low variance |
| Jeffreys prior | 0.5 | 0.5 | 0.5000 | 0.1250 | Bimodal | 0 | Non-informative Bayesian prior for binomial |
| Haldane prior | 0.01 | 0.01 | 0.5000 | 0.2475 | Bimodal | 0 | Improper prior, extreme boundary mass |
| Bayesian posterior (weak) | 2 | 2 | 0.5000 | 0.0500 | 0.5000 | 0 | After 1 success, 1 failure with uniform prior |
| A/B test (100 vs 90) | 101 | 901 | 0.1008 | 0.0001 | 0.1000 | 0.0794 | Conversion rate posterior after 1000 trials |
| Strong left evidence | 1 | 10 | 0.0909 | 0.0069 | 0 | 1.0646 | Heavy right skew, near-zero proportion |
| Strong right evidence | 10 | 1 | 0.9091 | 0.0069 | 1 | −1.0646 | Heavy left skew, near-one proportion |
| Exponential-like | 1 | 5 | 0.1667 | 0.0198 | 0 | 0.8528 | Monotone decreasing from boundary |
| High concentration | 50 | 50 | 0.5000 | 0.0025 | 0.5000 | 0 | Very tight, quasi-normal |
| Power law | 0.3 | 2 | 0.1304 | 0.0343 | 0 | 1.5811 | Heavy-tailed toward zero |
| Quasi-Bernoulli | 0.1 | 0.1 | 0.5000 | 0.2083 | Bimodal | 0 | Almost all mass at 0 and 1 |