SlideShare a Scribd company logo
1 of 28
Hidden Markov Models
By Ahmed Jamshed, Ahsen Gul, Ali Tariq
Markov Chains
Previous
Event
Future
Event
Current
Event
Memory less (Only current event will
predict future event)
States and transition probabilities
0.5
0.4
0.1
States
Transition
Probabilities
0.5 + 0.4 + 0.1 = 1
Markov Model
0.5
0.4
0.1
0.3
0.6
1.0
0.0
0.1
0.0
Transition Probability Matrix
0.6 1.00.4
0.3 0.00.5
0.1 0.00.1
FROMTO
Home
Office
Bank
Home Office Bank
1.0
0.0
0.0
Transition Probability Matrix Starting
Probability
Vector
0.4
0.5
0.1
Prediction
for next
event
Transition Probability Matrix
0.6 1.00.4
0.3 0.00.5
0.1 0.00.1
FROMTO
Home
Office
Bank
Home Office Bank
1.0
0.0
0.0
Transition Probability Matrix Starting
Probability
Vector
0.56
0.35
0.09
Prediction
after 2nd
event
2
Transition Probability Matrix
0.6 1.00.4
0.3 0.00.5
0.1 0.00.1
FROMTO
Home
Office
Bank
Home Office Bank
1.0
0.0
0.0
Transition Probability Matrix Starting
Probability
Vector
0.53
0.37
0.09
Prediction
for 20
event
20
Suppose winter weather on alien planet
Sunny Rainy
Happy
Sad
● If Alien planet filters less light of it’s
star, it means no clouds are there on
the planet and our alien friend will
send us a happy emoji.
● Sometimes, very rarely, we receive a
sad emoji while our data telling us
the weather is sunny.
● If alien planet filters more light of it’s
star, it means the weather is cloudy
and our alien friend will send us sad
emoji.
● Sometimes, we recieve a happy emoji
too while our data telling us the
weather is cloudy.Sad
Happy
0.8 0.6
0.2 0.4
The last emojis we received are
One fine morning, our
light detector fails but
we are receiving
emojis from our alien
friend and we need to
predict weather on the
alien planet based on
those emojis
M
T
W
T
Hidden Markov Model of Situation
Sunny Rainy
0.8 0.6
0.2 0.4
0.8
0.4
0.2
0.6
Happy
Sad
Sad Happy
Types of states
Sunny Rainy
Happy Sad
Hidden States that
we cannot observe
directly.
Observational States
that we can observe
directly.
Transition Probabilities
Sunny Rainy
0.8
0.4
0.2
0.6
State transition probabilities are the arrows pointing to each
hidden state.
Emission/Observation Probabilities
Sunny Rainy
0.8 0.6
0.2 0.4
Happy
Sad
Sad Happy
Observation probability
matrix are the blue and red
arrows pointing to each
observations from each hidden
state
Questions to Ask
● How did we find these probabilities?
● What is the probability that a random day is sunny or
rainy?
● If we receive a happy emoji today, what is the probability
that it’s sunny or rainy
● If for three days we receive the emojis Happy, Sad,
Happy what was the weather on alien’s planet?
How did we find the Transition probabilities?
From the previous data when out light detector was working fine, we had the following observations
Probability of next day if a day is sunny. Probability of next day if a day is rainy.
8 (0.8)
2 (0.2)
2 (0.4)
3 (0.6)
How did we find the Emission probabilities?
From the previous data when out light detector was working fine, we had the following observations
Probability of emoji if a day is sunny. Probability of emoji if a day is rainy.
8 (0.8)
2 (0.2)
2 (0.4)
3 (0.6)
All the probabilities have been calculated
Sunny Rainy
0.8 0.6
0.2 0.4
0.8
0.4
0.2
0.6
Happy
Sad
Sad Happy
What is the probability that a random day is sunny or rainy?
S
0.8
0.4
0.2
0.6
R
S = 0.8S + 0.4R R = 0.2S + 0.6RS + R = 1
Solving Systems of Equations, We get S = 2/3 R = 1/3
P( | ) = 0.8
P( )= ⅔ &
P( | ) = 0.2
If we receive a happy emoji today, what is the probability that
it’s sunny or rainy?
Probability that a day is sunny. Probability that a day is rainy.
By Bayes Theorem, If we received
P(A|B) =P(A) P(B|A)
P(B)
P( )= ⅔
P( | ) = 0.8
P( | ) = 0.4
P( )= ⅓ & P( )= ⅔
If for three days we receive the emojis Happy, Sad, Happy
what was the weather on alien’s planet?
If Happy, weather
can be
If Sad, weather
can be
Sunny Sunny RainyRainy
If Happy, Sad what was the weather on alien’s planet?
If Happy, Sad we will have the following 4 cases, we will check the
probability for each case and pick the one with the highest probability.
0.8
0.67 0.2
0.6
0.064
0.8
0.67 0.8
0.2
0.085
0.4
0.33
0.4
0.2
0.0107
0.4
0.33 0.6
0.6
0.048
Happy, Sad, Happy what was the weather on alien’s planet?
If Happy, Sad, Happy we will have the 8 cases, we will check the
probability for each case and pick the one with the highest probability.
Happy, Sad, Happy
0.8
0.67 0.2
0.6
0.02058
0.8
0.4
Happy, Sad, Happy We will check for sunny, sunny case,
because it has the highest probability in previous case.
0.8
0.67 0.8
0.2
0.00686
0.4
0.2
Happy, Sad, Happy We will check for sunny, sunny case,
because it has the highest probability in previous case.
0.8
0.67 0.8
0.2
0.05488
0.8
0.8
Optimization
Instead of checking all the cases that will be 2^n , we will only traverse the most
optimal path to reach the destination and prune the other branches of tree.
Implementation Link
Hidden Markov Model For the given scenario
Thank You!
Helping Links
Youtube Video Link
Medium Blog link

