Visual walkthrough — Uniform, Exponential, and Beta distributions
This page builds the Beta distribution from nothing but a coin you are unsure about. We will not write a single symbol before we have drawn it — so the famous formula is deliberately withheld until Step 5, once every piece (, the two exponents, and the normaliser) has been earned.
If any word here feels new, the parent note is your home base. We also lean on Continuous Random Variables and PDFs (what a density even is) and Bayesian Inference and Conjugate Priors (why "belief" is a distribution).
Roadmap of the eight figures (each step points at one, so you can always say "look at Figure N"):
- Figure 1 — the segment of possible biases.
- Figure 2 — evidence carves a raw hump.
- Figure 3 — relabelling with ; the flat "know-nothing" curve.
- Figure 4 — normalising by the area .
- Figure 5 — the finished, valid Beta densities.
- Figure 6 — the mean as a balance point.
- Figure 7 — every shape case, including the one-sided singular ones.
- Figure 8 — the one-picture summary.
Step 1 — The thing we are uncertain about lives on a line from 0 to 1
WHAT. A coin's bias is a number with . Here means "always tails," means "always heads," and means "fair." That's the whole playground: the segment from 0 to 1.
WHY. A probability can never be negative and never exceed 1. So whatever describes our belief about must be zero outside — it lives only on that segment. This is the first constraint the Beta shape must obey.
PICTURE — Figure 1. The red segment below is the entire universe of possible biases. A belief is a way of shading this segment: taller shading = "more believable."
Figure 1 — the bias lives on the red segment .

