Bayesian robust state-space mixture model
The BRSSMM class implements algorithms for simulating and estimating the parameters of a finite mixture of state-space models. Mixture models are typically used in cluster analysis, i.e. grouping data into a finite number of classes, or mixture components. The state-space representation is often used for modelling stochastic dynamical systems where some of the the variables are not directly observable. The purpose of the BRSSMM class is to group sequences of data according to their underlying dynamics. This model in particular is designed for problems where the dynamics are linear, or near-linear, and the data contain outliers and/or missing values.
A BRSSMM object models each component as a stochastic, linear dynamical system with class-specific parameters. The parameters affect how the states evolve, and how they relate to the data. Parameters are equipped with a conjugate prior distribution as per the Bayesian paradigm. The model also contains hidden variables representing missing values in the data, as well as the quality of the data. The posterior distributions over the parameters, states and hidden variables are estimated by an approximate variational inference algorithm.
This submission includes a test function that generates a set of synthetic data and learns a model from these data. The test function also plots the data clustered according to the model, and the variational lower bound on the marginal log-likelihood of the data after each iteration.
If you find this submission useful for your research/work please cite my MathWorks community profile. Feel free to contact me directly if you have any technical or application-related questions.
INSTRUCTIONS:
After downloading this submission, extract the compressed file inside your MatLab working directory and run the test function (brssmmtest.m) for a demonstration.
Cite As
Gabriel Agamennoni (2024). Bayesian robust state-space mixture model (https://www.mathworks.com/matlabcentral/fileexchange/43835-bayesian-robust-state-space-mixture-model), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.