Home Statistical Dictionary Hidden Markov Model
Hidden Markov Model
A statistical model in which an unobserved Markov chain moves through hidden states, and each state independently emits an observable output, letting the underlying (hidden) state sequence be inferred purely from the observed outputs.
In Plain English
A hidden Markov model (HMM) is what you get when you can watch the outputs of a Markov chain but not the chain's actual state, only clues about it. Speech recognition is the textbook example: the true hidden state might be which phoneme (speech sound) a speaker is currently producing, evolving Markov-style from sound to sound, while all you actually observe is the noisy audio signal. Given only that stream of noisy clues, an HMM lets you infer the most likely sequence of hidden phonemes, or estimate the model's underlying transition and emission rules in the first place, entirely from the observable data.
Definition
A hidden Markov model consists of a hidden state sequence following a Markov chain with transition matrix (entries ) and initial distribution , together with an observed sequence where each is generated from an emission distribution depending only on the current hidden state, (collected into an emission matrix for discrete observations, or emission densities for continuous ones). Crucially, is conditionally independent of everything else given . Three canonical computational problems define the standard HMM toolkit: evaluation (compute the likelihood of an observed sequence, via the forward algorithm), decoding (find the most likely hidden state sequence, via the Viterbi algorithm), and learning (estimate the parameters from observed data alone, via the Baum-Welch algorithm, a special case of the EM algorithm).
Properties
- The HMM is one of the most successful and widely deployed applied models in all of statistical machine learning, decades before deep learning, HMMs were the backbone technology for speech recognition systems, and remain the standard framework for gene and protein sequence annotation in bioinformatics.
- An HMM is a specific, discrete-hidden-state instance of the more general state-space model framework, the emission distribution corresponds to the observation equation and the hidden Markov chain to the state equation, the Kalman filter is the analogous continuous-state, linear-Gaussian special case.
- A common beginner confusion is between the forward-backward algorithm (used for smoothing, estimating the hidden state distribution at every time point given the full observed sequence) and the Viterbi algorithm (used for decoding, finding the single best hidden state path), they answer genuinely different questions and are not interchangeable.
At a Glance