We use the forward algorithm to calculate the probability of an
observation sequence given a particular HMM, and hence choose
the most probable HMM.
This type of problem occurs in speech recognition where a large
number of Markov models will be used, each one modelling a
particular word. An observation sequence is formed from a spoken
word, and this word is recognised by identifying the most
probable HMM for the observations.