The Viterbi algorithm

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}

Properties of operations on probability distributions: When we do operations on the probability distributions (marginalization, ...

Get Hands-On Markov Models with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.