Interactive demo · Bayesian and Probabilistic Machine Learning · Chapter 2

Conjugate priors and sequential Bayesian updating

A prior is conjugate to a likelihood when the posterior has the same form as the prior, so that updating only changes its parameters. Pick a model below, add observations one at a time, and watch the prior (grey, dashed) turn into the posterior (red) while the maximum likelihood estimate and the MAP estimate move. Every curve is computed from the closed-form updates of Sections 2.1 to 2.3.

Model

Try these

Coin flips, Gaussian data and the Student t components are seeded, so every visitor sees the same pictures. The grey dashed curve is always the prior, the red curve the posterior.

In the lecture notes