Work with a beta distribution from its shape parameters, or straight from successes and failures, to get probabilities, the mean, mode and a 95% credible interval for an unknown rate.
f(x) = x^(α−1) (1 − x)^(β−1) ÷ B(α, β)
x can be a decimal or a percentage.
The beta distribution describes an unknown proportion: a value somewhere between 0 and 1, such as a conversion rate, a batting average or a share of voters. Two shape numbers, α and β, set where it peaks and how tightly.
Its most practical use is Bayesian. Start with Beta(1, 1), which says every rate is equally plausible, then add each success to α and each failure to β. The result describes what the data say about the true rate, uncertainty included.
With little data the curve is wide; with lots it narrows around the observed rate. That makes it easy to ask direct questions such as "how likely is it that the true rate is below 10%?".
As given in the NIST/SEMATECH e-Handbook, section 1.3.6.6.17. See Sources.
The page probably beats 10%, but there's still about a one-in-five chance it doesn't. A hundred visitors isn't much: the middle 95% runs from about 7% to 20%.
How α and β change the shape.
| α, β | Shape | Mean | SD |
|---|---|---|---|
| 1, 1 | Flat: uniform on 0 to 1 | 0.5 | 0.289 |
| 0.5, 0.5 | U-shaped, piled at both ends | 0.5 | 0.354 |
| 2, 2 | Gentle hump in the middle | 0.5 | 0.224 |
| 2, 5 | Skewed towards low values | 0.286 | 0.16 |
| 5, 2 | Skewed towards high values | 0.714 | 0.16 |
| 50, 50 | Narrow peak at 0.5 | 0.5 | 0.05 |
It lives on 0 to 1, can take almost any hump-shaped or U-shaped form, and updates with new data simply by adding counts.
A prior that stays in the same family after updating. Beta is conjugate to binomial data: Beta prior plus successes and failures gives another Beta.
The range holding a stated share of the distribution, here the middle 95%. With a Bayesian model you can say the true rate lies in it with 95% probability.
Yes: switch to α and β and add your own. Beta(0.5, 0.5), Jeffreys’ prior, is another common neutral choice.
Find each version’s beta distribution, then ask how often a draw from one beats the other. The A/B test calculator does this kind of comparison.
When α or β is 1 or less the density keeps rising towards an edge, so there’s no single interior peak.
=BETA.DIST(x, α, β, TRUE) gives P(X < x), and =BETA.INV(p, α, β) gives percentiles.
Roughly how much evidence the distribution represents. Beta(13, 89) is worth about 100 observations; Beta(130, 890) would be ten times as sure.
Related Tools
Gaussian probabilities.
Z-score from probability.
Binary outcome probabilities.
Rare event frequency.
Time between events.
Equal probability distribution.