Version (3.13 KB) by Rini
Variational Bayes for one dimension Gaussian mixture models


Updated Tue, 27 Sep 2016 15:37:57 +0000

View License

The code implements the 2000 Variational Bayes for one dimension Gaussian mixture models paper by Penny and Roberts. (
Given an 1D vector of values generated by multiple Gaussian distributions, it finds out the number of components, mean and variance of those components. Although it is variational Bayes, an initial value for the number of components has to be give. It can be changed in line 38 inside the init function.
Note: The code sometimes converges and sometimes not with nan values. I thought it might be helpful to get some feedback on this forum and improve upon it.

Cite As

Rini (2023). GMMVb_SB(X) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

added link to the paper