The evaluation problem asks for the observation probability
P(O∣λ) given HMM parameters
λ=(A,B,π) and an observation sequence
O=o1o2…oT. Summing over state sequences requires
NT paths, which is intractable; the forward algorithm defines forward variables
αt(j)=P(o1…ot,qt=j∣λ) — the joint probability of being in state
j at time
t after emitting
o1…ot — and recurses