
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