Before you can read the parent note Maximum a posteriori estimation (MAP), you must own every symbol it uses without flinching. This page builds each one from nothing — plain words, then a picture, then why the topic needs it. Read top to bottom; each block leans on the one above.
Picture it. Imagine a coin whose chance of landing heads is not fixed at 0.5. That hidden chance isθ. If θ=0.7, the coin is heads-biased; if θ=0.2, it is tails-biased. θ lives on a number line from 0 to 1 here.
Why the topic needs it. MAP's (Maximum a Posteriori's) whole job is to estimateθ — to point at one spot on that line and say "this is my best guess." Everything else is machinery for choosing that spot.
Picture it. The true θ is a fixed but invisible dot on the number line. Our method plants a flag θ^ where it thinks the dot is. They may not coincide — the hat is a guess.
Why the topic needs it. MAP produces one particular guess, written θ^MAP (read "theta-hat MAP"): the estimate of θ chosen by the Maximum a Posteriori rule. The subscript just labels which estimation method made the guess — you will also meet θ^MLE from a different method.
Picture it. You flip the coin 10 times and write down the results:
x={H,H,T,H,H,H,T,T,H,H}
That list of 10 outcomes isx, and here n=10.
Why the topic needs it.θ is invisible; x is what we can see. MAP (Maximum a Posteriori) is the bridge that walks from the visible data to the hidden knob.
Picture it.P(rain) might be 0.3. But P(rain∣dark clouds) jumps to 0.8 — knowing about the clouds changed the probability. The pipe is a filter: it throws away every world where B is false, then measures A inside what remains.
Why the topic needs it. MAP is built on two conditional probabilities pointing in opposite directions:
P(x∣θ) — "if the knob were θ, how likely is this data?"
P(θ∣x) — "given this data, how likely is the knob to be θ?"
The entire subject is about flipping the first into the second.
Before we can multiply probabilities together, we must know when that is legal.
Picture it. Ten separate coin flips: the 3rd flip does not care what the 2nd did, and every flip uses the same biased coin. That is exactly i.i.d.
Why the topic needs it. Independence is the permission slip that lets a joint probability factor into a product: P(x1 and x2)=P(x1)P(x2). Without it, the neat ∏ notation in Section 11 would be wrong. Every worked example in the parent silently assumes i.i.d. data.
Each conditional above has a name. Learn them like faces.
Picture it. Start with a wide, vague "prior" hump over θ. The data reshapes it into a sharper "posterior" hump. The peak of that final hump is the MAP estimate θ^MAP.
Why "posterior" is the target. It is the only one of the three that answers the actual question: given everything I now know, what is θ? Likelihood ignores prior knowledge; prior ignores data; the posterior fuses both.
Plain words. Posterior equals likelihood times prior, divided by the evidence P(x).
Why we need it. We can computeP(x∣θ) (models tell us how likely data is for a given knob). We wantP(θ∣x). Bayes' theorem is the exact machinery that turns the one we can compute into the one we want. See Bayes Theorem.
Picture it. On a curve of posterior-vs-θ, max is the height of the summit; argmax is the θ-coordinate directly under the summit. MAP wants the location, so it uses argmax.
Why the topic needs it. "Most probable parameter" literally means "the θ where the posterior is tallest" — that is exactly θ^MAP=argmaxθP(θ∣x).
Why the topic needs it. Likelihoods are products of many tiny probabilities (one per data point). Multiplying hundreds of numbers near zero underflows a computer to 0. Taking log converts the product into a friendly sum, and because log is monotonic, the location of the peak does not move. So:
θ^MAP=argmaxθ[P(x∣θ)P(θ)]=argmaxθ[logP(x∣θ)+logP(θ)]
Same answer, numerically safe, easier calculus.
Why the topic needs it. At the very top of a smooth hill, the ground is momentarily flat — slope =0. So to find the peak of the log-posterior we set its derivative to zero and solve. This is why every worked example ends with "dθd=0." The flat-top rule is how we locate argmax algebraically.
Why the topic needs it. Because the data is i.i.d. (Section 5), the joint likelihood factors into the product of each point's likelihood — hence ∏. After taking log (Section 9), that product becomes a ∑. This is the exact move in the parent's Gaussian example.
Each arrow means "you need the tail before the head makes sense." Notice that the likelihood and prior both feed Bayes' theorem, which produces the posterior, which argmax + log + derivative finally squeeze into the MAP estimate θ^MAP.
Once these symbols are solid, you can read how MAP (Maximum a Posteriori) connects outward:
Maximum Likelihood Estimation (MLE) — MAP with a flat prior. A flat (or uniform) prior is one that assigns the sameP(θ) to every allowed θ; being constant, it adds nothing to the argmax, so MAP collapses back into pure likelihood maximization.
Conjugate Priors and Beta Distribution — priors that keep the algebra clean.
Regularization in ML, Ridge Regression, Lasso Regression — MAP wearing a disguise.