Question 1: The Viterbi, forward, backward and Baum-Welch algorithms can all be applied to hidden Markov models. What does each algorithm do?
Viterbi algorithm:
Forward algorithm:
Backward algorithm:
Baum-Welch algorithm:
2) Baum-Welch Algorithm
Suppose that we have observed the following 2 sequences: $ (x^1, \pi^1) = (TTS, AOH), (x^2, \pi^2) = (TST, AOA)$.
We will use the Baum-Welch algorithm on these training sequences to estimate the parameters $a_{AA}$, $a_{AH}$, $a_{AO}$, $e_A(T)$ and $e_A(S)$ for the HMM above. This can be done using the following equations (where $a'$ and $e'$ are counts):