Compute the closed-form mean of \(K_n\) (number of clusters) under the Gnedin finite-type model (\(\sigma=-1\)).
Details
For sample size \(n \ge 1\) and parameter \(\gamma \in (0,1)\), the mean is
$$
\mathbb{E}[K_n] \;=\; \frac{\Gamma(n+1)\,\Gamma(1+\gamma)}{\Gamma(n+\gamma)}.
$$
The implementation uses lgamma for numerical stability and is vectorized
over n and gamma (with standard R recycling rules).
The formula follows directly from standard Gibbs–type manipulations using factorial moments and the Chu–Vandermonde identity specialized to \(\sigma=-1\).
References
Gnedin, A. (2010). A species sampling model with finitely many types. Electronic Communications in Probability, 15, 79–88.
Favaro, S., Lijoi, A., & Prünster, I. (2013). Extending the class of Gibbs-type priors: theoretical properties and new examples. Annals of Applied Probability, 23(4), 1729–1754.
Pitman, J. (2006). Combinatorial Stochastic Processes. Springer.