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/.

Beraha, M., Guindani, B., Gianella, M., Guglielmi, A. (2025). BayesMix: Bayesian Mixture Models in C++. JOURNAL OF STATISTICAL SOFTWARE, 112(9), 1-40 [10.18637/jss.v112.i09].

BayesMix: Bayesian Mixture Models in C++

Beraha, Mario
;
2025

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/.
Articolo in rivista - Articolo scientifico
model-based clustering, density estimation, MCMC, object oriented programming, C++, modularity, extensibility.
English
2025
112
9
1
40
open
Beraha, M., Guindani, B., Gianella, M., Guglielmi, A. (2025). BayesMix: Bayesian Mixture Models in C++. JOURNAL OF STATISTICAL SOFTWARE, 112(9), 1-40 [10.18637/jss.v112.i09].
File in questo prodotto:
File Dimensione Formato  
Beraha-2025-J Statistical Software-VoR.pdf

accesso aperto

Tipologia di allegato: Publisher’s Version (Version of Record, VoR)
Licenza: Creative Commons
Dimensione 2.86 MB
Formato Adobe PDF
2.86 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/549324
Citazioni
  • Scopus ND
  • ???jsp.display-item.citation.isi??? 0
Social impact