SlideShare a Scribd company logo
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

Margin buying PPT
Margin buying PPTMargin buying PPT
Margin buying PPTTinku Kumar
 
Corporate finance
Corporate financeCorporate finance
Corporate finance
Junaid Ahmad Kayani
 
Nick chen ppt presentation metronomic chemotherapy 2015
Nick chen   ppt presentation metronomic chemotherapy 2015Nick chen   ppt presentation metronomic chemotherapy 2015
Nick chen ppt presentation metronomic chemotherapy 2015
CNPS, LLC
 
Markov chain
Markov chainMarkov chain
Markov chain
Yogesh Khandelwal
 
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-SharesGSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
University of New England
 

What's hot (6)

Margin buying PPT
Margin buying PPTMargin buying PPT
Margin buying PPT
 
Corporate finance
Corporate financeCorporate finance
Corporate finance
 
Nick chen ppt presentation metronomic chemotherapy 2015
Nick chen   ppt presentation metronomic chemotherapy 2015Nick chen   ppt presentation metronomic chemotherapy 2015
Nick chen ppt presentation metronomic chemotherapy 2015
 
Markov chain
Markov chainMarkov chain
Markov chain
 
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-SharesGSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
GSB711-Lecture-Note-04-Valuation-of-Bonds-and-Shares
 
Value at Risk
Value at RiskValue at Risk
Value at Risk
 

More from Ashish K Agarwal

Slb preso
Slb presoSlb preso
Slb preso
Ashish K Agarwal
 
Agile processexplained
Agile processexplainedAgile processexplained
Agile processexplained
Ashish K Agarwal
 
Automate devmachinesetup
Automate devmachinesetupAutomate devmachinesetup
Automate devmachinesetup
Ashish K Agarwal
 
Getting Started with Leaflet JS
Getting Started with Leaflet JSGetting Started with Leaflet JS
Getting Started with Leaflet JS
Ashish K Agarwal
 
Introduction to Test Driven Development [TDD]
Introduction to Test Driven Development [TDD]Introduction to Test Driven Development [TDD]
Introduction to Test Driven Development [TDD]
Ashish K Agarwal
 

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