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 P(st∣st−1) and emission probabilities P(ot∣st).

Steps

  1. 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.
  2. First table, π: how likely each state is on day 1. For example P(rainy on day 1)=0.3.
  3. 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 P(rainy tomorrow∣rainy today).
  4. Third table, emissions: how likely each observation is in each state. For example P(umbrella∣rainy)=0.9. Together, the chance of 'rainy on day 1 and an umbrella' is 0.3×0.9=0.27.
  5. 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

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?