I have `n` i.i.d. observations of `P`-part compositional vectors `y_1, ..., y_n` in the simplex `Delta^{P-1} = { v in R^P : v_j >= 0, sum_j v_j = 1 }`. I want to model them as Dirichlet draws around a single shared mean composition with an unknown precision, where the shared mean itself is drawn from a symmetric Dirichlet whose total concentration is also unknown.

My model is:

`y_i | alpha, k    ~  Dirichlet(alpha * k)`,                       for `i = 1, ..., n`,
`k   | kappa      ~  Dirichlet(kappa/P, kappa/P, ..., kappa/P)`,
`alpha            ~  Gamma(1, 1)`,
`kappa/(kappa+P)  ~  Beta(a, b)`,                                   `kappa > 0`.

Here:
`y_i in Delta^{P-1}` is the observed `P`-part composition for sample `i`,
`k in Delta^{P-1}` is the shared mean composition (`E[y_i] = k`),
`alpha > 0` is the precision of the observation-level Dirichlet,
`kappa > 0` is the total concentration of the symmetric Dirichlet prior on `k`,
`a > 0` and `b > 0` are the Beta-hyperprior parameters for `kappa/(kappa+P)`,
`n` is the number of observations,
`P` is the number of parts.

Parameterization notes:
In `Dirichlet(a_1, ..., a_K)`, all `a_k > 0` and the density is on the `K`-simplex.
In `Gamma(shape, rate)`, the density is `(rate^shape / Gamma(shape)) alpha^{shape-1} exp(-rate alpha)`.
In `Beta(a, b)`, the density on `(0, 1)` is `(Gamma(a+b)/(Gamma(a)Gamma(b))) u^{a-1} (1-u)^{b-1}`.

Defaults: `a = 2`, `b = 5`.
