Expectation Maximization On Old Faithful

Applies expectation maximization to fit a mixture of binomial distributions to a data set
426 Downloads
Updated Tue, 03 Mar 2015 03:41:27 +0000

View License

ExpectationMaximizationOnOldFaithful applies Expectation Maximization to learn generating mixture of multi-nomial distributions for a 2D data set of waiting time between eruptions and the duration of the eruption for the Old Faithful geyser in Yellowstone National Park, Wyoming, USA.
USAGE: pauseSec is an optional parameter to add a delay after each iteration
ExpectationMaximizationOnOldFaithful() fits the dataset by two binormal distributions
ExpectationMaximizationOnOldFaithful( pauseSec, n) initializes expectation maximization with a multi-nomial distribution composed of n Gaussians, e.g. for 5:
>> ExpectationMaximizationOnOldFaithful( 0, 5)

ExpectationMaximizationOnOldFaithful(pauseSec, numGauss, theta)
initializes the algorithm with parameters theta, a struct with
- tau, a probaiity vector that a random data element belongs to each of n Gaussian distributions
- mu, the mean of each Gaussian distribution
- sigma, the covariance matrix for each Gaussian distributions

based on 'R' code by 3mta3 published on Wikipedia (http://en.wikipedia.org/wiki/Expectation–maximization_algorithm#mediaviewer/File:Em_old_faithful.gif)

Aaron T. Becker, 2015-03-01

Cite As

Aaron T. Becker's Robot Swarm Lab (2024). Expectation Maximization On Old Faithful (https://www.mathworks.com/matlabcentral/fileexchange/49869-expectation-maximization-on-old-faithful), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.2.0.0

Fixed title -- added spaces

1.1.0.0

Corrected grammar, added default behaviors, restructured code so algorithm is on the top.

1.0.0.0