More Related Content

What's hot

Presentation on supervised learning
Presentation on supervised learningPresentation on supervised learning
Presentation on supervised learningTonmoy Bhagawati
 
A Beginner's Guide to Machine Learning with Scikit-Learn
A Beginner's Guide to Machine Learning with Scikit-LearnA Beginner's Guide to Machine Learning with Scikit-Learn
A Beginner's Guide to Machine Learning with Scikit-LearnSarah Guido
 
Naive bayesian classification
Naive bayesian classificationNaive bayesian classification
Naive bayesian classificationDr-Dipali Meher
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnBenjamin Bengfort
 
Lect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmLect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmhktripathy
 
EXPLORATORY DATA ANALYSIS
EXPLORATORY DATA ANALYSISEXPLORATORY DATA ANALYSIS
EXPLORATORY DATA ANALYSISBabasID2
 
Classification Algorithm.
Classification Algorithm.Classification Algorithm.
Classification Algorithm.Megha Sharma
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsMd. Main Uddin Rony
 
Machine learning Lecture 3
Machine learning Lecture 3Machine learning Lecture 3
Machine learning Lecture 3Srinivasan R
 
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Edureka!
 
Performance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialPerformance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialBilkent University
 
Naive bayes
Naive bayesNaive bayes
Naive bayesumeskath
 
Machine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
Machine learning by Dr. Vivek Vijay and Dr. Sandeep YadavMachine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
Machine learning by Dr. Vivek Vijay and Dr. Sandeep YadavAgile Testing Alliance
 

What's hot (20)

supervised learning
supervised learningsupervised learning
supervised learning
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Presentation on supervised learning
Presentation on supervised learningPresentation on supervised learning
Presentation on supervised learning
 
A Beginner's Guide to Machine Learning with Scikit-Learn
A Beginner's Guide to Machine Learning with Scikit-LearnA Beginner's Guide to Machine Learning with Scikit-Learn
A Beginner's Guide to Machine Learning with Scikit-Learn
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
Naive bayesian classification
Naive bayesian classificationNaive bayesian classification
Naive bayesian classification
 
Machine learning clustering
Machine learning clusteringMachine learning clustering
Machine learning clustering
 
EDA
EDAEDA
EDA
 
Introduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-LearnIntroduction to Machine Learning with SciKit-Learn
Introduction to Machine Learning with SciKit-Learn
 
Lect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmLect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithm
 
EXPLORATORY DATA ANALYSIS
EXPLORATORY DATA ANALYSISEXPLORATORY DATA ANALYSIS
EXPLORATORY DATA ANALYSIS
 
Classification Algorithm.
Classification Algorithm.Classification Algorithm.
Classification Algorithm.
 
Classification Based Machine Learning Algorithms
Classification Based Machine Learning AlgorithmsClassification Based Machine Learning Algorithms
Classification Based Machine Learning Algorithms
 
Machine learning Lecture 3
Machine learning Lecture 3Machine learning Lecture 3
Machine learning Lecture 3
 
Naive Bayes Presentation
Naive Bayes PresentationNaive Bayes Presentation
Naive Bayes Presentation
 
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
 
Performance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorialPerformance Evaluation for Classifiers tutorial
Performance Evaluation for Classifiers tutorial
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Bayes learning
Bayes learningBayes learning
Bayes learning
 
