Bayesian Inference Priors, Posteriors, Conjugates Cheat Sheet
A printable reference covering Bayes' theorem, priors, likelihoods, posteriors, conjugate families, posterior means, and credible intervals for college.
Related Tools
Related Labs
Related Worksheets
Related Infographics
Bayesian inference updates beliefs about unknown parameters using observed data. This cheat sheet covers priors, likelihoods, posteriors, posterior summaries, and common conjugate prior models. Students need it because Bayesian calculations often become simpler when the right prior family is matched to the likelihood. It is designed as a quick reference for interpreting formulas and choosing standard models. The central rule is Bayes' theorem, which says the posterior is proportional to the likelihood times the prior. A prior distribution encodes information before seeing the data, while the likelihood measures how compatible parameter values are with the observed data. Conjugate priors make the posterior stay in the same distribution family as the prior, which gives closed-form updates. Posterior means, variances, predictive distributions, and credible intervals summarize the updated uncertainty.
Key Facts
- Bayes' theorem for a parameter is , where .
- The posterior kernel is , so constants not involving can be ignored during proportional calculations.
- For and , the posterior is .
- For and using rate , the posterior is .
- For with known and , the posterior variance is .
- For the normal mean model with known , the posterior mean is .
- A credible interval for is an interval such that .
- The posterior predictive distribution is .
Vocabulary
- Prior distribution
- A probability distribution that represents uncertainty about a parameter before observing the current data.
- Likelihood
- The function that measures how plausible the observed data are for each possible value of .
- Posterior distribution
- The updated distribution for a parameter after combining the prior distribution with the likelihood.
- Conjugate prior
- A prior distribution that produces a posterior distribution in the same family after being updated by a specified likelihood.
- Marginal likelihood
- The normalizing constant that makes the posterior integrate to .
- Credible interval
- An interval that contains the parameter with a stated posterior probability, such as .
Common Mistakes to Avoid
- Confusing the likelihood with the posterior is wrong because is a function of based on fixed data, while is a probability distribution over .
- Dropping terms that contain the parameter is wrong because only constants independent of can be ignored when using .
- Mixing Gamma rate and scale conventions is wrong because with rate has mean , while using scale gives mean .
- Interpreting a frequentist confidence interval as a Bayesian credible interval is wrong because a credible interval makes a probability statement about conditional on the observed data.
- Using a conjugate update without checking the likelihood form is wrong because conjugacy depends on the exact sampling model, such as Binomial with Beta or Poisson with Gamma.
Practice Questions
- 1 Let and . If , find the posterior distribution of .
- 2 Let with observations , and let using rate . Find the posterior distribution of .
- 3 For with known variance , prior , sample size , and sample mean , compute and write the formula for .
- 4 Explain why a very concentrated prior can strongly influence the posterior even when the likelihood is based on real data.