SlideShare una empresa de Scribd logo
1 de 23
Introduction to Markov chains 
Examples of Markov chains: 
- Random walk on a line
Introduction to Markov chains 
Examples of Markov chains: 
- Random walk on a graph
Introduction to Markov chains 
Examples of Markov chains: 
- Random walk on a hypercube
Introduction to Markov chains 
Examples of Markov chains: 
- Markov chain on graph colorings
Introduction to Markov chains 
Examples of Markov chains: 
- Markov chain on graph colorings
Introduction to Markov chains 
Examples of Markov chains: 
- Markov chain on graph colorings
Introduction to Markov chains 
Examples of Markov chains: 
- Markov chain on matchings of a graph
Definition of Markov chains 
- State space W 
- Transition matrix P, of size |W|x|W| 
- P(x,y) is the probability of getting from state x to state y 
- åy2W P(x,y) =
Definition of Markov chains 
- State space W 
- Transition matrix P, of size |W|x|W| 
- P(x,y) is the probability of getting from state x to state y 
- åy2W P(x,y) =
Definition of Markov chains 
Example: frog on lily pads
Definition of Markov chains 
Stationary distribution ¼ (on states in W): 
Example: frog with unfair coins
Definition of Markov chains 
Other examples:
Definition of Markov chains 
- aperiodic 
- irreducible 
- ergodic: a MC that is both aperiodic and irreducible 
Thm (3.6 in Jerrum): An ergodic MC has a unique stationary 
distribution. Moreover, it converges to it as time goes to 1.
Gambler’s Ruin 
A gambler has k dollars initially and bets on (fair) coin flips. 
If she guesses the coin flip: gets 1 dollar. 
If not, loses 1 dollar. 
Stops either when 0 or n dollars. 
Is it a Markov chain ? 
How many bets until she stops playing ? 
What are the probabilities of 0 vs n dollars ?
Gambler’s Ruin 
Stationary distribution ?
Gambler’s Ruin 
Starting with k dollars, what is the probability of reaching n ? 
What is the probability of reaching 0 ?
Gambler’s Ruin 
How many bets until 0 or n ?
Coupon Collecting 
- n coupons 
- each time get a coupon at random, chosen from 1,…,n 
(i.e., likely will get some coupons multiple times) 
- how long to get all n coupons ? 
Is this a Markov chain ?
Coupon Collecting 
How long to get all n coupons ?
Coupon Collecting 
How long to get all n coupons ?
Coupon Collecting 
Proposition: 
Let ¿ be the random variable for the time needed to collect all 
n coupons. Then, 
Pr(¿ > d n log n + cn e) · e-c.
Random Walk on a Hypercube 
How many expected steps until we get to a random state ? 
(I.e., what is the mixing time ?)
Random Walk on a Hypercube 
How many expected steps until we get to a random state ? 
(I.e., what is the mixing time ?)

Más contenido relacionado

La actualidad más candente

Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
ESCOM
 
Presentation on Probability Genrating Function
Presentation on Probability Genrating FunctionPresentation on Probability Genrating Function
Presentation on Probability Genrating Function
Md Riaz Ahmed Khan
 

La actualidad más candente (20)

Markov chains1
Markov chains1Markov chains1
Markov chains1
 
Markov chain and its Application
Markov chain and its Application Markov chain and its Application
Markov chain and its Application
 
Markov process
Markov processMarkov process
Markov process
 
Stat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chainStat 2153 Stochastic Process and Markov chain
Stat 2153 Stochastic Process and Markov chain
 
Hidden Markov Model
Hidden Markov Model Hidden Markov Model
Hidden Markov Model
 
Multi-Layer Perceptrons
Multi-Layer PerceptronsMulti-Layer Perceptrons
Multi-Layer Perceptrons
 
Presentation on Probability Genrating Function
Presentation on Probability Genrating FunctionPresentation on Probability Genrating Function
Presentation on Probability Genrating Function
 
17-markov-chains.pdf
17-markov-chains.pdf17-markov-chains.pdf
17-markov-chains.pdf
 
Markov chain
Markov chainMarkov chain
Markov chain
 
Monte Carlo Statistical Methods
Monte Carlo Statistical MethodsMonte Carlo Statistical Methods
Monte Carlo Statistical Methods
 
pca.ppt
pca.pptpca.ppt
pca.ppt
 
Bayes network
Bayes networkBayes network
Bayes network
 
Markov chain
Markov chainMarkov chain
Markov chain
 
Chap 4 markov chains
Chap 4   markov chainsChap 4   markov chains
Chap 4 markov chains
 
Lecture 9 Markov decision process
Lecture 9 Markov decision processLecture 9 Markov decision process
Lecture 9 Markov decision process
 
Hidden markov model
Hidden markov modelHidden markov model
Hidden markov model
 
Bayes Classification
Bayes ClassificationBayes Classification
Bayes Classification
 
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaArima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
 
Implement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratchImplement principal component analysis (PCA) in python from scratch
Implement principal component analysis (PCA) in python from scratch
 
Metropolis-Hastings MCMC Short Tutorial
Metropolis-Hastings MCMC Short TutorialMetropolis-Hastings MCMC Short Tutorial
Metropolis-Hastings MCMC Short Tutorial
 

Destacado (6)

Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation Actuarial Application of Monte Carlo Simulation
Actuarial Application of Monte Carlo Simulation
 
Hr forecasting techniques
Hr forecasting techniquesHr forecasting techniques
Hr forecasting techniques
 
Berger 2000
Berger 2000Berger 2000
Berger 2000
 
