필터 지우기
필터 지우기

hmmdecode performs forward-algorithm?

조회 수: 2 (최근 30일)
Benjamin Andersson
Benjamin Andersson 2023년 6월 21일
댓글: Benjamin Andersson 2023년 9월 21일
Hi, my question is basically if the command hmmdecode performs the forward-algorithm? I believe the FORWARD output should give me this. But, if I want the output to be the forward-variable for each consecutive time-step, what should I look at?
Related to this, a possible problem is that hmmdecode always starts in the same state, s_1. I have seen some answers to how to get around this, but I found them a bit cumbersome. Is there another way to do this (e.g. other algorithm)?

답변 (1개)

Abhishek Krishna
Abhishek Krishna 2023년 7월 6일
Hi,
The `hmmdecode` function in the Hidden Markov Model (HMM) toolbox performs the forward algorithm. The forward algorithm calculates the probability of being in a particular state at each time-step, given the observed sequence.
To obtain the forward-variable for each consecutive time-step, you can look at the `Alpha` output of the `hmmdecode` function. The `Alpha` matrix contains the forward probabilities for each state at each time step.
Regarding the issue of `hmmdecode` always starting in the same state, you are correct that it typically assumes the initial state to be fixed (often denoted as s_1). If you want to start from a different initial state, you can modify the initial state probabilities in the HMM model.
I hope this helps!
  댓글 수: 1
Benjamin Andersson
Benjamin Andersson 2023년 9월 21일
Hi, do you mean the "FORWARD" output? I don´t think the documentation (https://se.mathworks.com/help/stats/hmmdecode.html) has an output called "Alpha". I was unsure whether PSTATES or "FORWARD" gives what I want, but I now believe it is "FORWARD".

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Markov Chain Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by