update_beta_bernoulli
function update_beta_bernoulli(x:Boolean, α:Real, β:Real) -> (Real, Real)
Update the parameters of a Beta distribution with a Bernoulli likelihood.
- x: The variate.
- α: Prior first shape.
- β: Prior second shape.
Returns: the posterior hyperparameters α'
and β'
.