A Dirichlet process can be represented using a stick breaking construction
StickBreaking(alpha, N)piDirichlet(betas)
Vector of stick breaking probabilities.
Concentration parameter of the Dirichlet Process.
Truncation value.
Draws from the Beta distribution.
piDirichlet()
: Function for calculating stick lengths.
Ishwaran, H., & James, L. F. (2001). Gibbs sampling methods for stick-breaking priors. Journal of the American Statistical Association, 96(453), 161-173.