Daniel Jurafsky 2026-11-05
Daniel Jurafsky coauthored Speech and Language Processing by Daniel Jurafsky and James H. Martin. The text presents mathematical models and computational procedures for natural language processing, including sequence models that connect linguistic observations to latent states.[ref]
In a Hidden Markov model, the current hidden state determines the emission distribution and the next-state probabilities. This separation permits the forward algorithm to compute an observation sequence's likelihood by summing locally over preceding states. The assumptions make inference tractable, while their suitability for a particular language task remains a modelling question. A tractable calculation does not by itself establish that the model captures every dependency in real language.
Hidden Markov model Created 2026-09-28 Updated 2026-11-05
A Hidden Markov model combines an unobserved Markov chain with observations . Given the whole hidden-state path, the observations have conditional independence, and the conditional distribution of depends only on . The state-transition assumption and this emission assumption are separate parts of the model.[ref]
For a time-homogeneous model with a finite hidden state space and discrete observations, write , and for the emission probabilities. The joint probability mass function factors as
For continuous observations, appropriate probability density functions replace the emission probability mass functions.
For example, a hidden state can describe whether a machine is working normally or has a fault, while a noisy sensor emits a positive or negative signal. Both states may emit a positive signal, with different probabilities; one observation therefore need not identify the state. Summing the factorization over hidden paths gives the observation likelihood. The forward algorithm reuses partial sums to compute it, and the backward algorithm helps infer hidden-state posterior probabilities. The observations alone need not satisfy the Markov property.
James H. Martin 2026-11-05
James H. Martin coauthored Speech and Language Processing by Daniel Jurafsky and James H. Martin with Daniel Jurafsky. Its treatment connects natural language processing to explicit probabilistic models and algorithms. The hidden-state appendix gives the initial, transition and emission distributions of a Hidden Markov model and derives the forward algorithm.[ref]
For a sequence of observations, the forward calculation sums over possible hidden-state histories instead of selecting only one best history. Sharing partial calculations avoids enumerating every full state sequence. The resulting efficiency comes from the model's conditional-independence assumptions, not from treating arbitrary sequences as independent.