Session 42_1 Peter Fries-Hansen
Session 42_1 Peter Fries-HansenSession 42_1 Peter Fries-Hansen
Session 42_1 Peter Fries-Hansen
 
Markov analysis
Markov analysisMarkov analysis
Markov analysis
 
construction risk factor analysis: BBN Network
construction risk factor analysis: BBN Networkconstruction risk factor analysis: BBN Network
construction risk factor analysis: BBN Network
 

Similar a Markov chain intro

Quantum random walks with memory
Quantum random walks with memoryQuantum random walks with memory
Quantum random walks with memory
sitric
 
Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognition
butest
 
Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognition
butest
 
20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin
Computer Science Club
 

Similar a Markov chain intro (9)

Introduction to Random Walk
Introduction to Random WalkIntroduction to Random Walk
Introduction to Random Walk
 
How to Win at Monopoly
How to Win at MonopolyHow to Win at Monopoly
How to Win at Monopoly
 
Quantum random walks with memory
Quantum random walks with memoryQuantum random walks with memory
Quantum random walks with memory
 
randomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.pptrandomwalks_states_figures_events_happenings.ppt
randomwalks_states_figures_events_happenings.ppt
 
The tails
The tailsThe tails
The tails
 
Monte Caro Simualtions, Sampling and Markov Chain Monte Carlo
Monte Caro Simualtions, Sampling and Markov Chain Monte CarloMonte Caro Simualtions, Sampling and Markov Chain Monte Carlo
Monte Caro Simualtions, Sampling and Markov Chain Monte Carlo
 
Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognition
 
Hidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognitionHidden Markov Models with applications to speech recognition
Hidden Markov Models with applications to speech recognition
 
20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin20121020 semi local-string_comparison_tiskin
20121020 semi local-string_comparison_tiskin
 

Último

Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
nirzagarg
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
gajnagarg
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
gajnagarg
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
chadhar227
 

Último (20)

Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt7. Epi of Chronic respiratory diseases.ppt
7. Epi of Chronic respiratory diseases.ppt
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf20240412-SmartCityIndex-2024-Full-Report.pdf
20240412-SmartCityIndex-2024-Full-Report.pdf
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
Top profile Call Girls In Bihar Sharif [ 7014168258 ] Call Me For Genuine Mod...
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...Top Call Girls in Balaghat  9332606886Call Girls Advance Cash On Delivery Ser...
Top Call Girls in Balaghat 9332606886Call Girls Advance Cash On Delivery Ser...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With OrangePredicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
Predicting HDB Resale Prices - Conducting Linear Regression Analysis With Orange
 
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In bhavnagar [ 7014168258 ] Call Me For Genuine Models...
 
Gartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptxGartner's Data Analytics Maturity Model.pptx
Gartner's Data Analytics Maturity Model.pptx
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 

Markov chain intro

  • 1. Introduction to Markov chains Examples of Markov chains: - Random walk on a line
  • 2. Introduction to Markov chains Examples of Markov chains: - Random walk on a graph
  • 3. Introduction to Markov chains Examples of Markov chains: - Random walk on a hypercube
  • 4. Introduction to Markov chains Examples of Markov chains: - Markov chain on graph colorings
  • 5. Introduction to Markov chains Examples of Markov chains: - Markov chain on graph colorings
  • 6. Introduction to Markov chains Examples of Markov chains: - Markov chain on graph colorings
  • 7. Introduction to Markov chains Examples of Markov chains: - Markov chain on matchings of a graph
  • 8. Definition of Markov chains - State space W - Transition matrix P, of size |W|x|W| - P(x,y) is the probability of getting from state x to state y - åy2W P(x,y) =
  • 9. Definition of Markov chains - State space W - Transition matrix P, of size |W|x|W| - P(x,y) is the probability of getting from state x to state y - åy2W P(x,y) =
  • 10. Definition of Markov chains Example: frog on lily pads
  • 11. Definition of Markov chains Stationary distribution ¼ (on states in W): Example: frog with unfair coins
  • 12. Definition of Markov chains Other examples:
  • 13. Definition of Markov chains - aperiodic - irreducible - ergodic: a MC that is both aperiodic and irreducible Thm (3.6 in Jerrum): An ergodic MC has a unique stationary distribution. Moreover, it converges to it as time goes to 1.
  • 14. Gambler’s Ruin A gambler has k dollars initially and bets on (fair) coin flips. If she guesses the coin flip: gets 1 dollar. If not, loses 1 dollar. Stops either when 0 or n dollars. Is it a Markov chain ? How many bets until she stops playing ? What are the probabilities of 0 vs n dollars ?
  • 15. Gambler’s Ruin Stationary distribution ?
  • 16. Gambler’s Ruin Starting with k dollars, what is the probability of reaching n ? What is the probability of reaching 0 ?
  • 17. Gambler’s Ruin How many bets until 0 or n ?
  • 18. Coupon Collecting - n coupons - each time get a coupon at random, chosen from 1,…,n (i.e., likely will get some coupons multiple times) - how long to get all n coupons ? Is this a Markov chain ?
  • 19. Coupon Collecting How long to get all n coupons ?
  • 20. Coupon Collecting How long to get all n coupons ?
  • 21. Coupon Collecting Proposition: Let ¿ be the random variable for the time needed to collect all n coupons. Then, Pr(¿ > d n log n + cn e) · e-c.
  • 22. Random Walk on a Hypercube How many expected steps until we get to a random state ? (I.e., what is the mixing time ?)
  • 23. Random Walk on a Hypercube How many expected steps until we get to a random state ? (I.e., what is the mixing time ?)