Updates that have a formula
Usually a posterior needs a computer. For a few pairs of prior and likelihood, though, the answer is a neat formula, because the posterior stays in the same family as the prior. Such a pair is called conjugate. The best known is for a win rate : a Beta prior with win-or-lose data. A prior acts as if you had already seen wins and losses. Each new win adds to , each new loss adds to . The mean is .
The second pair is for an unknown average, such as a mean return, when the noise is known. The prior is and the data give a sample mean with standard error . Think of precision, , as how much you trust something. The posterior precision is the sum of the two precisions. The posterior mean is the precision-weighted average of the prior mean and the sample mean, so the more precise source gets more weight.
- Conjugate: the posterior is in the same family as the prior, so the update is a formula.
- Beta prior: counts of wins and losses already seen. Add the new counts to get the posterior.
- Normal case: add the precisions and average the means with precision weights.
Lab · what's graded
- The posterior win rate15 pts
- The spread of the win rate15 pts
- The posterior mean return15 pts
- The posterior spread15 pts
- A flat Beta prior10 pts
- Match the vocabulary15 pts
- Between the prior and the data15 pts