Bayes Estimator (best-must-have tattoo!)

版本 1.0.2 (3.0 KB) 作者: Iman
This class can be used to guess the hidden states that most likely generate N consecutive observations in a Hidden Markov Model.
63.0 次下载
更新时间 2019/2/11

查看许可证

This class can be used to guess the hidden states that most likely generate N consecutive observations in a Hidden Markov Model.

The first method is "maxLikelihood" where the number of hidden states is limited to two (due to the computation issue). The second method is "viterbi" which implements Viterbi algorithm to reduce the search space. In this case, the number of hidden states
can be more than two.

To learn more about Bayes, Hidden Markov Model and Viterbi algorithm, the author recommends the following link:
VIDEO: https://www.youtube.com/watch?v=kqSzLo9fenk

EXAMPLE 1 (check the above video at time 20:20)
transitionsProbabiliy = [0.6 0.4; 0.2 0.8];
emissionProbability = [0.6 0.4; 0.2 0.8];
prior = [1/3 2/3].';
observation = [1 0 1];
[selectedPath, probability4EachPath] = Bayes.maxLikelihood(observation, transitionsProbabiliy, emissionProbability, prior);

EXAMPLE 2 (check the above video at time 22:10)
observation = [1 1 0 0 0 1];
[selectedPath, probabilityPaths] = Bayes.viterbi(observation, transitionsProbabiliy, emissionProbability, prior)

Developed By Iman Moazzen, PhD
YouTube Educator at www.sphackswithiman.com
Affiliate Assistant Professor, Concordia University, Canada
Senior Applied Researcher at PAI Health, Vancouver
Please contact me at imanmoaz@gmail.com

True confession:
If I were to get a tattoo, it would be Bayes theorem for sure! I am truly in ah every single time I've seen its application!

引用格式

Iman (2024). Bayes Estimator (best-must-have tattoo!) (https://www.mathworks.com/matlabcentral/fileexchange/70226-bayes-estimator-best-must-have-tattoo), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Simulation, Tuning, and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.2

code update!

1.0.0