Rabiner 1989 - Markov Chains, HMM Definition and the Three Problems
Summary
A first-order Markov chain has transition matrix ; an HMM adds a hidden state with emission distribution , so the observation is a probabilistic function of the state. fully specifies the model. Three problems follow: evaluate , find the best state sequence, and fit . The geometric state-duration implied by is .
Overview
The paper restricts to the HMM among signal models (rather than Gaussian processes, Poisson processes or plain Markov processes), with a statistical rather than deterministic signal model. Original theory: Baum and colleagues, late 1960s-early 1970s; applications by Baker (CMU) and Jelinek et al. (IBM); three-problem framing credited to Jack Ferguson (IDA).
Main Content
Discrete first-order Markov chain (eqs 1-3)
States ; state at time is . First-order: . Time-homogeneous transition probabilities with and . Initial distribution (eq. 4).
Weather Markov chain (eq. 4 example, Fig. 1 text)
States: 1 rain/snow, 2 cloudy, 3 sunny; . Given sunny on day 1, the probability of the 8-day sequence is
Solution check: ; ; ; ; ; . Interpretation: an observable Markov model where each state is a physical observation.
State duration (eqs 5-6)
, the probability of exactly consecutive days in state : an exponential (geometric) duration density. Expected duration . Weather example: sunny days; cloudy ; rain .
Coin-toss HMMs (Fig. 2)
A hidden person tosses coins behind a curtain and reports only heads/tails. (a) 1-coin model: 1 parameter (), a degenerate observable Markov model. (b) 2-coin model: states are biased coins with and transition matrix : 4 parameters. (c) 3-coin model: 9 parameters. More states fit better in principle but “practical considerations impose strong limitations” and the model should match the physical process. Urn-and-ball model (Fig. 3): urns with colour distributions ; a genie picks urns by a Markov rule and reports ball colours.
Elements of an HMM (eqs 7-11)
- hidden states , state at is . 2. distinct observation symbols . 3. Transition matrix , . 4. Emission distribution , . 5. Initial distribution . Compact notation . Generative recipe: draw ; for emit with probability , then move .
The three basic problems (Sec. II.C)
Problem 1 (evaluation): given and , compute (also: score how well a model matches data; model selection). Problem 2 (decoding): choose a state sequence that is optimal in some meaningful sense (there is no unique “correct” sequence except in degenerate models, so the criterion depends on use). Problem 3 (learning): adjust to maximise (training).
For isolated-word speech: one -state HMM per vocabulary word, trained by Problem 3 on codebook-index sequences; Problem 2 segments training data into states to understand and refine models; recognition scores each word model by Problem 1 and picks the highest likelihood.
# Sample from an HMM and check the weather example number
import numpy as np
A = np.array([[.4,.3,.3],[.2,.6,.2],[.1,.1,.8]])
seq = [2,2,2,0,0,2,1,2] # S3 S3 S3 S1 S1 S3 S2 S3 (0-indexed)
p = 1.0
for a,b in zip(seq[:-1], seq[1:]): p *= A[a,b]
print(p) # 0.0001536 = 1.536e-4, given day 1 is sunny (pi_3 = 1)Connections
Next: Rabiner 1989 - Problem 1 - Forward and Backward Algorithms, Rabiner 1989 - Problem 2 - State Posteriors and the Viterbi Algorithm, Rabiner 1989 - Problem 3 - Baum-Welch Reestimation. Continuous-state counterpart: State-Space Models and the Kalman Filter - Overview.
See Also
Rabiner 1989 - HMM Tutorial - Overview, Model Building with Latent Variables - Animal Movement