SlideShare a Scribd company logo
1 of 6
Don’t you like to look at future sometimes?

                   Ashish Agarwal
Markov models are mathematical models based on the property of Markov
process

What is a Markov process?
Markov process analyzes a set of random, dependent events which depend
on what happened last.

e.g. 1. A Markov model could be to look at a long sequence of rainy, sunny &
foggy days in a particular region & try to predict what the weather will be
tomorrow.

e.g. 2. Tossing a coin that gathers a sequence of Heads & Tails & then tries to
predict what will appear next is NOT a Markov model because tossing a coin
to get a Head or a Tail are independent events.

Markov Models are applicable ONLY for dependent events.
Markov Process Example in detail

Problem Statement: Suppose you want to predict what the weather will be like
tomorrow based on what the weather is today.
This can be expressed in terms of probability as –

P(w tomorrow | w today )
The above expression is read as –
Probability of tomorrow’s weather given today’s weather

Now suppose we arbitrarily pick the following values for P(w tomorrow | w today )

                                                     Tomorrow’s weather
                                         Sunny            Rainy            Foggy

      Today’s       Sunny                      0.8             0.05            0.15
      weather
                    Rainy                      0.2              0.6             0.2

                    Foggy                      0.2              0.3             0.5
Tomorrow’s weather
                                  Sunny             Rainy              Foggy

Today’s weather   Sunny                   0.8             0.05            0.15

                  Rainy                   0.2             0.6             0.2

                  Foggy                   0.2             0.3             0.5

                                  0.2
                                                                 0.5
      0.8

                                  0.15


                           0.05           0.3                      Finite State
                     0.2
                                                    0.2
                                                                   Diagram




                                    0.6
Question:
Given that today is Sunny (w1), what’s the probability that tomorrow is sunny (w2)
and the day after is rainy (w3)?
P( w2 = sunny, w3=rainy | w1 = sunny) = ?
The probability table (copied from previous slide)

                                              Tomorrow’s weather
                                   Sunny          Rainy          Foggy

  Today’s weather   Sunny               0.8            0.05          0.15

                    Rainy               0.2            0.6            0.2

                    Foggy               0.2            0.3            0.5

P( w2=sunny, w3=rainy | w1=sunny) = P (w2=sunny| w1=sunny) *
                               P (w3=rainy| w2=sunny, w1=sunny)
                                    = 0.8 * 0.05
                                    = 0.04
Where do we use Markov Models (MM)?

1.   Speech Recognition
2.   Bio Informatics
3.   Face Expression Characterizations
4.   Harry F. Olson at Bell Labs used MM to generate music by analyzing 11
     songs of Foster

More Related Content

What's hot

T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
shoffma5
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
shoffma5
 

What's hot (20)

Anova post hoc
Anova post hocAnova post hoc
Anova post hoc
 
Measure of dispersion
Measure of dispersionMeasure of dispersion
Measure of dispersion
 
T Test For Two Independent Samples
T Test For Two Independent SamplesT Test For Two Independent Samples
T Test For Two Independent Samples
 
Dna and Gel Electrophoresis
Dna and Gel ElectrophoresisDna and Gel Electrophoresis
Dna and Gel Electrophoresis
 
What is Pie chart
What is Pie chartWhat is Pie chart
What is Pie chart
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
 
What is a two sample z test?
What is a two sample z test?What is a two sample z test?
What is a two sample z test?
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
 
T test and types of t-test
T test and types of t-testT test and types of t-test
T test and types of t-test
 
wilcoxon signed rank test
wilcoxon signed rank testwilcoxon signed rank test
wilcoxon signed rank test
 
Regression & correlation coefficient
Regression & correlation coefficientRegression & correlation coefficient
Regression & correlation coefficient
 
Anova ppt
Anova pptAnova ppt
Anova ppt
 
PROCEDURE FOR TESTING HYPOTHESIS
PROCEDURE FOR   TESTING HYPOTHESIS PROCEDURE FOR   TESTING HYPOTHESIS
PROCEDURE FOR TESTING HYPOTHESIS
 
