pmf_restaurant_categorical

function pmf_restaurant_categorical(k:Integer, α:Real, θ:Real, n:Integer[_], N:Integer) -> Real

PMF of a categorical variate with Chinese restaurant process prior.

  • x: The variate.
  • α: Concentration.
  • θ: Discount.
  • n: Enumerated items.
  • N: Total number of items.

Return: the probability mass.