PSet 19: Hidden Markov Models
(videos: Hidden Markov Models and Forward Algorithm)
Recall the equation for computing HMM probabilities at any given time step to be:
Imagine an HMM that models the weather, as we’ve seen before as a Markov chain, the day is either rainy or cloudy or sunny, and the weather one day is a function of the previous. Imagine that you’re in a windowless room, but you have a barometer that is sensing outside.
We know the following:
for the transition probabilities is...
| Xt | ||||
|---|---|---|---|---|
| r | c | s | ||
| Xt-1 | r | 0.7 | 0.2 | 0.1 |
| c | 0.25 | 0.5 | 0.25 | |
| s | 0.2 | 0.4 | 0.4 |
Using this table, , not 0.2.
for the emission probabilities is...
| low | med | hi | |
|---|---|---|---|
| r | 0.8 | 0.1 | 0.1 |
| c | 0.3 | 0.4 | 0.3 |
| s | 0.1 | 0.1 | 0.8 |
The initial distribution is , , . Over the course of three days, we see three outputs from our barometer: E1=low,E2=med,E3=low.
Compute
________
________
________