4.9.24 · D1Probability Theory & Statistics

Foundations — Bayesian statistics — prior, likelihood, posterior (intro)

1,728 words8 min readBack to topic

Before you can update beliefs, you must be able to read the sentence that does the updating. This page builds every piece of notation the parent note silently assumes, in an order where each symbol is earned by the one before it. Never move past a symbol you cannot picture.


1. What is a probability? The symbol

The picture. Draw a big rectangle and call its whole area — this rectangle is everything that could happen (the sample space). An event is a blob inside it. is simply the fraction of the rectangle that the blob covers.

Why the topic needs it. Bayesian statistics is a machine that takes probabilities in and gives a probability out. If "a number that measures how much area a blob covers" is not crystal clear, none of the later symbols mean anything.


2. Two events at once: and the joint region

The picture. Draw two overlapping blobs, and , inside the rectangle. The lens-shaped overlap is . Its area is — the chance you land in both blobs.

Why the topic needs it. The parent's Step 1 writes "the joint two ways": That whole derivation is a statement about this one overlapping lens measured from two directions. Without a picture of the overlap, that equation is just symbols.


3. Conditioning: the bar and

Why this formula and not another? Once we know happened, the world shrank: only the -blob is still possible. So we throw away the rest of the rectangle and ask what fraction of the new smaller world (area ) is also in (area )? Dividing rescales the overlap so that the -blob now counts as the full "certain" amount .

Look at the figure. On the left, is a small slice of the whole rectangle. On the right we have zoomed so that fills the frame — the same slice now looks much bigger, because we divided by the shrunken world .


4. Naming the unknowns: and

The picture. Think of as a dial hidden inside a locked box, and as the readings that leak out through a window. We never touch the dial; we only see readings and reason backwards to the dial's position.

Why the topic needs it. The whole subject is the arrow : from visible readings back to the hidden dial. Bayes' theorem is literally the machine that reverses the arrow, because nature runs it forwards ( causes ) and we want it backwards.


5. The four characters as symbols

Now every symbol in the parent's headline formula is a phrase you can read aloud.

Symbol Say it in words Picture
belief in the dial before any reading how wide the dial could be, guessed up front
if the dial were at , how likely is this reading forward arrow: dial → reading
how likely this reading is over all dial settings total window brightness, averaged
belief in the dial after seeing the reading backward arrow: reading → dial

Why is "just a normalizer". It has no in it, so as varies it is a fixed constant. Its only job is to make the posterior's total area equal (a real probability). That is why the parent's proportional form drops it: .


6. Summation, integration, and

Two symbols appear when we build the evidence .

The picture. Discrete : a few bars you add. Continuous : a smooth curve whose area underneath you accumulate. The integral is "the area under the curve".

Why the topic needs both. The Law of Total Probability is precisely (or the integral version) — it is how the denominator is assembled. And is the parent's "80/20": compute the un-normalized shape, then fix the constant at the very end.


7. The two data-generators the parent leans on

Why now, not earlier. These are the specific likelihood and prior shapes in Worked Example 2. You needed , , and "area under a curve" first before " is a Beta" could mean anything. The magic word conjugate (Beta prior + Binomial data → Beta posterior) is just: the shapes multiply and stay in the same family.


8. Prerequisite map

P of A = area of a blob

intersection = overlap of two blobs

conditional P given B = shrink the world to B

theta = hidden dial, D = readings

four characters prior likelihood posterior evidence

sum and integral = add over all theta

proportional = shape without the constant

Bayes theorem = flip D to theta arrow

Binomial and Beta = concrete shapes


Equipment checklist

Cover the answers and test yourself. If any line stumps you, re-read its section above.

What does measure, and what is its range?
The fraction of the sample-space rectangle that event covers; a number in .
What does mean and what does it look like?
"Both and "; the overlapping lens of the two blobs.
Why does the conditional formula divide by ?
Because knowing shrinks the world to the -blob, so we rescale the overlap to treat as the new full "certain" area.
Are and the same?
No — same overlap, different denominators; converting one to the other is exactly Bayes' theorem.
What is versus ?
is the hidden unknown we want (the dial); is the observed data (the readings).
Name the four characters of Bayes' theorem.
Prior , likelihood , posterior , evidence .
Why can we drop in the proportional form?
It has no in it, so it is a constant; it only rescales the total area to and can be restored at the end.
What is the difference between and ?
Both add over all ; for a discrete list, for a continuous range (area under a curve).
What does tell you?
has the same shape as up to an unknown constant factor.
What is the Binomial likelihood for heads in tosses?
.