4 HMM
4 HMM
❖2 types
❖Generative model
❖Discriminative model
Motivation
0.6 0.4
❖transition_probability = {
0.4
Rainy Sunny
❖ 'Rainy' : {'Rainy': 0.7, 'Sunny': 0.3},
❖ 'Sunny' : {'Rainy': 0.4, 'Sunny': 0.6}, 0.3
0.6
❖ }
0.7
Example
❖emission_probability = {
❖ }
Example
Applications of HMM
❖P(VB|TO) P(NN|TO)
❖P(NR|VB) P(NR|NN)
❖P(race|VB) P(race|NN)
❖Mutiply the probabilities in each case
❖Find higher probability
Disambiguating “race”
What is this model?
What is this model?
What is HMM?
❖Suppose the day you were locked in was sunny. Next day
caretake carried an umbrella into the room. Assuming that
prior probability of caretaker carrying an umbrella on any
day is 0.5. what is the probability that second day was rainy?
Part -2