update_lazy_beta_binomial


function update_lazy_beta_binomial(x:Expression<Integer>, n:Expression<Integer>, α:Expression<Real>, β:Expression<Real>) -> (Expression<Real>, Expression<Real>)

Update the parameters of a Beta distribution with a Binomial likelihood.

  • x: The variate.
  • n: Number of trials.
  • α: Prior first shape.
  • β: Prior second shape.

Returns: the posterior hyperparameters α' and β'.