hmm intro
hmm intro
hmm intro
• Each model starts from the start state and ends in the end state.
Hidden Markov Model
For Example,
Evidence –E and X is the hidden variable,
→E--X
Markov Models
Assume there are Three types of weather
Rainy
Sunny Foggy
For Example,
if we knew the weather for the last three days was:
{ sunny, sunny, rainy }
0.6
The Markov Model
0.4 0.6
0.3
Cloud
Rain y
0.2 Quest: What is the probability that the weather
for the next 7 days will be Sun-Sun-Rain- Rain-
0.1 0.2
0.3 0.1 Sun-Cloudy-Sun “ when today is sunny?
Sunny
States : S1: Rainy, S2 :cloudy , S3: Sunny
P(O|Model)=P(S3, S3, S1, S1, S3, S2, S3 |Model)
0.8
= P(S3 ).P(S3| S3) . P(S3| S3) . P(S1| S3) . P(S1| S1) . P(S3| S1) . P(S2| S3). P(S3| S2)
0.5
π = πi = 0.2
0.3
• A sequence of observations
•Probabilities for the fair die: P(1) = P(2) = P(3) = P(4) = P(5) = P(6) = 1/6
•Probabilities for the loaded die: P(1) = P(2) = P(3) = P(4) = P(5) = 1/10; P(6) = ½
•Before each roll, the casino player switches from the fair die to the loaded die (or vice
versa) with probability 1/20
The game...
•You bet $1
•Casino player rolls (maybe with the fair die, maybe with the loaded die)
0.05
•Evaluation: What is the probability of a sequence of outputs of an HMM?
1245526462146146136136661
6646616366163661636165156
15115146123562 344
How likely is this sequence given our model of how the casino operates?
Decoding Question
1245526462146146136136661
6646616366163661636165156
15115146123562 344
LOADED
FAIR
What portion of the sequence was generated with the fair die, and what portion
with the loaded die?
Learning Question
1245526462146146136136661
6646616366163661636165156
15115146123562 344
LOADED
P(6) = 0.64
FAIR
How “loaded” is the loaded die? How “fair” is the fair die? How often does the
casino player change from fair to loaded, and back? That is, what are the
parameters of the model?
Three fundamental problems in HMM