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 (8)

Corifollitropin alfa (Elonva) : Meta-analysis
 Corifollitropin alfa (Elonva) : Meta-analysis Corifollitropin alfa (Elonva) : Meta-analysis
Corifollitropin alfa (Elonva) : Meta-analysis
 
IMSI
IMSIIMSI
IMSI
 
Vaccine Safety - A pediatrician perspective
Vaccine Safety - A pediatrician perspectiveVaccine Safety - A pediatrician perspective
Vaccine Safety - A pediatrician perspective
 
Importance of antioxidants in pregnancy
Importance of antioxidants in pregnancyImportance of antioxidants in pregnancy
Importance of antioxidants in pregnancy
 
Media preparation in IVF
Media preparation in IVFMedia preparation in IVF
Media preparation in IVF
 
Egg freezing - Dr Dhorepatil Bharati
Egg freezing - Dr Dhorepatil BharatiEgg freezing - Dr Dhorepatil Bharati
Egg freezing - Dr Dhorepatil Bharati
 
Art in hiv discordant couples
Art in hiv discordant couples Art in hiv discordant couples
Art in hiv discordant couples
 
GEBELİKTE PROGESTERON KULLANIMI
GEBELİKTE PROGESTERON KULLANIMIGEBELİKTE PROGESTERON KULLANIMI
GEBELİKTE PROGESTERON KULLANIMI
 

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