What is a hidden Markov model? What are its hidden states and observations, and which three sets of probabilities define it?
Probabilistic models, Hidden Markov models
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you can describe an HMM in words before using any algorithm on it: what is hidden, what is seen, and what numbers specify it.
Key idea
An HMM models a sequence in which something you cannot see (the hidden state) changes step by step, and at each step produces something you can see (the observation). It is defined by three tables: start probabilities , transition probabilities and emission probabilities .
Steps
- Use a story: you sit in a windowless office. Each day's weather (rainy or sunny) is hidden. All you see is whether colleagues bring umbrellas. Weather is the hidden state, umbrellas are the observations.
- First table, : how likely each state is on day 1. For example .
- Second table, transitions: how the state moves from one day to the next. The Markov assumption says tomorrow depends only on today's state, not on earlier days. For example .
- Third table, emissions: how likely each observation is in each state. For example . Together, the chance of 'rainy on day 1 and an umbrella' is .
- Say what we do with it: given only the umbrellas, we ask which weather sequence is most likely, how likely the observed sequence is, or how to learn the three tables. These are the three classic HMM problems.
Common mistakes
- Thinking the states are observed. If they were, it would be an ordinary Markov chain; the whole point is that they are hidden.
- Believing the observation at time depends on earlier observations. In an HMM it depends only on the current hidden state.
- Mixing up transitions (state to state) and emissions (state to observation).
How long your answer should be
About 2 minutes: the umbrella story and the three tables.
Read this
Previous in Probabilistic models: What is a Bayesian network, and why does it need far fewer parameters than the full joint distribution?
Next in Probabilistic models: Why do we discard the first few samples (the burn-in) of an MCMC run, and why are the remaining samples not independent draws?