The story
Suppose you want to express what you believe about a coin's bias, a click-through rate or a conversion rate: some number between 0 and 1 that you do not know exactly. The family can be flat, U-shaped, humped in the middle or piled up against either end, all controlled by two parameters. Its mean is .
A useful way to read the parameters is as pseudo-counts: behaves like a number of successes and like a number of failures. Start with a belief about , observe successes and failures, and your updated belief is exactly . The larger , the more concentrated the curve, just as more data makes you more certain.
Formulas
Support
CDF
Expectation
Variance
Mode
Parameters
| Parameter | What it controls |
|---|---|
| Pulls probability towards 1; think of it as prior successes. Raising shifts the mean upwards. | |
| Pulls probability towards 0; think of it as prior failures. Raising both and together narrows the curve without moving its centre much. |
Where it shows up
- Uncertainty about a website's conversion rate in Bayesian A/B testing.
- The proportion of a day a machine spends idle.
- A batter's underlying hit rate, estimated from a season of at-bats.
- The fraction of a task completed by a deadline in project planning.
Try this
- Set to see a flat line, then lower both to 0.5. The curve becomes U-shaped: values near 0 and 1 are now more likely than values in the middle.
- Play Bayesian updating: start at , , then imagine 7 successes and 3 failures by setting , . The mean moves to and the curve narrows. Shade from 0.5 to 1 to see how confident you now are that exceeds a half.
- Compare with . Both are centred on 0.5, but the standard deviation falls from about 0.224 to about 0.109. Press Draw 1000 on each to see the difference in the histogram.
Related distributions
- Beta(1, 1) is the Uniform on .
- It is the conjugate prior for the of a Bernoulli or Binomial: a Beta prior plus Binomial data gives a Beta posterior.
- The -th smallest of independent Uniform(0, 1) draws follows .
- If is and is , independent, then is .