update_dirichlet_multinomial

function update_dirichlet_multinomial(x:Integer[_], n:Integer, α:Real[_]) -> Real[_]

Update the parameters of a Dirichlet distribution with a multinomial likelihood.

  • x: The variate.
  • n: Number of trials.
  • α: Concentrations.

Returns: the updated parameters α.