So far, we have been trying to compute the different conditional and joint probabilities in our model. But one thing that we can't do with the forward-backward algorithm is find the most probable state of the hidden variables in the model given the observations. Formally, we can write this problem as, we know the observed variable, the transition probabilities and the emission probability of the network and we would like to compute Z*, which is defined as:
Where,
Z={Z1, Z2, …, Zn}
And,
X={X1, X2, …, Xn}