downdate_dirichlet_categorical

function downdate_dirichlet_categorical(x:Integer, α':Real[_]) -> Real[_]

Downdate the parameters of a Dirichlet distribution with a categorical likelihood.

  • x: The variate.
  • α': Posterior concentrations.

Returns: the prior hyperparameters α.