ANOVA test and correlation
ANOVA test and correlationANOVA test and correlation
ANOVA test and correlation
 
Testing Hypothesis
Testing HypothesisTesting Hypothesis
Testing Hypothesis
 
What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?What is a Kruskal Wallis-Test?
What is a Kruskal Wallis-Test?
 
T test statistics
T test statisticsT test statistics
T test statistics
 
Type I & Type II Statistics.pptx
Type I & Type II Statistics.pptxType I & Type II Statistics.pptx
Type I & Type II Statistics.pptx
 
Testing of hypothesis and Goodness of fit
Testing of hypothesis and Goodness of fitTesting of hypothesis and Goodness of fit
Testing of hypothesis and Goodness of fit
 

More from Ashish K Agarwal (7)

Slb preso
Slb presoSlb preso
Slb preso
 
Agile processexplained
Agile processexplainedAgile processexplained
Agile processexplained
 
Automate devmachinesetup
Automate devmachinesetupAutomate devmachinesetup
Automate devmachinesetup
 
Getting Started with Leaflet JS
Getting Started with Leaflet JSGetting Started with Leaflet JS
Getting Started with Leaflet JS
 
Budget2014 bubblechart
Budget2014 bubblechartBudget2014 bubblechart
Budget2014 bubblechart
 
Conway gameoflife
Conway gameoflifeConway gameoflife
Conway gameoflife
 
Introduction to Test Driven Development [TDD]
Introduction to Test Driven Development [TDD]Introduction to Test Driven Development [TDD]
Introduction to Test Driven Development [TDD]
 

Markov models explained

  • 1. Don’t you like to look at future sometimes? Ashish Agarwal
  • 2. Markov models are mathematical models based on the property of Markov process What is a Markov process? Markov process analyzes a set of random, dependent events which depend on what happened last. e.g. 1. A Markov model could be to look at a long sequence of rainy, sunny & foggy days in a particular region & try to predict what the weather will be tomorrow. e.g. 2. Tossing a coin that gathers a sequence of Heads & Tails & then tries to predict what will appear next is NOT a Markov model because tossing a coin to get a Head or a Tail are independent events. Markov Models are applicable ONLY for dependent events.
  • 3. Markov Process Example in detail Problem Statement: Suppose you want to predict what the weather will be like tomorrow based on what the weather is today. This can be expressed in terms of probability as – P(w tomorrow | w today ) The above expression is read as – Probability of tomorrow’s weather given today’s weather Now suppose we arbitrarily pick the following values for P(w tomorrow | w today ) Tomorrow’s weather Sunny Rainy Foggy Today’s Sunny 0.8 0.05 0.15 weather Rainy 0.2 0.6 0.2 Foggy 0.2 0.3 0.5
  • 4. Tomorrow’s weather Sunny Rainy Foggy Today’s weather Sunny 0.8 0.05 0.15 Rainy 0.2 0.6 0.2 Foggy 0.2 0.3 0.5 0.2 0.5 0.8 0.15 0.05 0.3 Finite State 0.2 0.2 Diagram 0.6
  • 5. Question: Given that today is Sunny (w1), what’s the probability that tomorrow is sunny (w2) and the day after is rainy (w3)? P( w2 = sunny, w3=rainy | w1 = sunny) = ? The probability table (copied from previous slide) Tomorrow’s weather Sunny Rainy Foggy Today’s weather Sunny 0.8 0.05 0.15 Rainy 0.2 0.6 0.2 Foggy 0.2 0.3 0.5 P( w2=sunny, w3=rainy | w1=sunny) = P (w2=sunny| w1=sunny) * P (w3=rainy| w2=sunny, w1=sunny) = 0.8 * 0.05 = 0.04
  • 6. Where do we use Markov Models (MM)? 1. Speech Recognition 2. Bio Informatics 3. Face Expression Characterizations 4. Harry F. Olson at Bell Labs used MM to generate music by analyzing 11 songs of Foster