
Log exchangeable partition probability function of a Pitman-Yor process
Source:R/bnp_ghosal.R
morie_gh_py_eppf_log.RdEvaluates the log EPPF
\(\log\{\prod_{j=1}^{k-1} (\theta + j d) / (\theta + 1)_{n-1}
\prod_j (1 - d)_{n_j - 1}\}\) for a partition of \(n = \sum_j n_j\)
items into \(k\) blocks of the given sizes. The blocks are
exchangeable, so only the multiset of sizes matters.
References
Ghosal, S. and van der Vaart, A. (2017). Fundamentals of Nonparametric Bayesian Inference. Cambridge University Press.
Examples
morie_gh_py_eppf_log(sizes = c(3, 2, 1), d = 0.25, theta = 1)
#> [1] -5.966391