Expectation Maximization On Old Faithful

Applies expectation maximization to fit a mixture of binomial distributions to a data set
427 Downloads
Aktualisiert 3 Mär 2015

Lizenz anzeigen

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

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2014b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
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