Machine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
Machine learning by Dr. Vivek Vijay and Dr. Sandeep YadavMachine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
Machine learning by Dr. Vivek Vijay and Dr. Sandeep Yadav
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Hidden Markov Models Guide - Predict Weather on Alien Planet in 40 Characters

  • 1. Hidden Markov Models By Ahmed Jamshed, Ahsen Gul, Ali Tariq
  • 2. Markov Chains Previous Event Future Event Current Event Memory less (Only current event will predict future event)
  • 3. States and transition probabilities 0.5 0.4 0.1 States Transition Probabilities 0.5 + 0.4 + 0.1 = 1
  • 5. Transition Probability Matrix 0.6 1.00.4 0.3 0.00.5 0.1 0.00.1 FROMTO Home Office Bank Home Office Bank 1.0 0.0 0.0 Transition Probability Matrix Starting Probability Vector 0.4 0.5 0.1 Prediction for next event
  • 6. Transition Probability Matrix 0.6 1.00.4 0.3 0.00.5 0.1 0.00.1 FROMTO Home Office Bank Home Office Bank 1.0 0.0 0.0 Transition Probability Matrix Starting Probability Vector 0.56 0.35 0.09 Prediction after 2nd event 2
  • 7. Transition Probability Matrix 0.6 1.00.4 0.3 0.00.5 0.1 0.00.1 FROMTO Home Office Bank Home Office Bank 1.0 0.0 0.0 Transition Probability Matrix Starting Probability Vector 0.53 0.37 0.09 Prediction for 20 event 20
  • 8. Suppose winter weather on alien planet Sunny Rainy Happy Sad ● If Alien planet filters less light of it’s star, it means no clouds are there on the planet and our alien friend will send us a happy emoji. ● Sometimes, very rarely, we receive a sad emoji while our data telling us the weather is sunny. ● If alien planet filters more light of it’s star, it means the weather is cloudy and our alien friend will send us sad emoji. ● Sometimes, we recieve a happy emoji too while our data telling us the weather is cloudy.Sad Happy 0.8 0.6 0.2 0.4
  • 9. The last emojis we received are One fine morning, our light detector fails but we are receiving emojis from our alien friend and we need to predict weather on the alien planet based on those emojis M T W T
  • 10. Hidden Markov Model of Situation Sunny Rainy 0.8 0.6 0.2 0.4 0.8 0.4 0.2 0.6 Happy Sad Sad Happy
  • 11. Types of states Sunny Rainy Happy Sad Hidden States that we cannot observe directly. Observational States that we can observe directly.
  • 12. Transition Probabilities Sunny Rainy 0.8 0.4 0.2 0.6 State transition probabilities are the arrows pointing to each hidden state.
  • 13. Emission/Observation Probabilities Sunny Rainy 0.8 0.6 0.2 0.4 Happy Sad Sad Happy Observation probability matrix are the blue and red arrows pointing to each observations from each hidden state
  • 14. Questions to Ask ● How did we find these probabilities? ● What is the probability that a random day is sunny or rainy? ● If we receive a happy emoji today, what is the probability that it’s sunny or rainy ● If for three days we receive the emojis Happy, Sad, Happy what was the weather on alien’s planet?
  • 15. How did we find the Transition probabilities? From the previous data when out light detector was working fine, we had the following observations Probability of next day if a day is sunny. Probability of next day if a day is rainy. 8 (0.8) 2 (0.2) 2 (0.4) 3 (0.6)
  • 16. How did we find the Emission probabilities? From the previous data when out light detector was working fine, we had the following observations Probability of emoji if a day is sunny. Probability of emoji if a day is rainy. 8 (0.8) 2 (0.2) 2 (0.4) 3 (0.6)
  • 17. All the probabilities have been calculated Sunny Rainy 0.8 0.6 0.2 0.4 0.8 0.4 0.2 0.6 Happy Sad Sad Happy
  • 18. What is the probability that a random day is sunny or rainy? S 0.8 0.4 0.2 0.6 R S = 0.8S + 0.4R R = 0.2S + 0.6RS + R = 1 Solving Systems of Equations, We get S = 2/3 R = 1/3
  • 19. P( | ) = 0.8 P( )= ⅔ & P( | ) = 0.2 If we receive a happy emoji today, what is the probability that it’s sunny or rainy? Probability that a day is sunny. Probability that a day is rainy. By Bayes Theorem, If we received P(A|B) =P(A) P(B|A) P(B) P( )= ⅔ P( | ) = 0.8 P( | ) = 0.4 P( )= ⅓ & P( )= ⅔
  • 20. If for three days we receive the emojis Happy, Sad, Happy what was the weather on alien’s planet? If Happy, weather can be If Sad, weather can be Sunny Sunny RainyRainy
  • 21. If Happy, Sad what was the weather on alien’s planet? If Happy, Sad we will have the following 4 cases, we will check the probability for each case and pick the one with the highest probability.
  • 23. Happy, Sad, Happy what was the weather on alien’s planet? If Happy, Sad, Happy we will have the 8 cases, we will check the probability for each case and pick the one with the highest probability.
  • 24. Happy, Sad, Happy 0.8 0.67 0.2 0.6 0.02058 0.8 0.4
  • 25. Happy, Sad, Happy We will check for sunny, sunny case, because it has the highest probability in previous case. 0.8 0.67 0.8 0.2 0.00686 0.4 0.2
  • 26. Happy, Sad, Happy We will check for sunny, sunny case, because it has the highest probability in previous case. 0.8 0.67 0.8 0.2 0.05488 0.8 0.8
  • 27. Optimization Instead of checking all the cases that will be 2^n , we will only traverse the most optimal path to reach the destination and prune the other branches of tree.
  • 28. Implementation Link Hidden Markov Model For the given scenario Thank You! Helping Links Youtube Video Link Medium Blog link