
I will assume readers’ awareness of the basics to an extent that readers know what keywords to search for. I will lay out necessary mathematics / computer science knowledge in this page, such that readers can focus on how to apply these math/CS knowledge to think about cognition when reading the note:
Single draw
$f_X(x) = { x^{\alpha-1} (1-x)^{\beta-1} \over B(\alpha,\beta) }$
Prefer the (mean, precision) formulation.

Multiple draws
| Prior | Likelihood | Posterior |
|---|---|---|
| Beta | Binomial | Beta |
| Normal | Normal | Normal |
| Gamma | Poisson | Gamma |
| Inverse Gamma | Normal Variance Estimation | Inverse Gamma |