Bayesian Update — Your Guess Changes Each Time You See Data

Each time you toss a coin or weigh something on a scale, see with pictures and motion how your guess of “how much is it really?” changes.

For a success rate μ or a mean μ, check how the knowledge held before seeing data (the prior) changes each time one observation is added (the posterior). Compare formulas and numbers to confirm the difference among maximum likelihood, MAP estimation, and the posterior mean; that the influence of the prior fades as data accumulate; that updating one observation at a time gives the same result as updating all at once; and that the predictive uncertainty has two components.

Does this coin land heads more often?

Each time you toss the coin, the hill of guesses for “the chance of heads is about this much” is redrawn. Toss a few times and watch the hill move and get narrower.

These are synthetic data for teaching purposes (the true chance of heads is set for each coin and can be seen with “Check the answer”).

Back to Machine Learning — From Probability to GPT (Contents) | Text: Chapter 4, Section 4.4 | Equations and explanation (explanation page) | Equations are typeset with the browser’s built-in MathML (no external library).