Project Code - Nonparametric Bayes

Basic implementation of a Gibbs sampler for a Chinese Restaurant Process along with some visual aids to help understand how the sampling works. This is developed as part of a postgraduate school project for an Advanced Bayesian Nonparametric course. It is inspired by Tamara Broderick's presentation on Nonparametric Bayesian statistics given at the Simons institute.


The package provides some basic implementation of a Gibbs sampler for a Chinese Restaurant Process along with some visual aids to help understand how the sampling works.

This is developed as part of a postgraduate school project for an Advanced Bayesian Nonparametric course. It is inspired by Tamara Broderick's presentation on Nonparametric Bayesian statistics given at the Simons institute.

Example usages

require(nonparametric.bayes)

generate_dirichlet_clusters(10, 10)
cluster_datapoints(split_data$x, sigma0=diag(3^2, 2))

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("nonparametric.bayes")

0.0.1 by Erik-Cristian Seulean, 5 years ago


Browse source code at https://github.com/cran/nonparametric.bayes


Authors: Erik-Cristian Seulean [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports mvtnorm, progress


See at CRAN