Step 2 — Evidence reshapes the segment: each head tilts it right, each tail tilts it left
WHAT. Suppose the true (but hidden) bias is . The chance of seeing one head is exactly . The chance of seeing one tail is . If we flip and get heads and tails, and the flips are independent, the chance of that exact sequence is
Every symbol earns its place: is " multiplied by itself once per head," and is " once per tail."
WHY multiply? Independent events combine by multiplication — that's what independence means. Each head demands a factor ; each tail demands a factor .
PICTURE — Figure 2. The plain function is drawn for a few . More heads → the hump slides toward . More tails → toward . This hump is not yet a probability distribution (its area isn't 1) — it's the raw shape evidence carves.
Figure 2 — each head pulls the hump right, each tail pulls it left.

Step 3 — Rename the exponents so the curve stands alone: meet and
WHAT. We rename the counting so the formula works even before any flips. Define
Then the exponent of becomes , and the exponent of becomes . The raw shape is now
WHY the "+1"? With zero data () we want a flat curve — total ignorance, every bias equally believable. Setting and (i.e. ) makes both exponents zero, so the shape is : perfectly flat. The "+1" is exactly the bookkeeping that turns "no data" into "flat." So and are pseudo-counts: heads-plus-one and tails-plus-one.
PICTURE — Figure 3. Same humps as Figure 2, relabelled with , plus the flat line highlighted in red — the "I know nothing" belief.
Figure 3 — ; the flat curve is total ignorance.

Recall Why
is Uniform(0,1) With the shape is on ::: a constant, i.e. the flat Uniform density — the same "no preference" idea from the Uniform section.
Step 4 — The area is wrong, so we divide by it: the Beta function is born
WHAT. The raw shape almost never encloses area 1, so it is not yet a valid density. We measure its area and divide by it. Call that area
WHY divide? A density must integrate to 1 (that's the law from Continuous Random Variables and PDFs). If a curve has area , then curve has area . Dividing by the total area is the only rescaling that fixes the area without changing the shape.
WHY the Gamma closed form? We do not have to leave as an unevaluated integral — it collapses to a ratio of Gamma functions. Here is the honest reason, in plain steps. The Gamma function is defined by , the smooth continuation of the factorial ( for whole ). If you write down the product as a double integral over two independent variables and then switch to the new coordinates "total " and "fraction ," the double integral factorises cleanly: the total part reassembles into , and the fraction part becomes exactly our integral . Reading that factorisation as an equation gives , i.e. the identity below. (The change of variables is the reason the "total" and "fraction" separate — the same split that later makes Beta the natural belief over a fraction.)
PICTURE — Figure 4. Left: the raw hump with its (wrong) grey area labelled . Right: the same hump squashed vertically by so the red area is exactly 1. Same shape, correct total.
Figure 4 — normalise by the total area so the red area becomes 1.

Step 5 — Assemble the Beta distribution
WHAT. Put the pieces together: the shape from Step 3 divided by the area from Step 4.
WHY this is exactly right. Each part answers one demand:
- — the heads-pull (Step 2–3),
- — the tails-pull,
- — the divide-by-area fix so total probability is 1 (Step 4).
Nothing is decorative; drop any factor and either the shape or the area breaks.
PICTURE — Figure 5. Four finished Beta curves side by side — flat, right-skewed, left-skewed, and sharp — each a valid density (red area = 1).
Figure 5 — four valid Beta densities, each enclosing area 1.

Step 6 — Where is the balance point? Reading off the mean
WHAT. The mean (centre of mass) is
WHY — the one-line derivation. By definition the mean multiplies each by its density and integrates:
Look at that last integral: multiplying by turned the exponent into — i.e. it is itself a Beta integral, but with shifted up by one. So it equals (the shift property: raising 's exponent by one just bumps inside ). Therefore
Now use the single fact : the first ratio is , the second is . Multiplying gives . Done.
WHY it makes sense. It is (heads+1) over (total flips + 2) — almost the plain fraction of heads, gently nudged toward by the two phantom flips baked into the "+1"s. More heads ⇒ mean slides toward 1; more tails ⇒ toward 0. Balanced counts ⇒ mean at .
PICTURE — Figure 6. A Beta curve with a red triangle marking the balance point at ; arrows show it sliding right as grows.
Figure 6 — the mean is the centre of mass at .

Step 7 — Every case: peaks, U-shapes, one-sided spikes, and the corners
WHAT & WHY, case by case — the two exponents and decide the behaviour at the edges and . A positive exponent pins that end to zero; a negative exponent ( or ) sends that end to ; a zero exponent leaves it finite and non-zero.
- Both (both exponents ). at and at . Pinned to zero at both ends ⇒ a single interior hump. "Data points to a middling rate."
- Both (both exponents ). as and as ⇒ a U-shape (infinite at both ends): "probably near-always-heads or near-always-tails, unsure which."
- One-sided singular: and (so but ). The left end blows up to , while the right end is pinned to zero ⇒ a "J" that is infinite at 0, zero at 1, sliding down across the interval. Belief concentrated near 0 (mostly tails, but not certain).
- One-sided singular: and (mirror image). Now blows up to and is pinned to zero ⇒ a reversed "J", infinite at 1, zero at 0. Belief concentrated near 1 (mostly heads).
- . Both exponents zero ⇒ flat ⇒ Uniform (Step 3).
- Border ⇒ straight-ish slope, finite non-zero at , zero at ; ⇒ the mirror, finite at , zero at .
- Degenerate limit, with fixed ratio ⇒ the hump narrows to a spike at : overwhelming evidence, near-certainty.
PICTURE — Figure 7. A gallery: hump, U-shape, the two one-sided singular J-shapes, flat, and a narrow spike — the red curve is the one named in each panel's title.
Figure 7 — the exponents decide every edge behaviour, including one-sided singular shapes.

The one-picture summary
Everything above, in a single frame: start with the flat "know-nothing" line, let heads and tails carve a raw hump, divide by its area to make it a legal density, and read the balance point.
Figure 8 — flat → carve → normalise → read the mean.

Recall Feynman retelling — say it like you'd explain to a friend
A coin has a secret heads-chance somewhere between 0 and 1, but you don't know it — so instead of guessing one number you keep a curve over all the possibilities. Before any flips the curve is flat: every bias is equally believable. Then you flip. Each head multiplies the curve by (which is small near 0, so heads push the curve away from 0), and each tail multiplies by (small near 1, pushing away from 1). After heads and tails the curve looks like — a hump leaning toward whichever you saw more of. But that hump doesn't have area 1, so it's not a real probability curve; you shrink it uniformly by dividing by its total area, a number we name — which itself equals once you split a product of Gammas into "total times fraction." Rename the exponents with (always keeping ) and you've got the Beta distribution. Its balance point — found by nudging one exponent up by one inside and cancelling — is basically your heads-fraction, softened toward . And the two exponents alone tell the whole shape story: both above 1 → a tidy hump, both below 1 → a two-horned U, one below and one above 1 → a one-sided spike infinite at just one end, both exactly 1 → flat ignorance, both huge → a confident spike.