BayesMix: Bayesian Mixture Models in C++

Mario Beraha et al.

Journal of Statistical Software2025https://doi.org/10.18637/jss.v112.i09article
ABDC A
Weight
0.44

Abstract

We describe BayesMix, a C++ library for MCMC posterior simulation for general Bayesian mixture models. The goal of BayesMix is to provide a self-contained ecosystem to perform inference for mixture models to computer scientists, statisticians and practitioners. The key idea of this library is extensibility, as we wish the users to easily adapt our software to their specific Bayesian mixture models. In addition to the several models and MCMC algorithms for posterior inference included in the library, new users with little familiarity on mixture models and the related MCMC algorithms can extend our library with minimal coding effort. Our library is computationally very efficient when compared to competitor software. Examples show that the typical code runtimes are from two to 25 times faster than competitors for data dimension from one to ten. We also provide Python (bayesmixpy) and R (bayesmixr) interfaces. Our library is publicly available on GitHub at https://github.com/bayesmix-dev/bayesmix/.

3 citations

Open via your library →

Cite this paper

https://doi.org/https://doi.org/10.18637/jss.v112.i09

Or copy a formatted citation

@article{mario2025,
  title        = {{BayesMix: Bayesian Mixture Models in C++}},
  author       = {Mario Beraha et al.},
  journal      = {Journal of Statistical Software},
  year         = {2025},
  doi          = {https://doi.org/https://doi.org/10.18637/jss.v112.i09},
}

Paste directly into BibTeX, Zotero, or your reference manager.

Flag this paper

BayesMix: Bayesian Mixture Models in C++

Flags are reviewed by the Arbiter methodology team within 5 business days.


Evidence weight

0.44

Balanced mode · F 0.40 / M 0.15 / V 0.05 / R 0.40

F · citation impact0.32 × 0.4 = 0.13
M · momentum0.57 × 0.15 = 0.09
V · venue signal0.50 × 0.05 = 0.03
R · text relevance †0.50 × 0.4 = 0.20

† Text relevance is estimated at 0.50 on the detail page — for your query’s actual relevance score, open this paper from a search result.