SlideShare a Scribd company logo
1 of 11
Linear Algebra in Markov
Chains
Presented By : Luckshay Batra
luckybatra17@gmail.com
Introduction
Transition Matrix : A matrix in which all entries are
nonnegative and all columns sum to 1.
Thus, an n x n Transition matrix gives the probability of
movement from any one of n states to any of the other n
states.
Probability Vector : A vector whose coordinates are
nonnegative and sum to 1. Thus, an n-dimensional
probability vector gives the chances of occurrence of
each one of n events.
Markov Chain
 If p0 is a probability vector and A is a transition matrix, then the sequence,
p0, p1, p2, p3, ... , where pk = (A^k)*p0 for k = 1, 2, 3, ..., is called a Markov
chain.
 If A*p = p for some probability vector, then p is called a steady-state
vector.
 A Stochastic model that describes the probabilities of transition among
the states of a system.
 Change of state depends probabilistically only on the current state of the
system.
 Independent of the past given that the present state is known.
 The behavior depends on the structure of the transition matrix P.
Problem of Television Viewers
 Suppose there are two regional news shows in the local
television viewing area, and we have conducted a survey of
viewers to determine which channel the viewers have been
watching. The first survey revealed that 40% of the viewers
watched station X and 60% watched station Y. Subsequent
surveys revealed that each week 15% of the X viewers
switched to station Y and 5% of the Y viewers switched to
station X.
 We will use Transition matrices and Markov chains to make a
prediction about the future television market from this
information.
 We assume that the 15%-5% switching trends will continue
indefinitely.
 Let pk be a two-dimensional column vector whose entries give
the proportion of people who watch station X and the
proportion who watch station Y, in that order, during week k.
Thus, p0 = [0.4,0.6]t.
From the assumptions above, we see that the proportion of
people watching station X in week k = 1 will be 85% of the X
viewers in week k = 0 (which is 85% of 40%, or 34%) plus 5%
of the Y viewers in week k = 0 (which is 5% of 60%, or 3%) for
a total of 37%:
0.85(0.4) + 0.05(0.6) = 0.37.
Similarly,
0.15(0.4) + 0.95(0.6) = 0.63,
is the proportion of people watching station Y in week k = 1. So,
we have computed p1 = [0.37,0.63]t.
Similarly, we could compute the sequence of vectors p2, p3, ... ,
but this process would be quite tedious if we continued in the
manner above.
Andrei Markov (1856-1922) described a much more efficient
way of handling such a problem.
First, we think of the movement of viewers as being described by the
following array, which gives the weekly proportion of viewers who change
from one station to another:
From:
The matrix A of entries in the table is called the transition matrix for this
problem.
Looking carefully at the definition of matrix multiplication, we see that
p1=A*p0. Indeed, we see that, for k = 0, 1, 2, ..., and so on, pk+1=A*pk.
Each pk is called a probability vector, and the sequence, p0, p1, p2, p3, ..., is
called a Markov chain.
Because matrix multiplication is associative, we find
p2 = A*p1 = A(A*p0) = (A^2)*p0,
p3 = A*p2 = A((A^2)*p0) = (A^3)*p0,
and, in general,
pk = (A^k)*p0, for k = 1, 2, ...
Compute A^5. Then compute p5 directly from A^5 without
computing p1, ... , p4.
Suppose p is a probability vector with the property that A*p = p.
If this p describes the current viewers .
We can solve the equation A*p = p by rewriting it as A*p - p = 0 and factoring
out p.
We get the matrix equation (A - I)p = 0, where I is the 2x2 identity matrix.
Using our given transition matrix, solve this matrix equation for p.
From the solutions pick the one which is a probability vector (i.e., its entries
must sum to 1).
This vector is called the steady-state vector.
The fact that p is the steady-state vector does not imply that the Markov chain
will actually reach that state from p0.
References
• Statistics & Probability by Sheldon M Ross
• Linear Algebra by David C Lay
Markov chain

More Related Content

What's hot

17-markov-chains.pdf
17-markov-chains.pdf17-markov-chains.pdf
17-markov-chains.pdfmelda49
 
Lagrange's method
Lagrange's methodLagrange's method
Lagrange's methodKarnav Rana
 
Analysis sequences and bounded sequences
Analysis sequences and bounded sequencesAnalysis sequences and bounded sequences
Analysis sequences and bounded sequencesSANDEEP VISHANG DAGAR
 
Convex optimization methods
Convex optimization methodsConvex optimization methods
Convex optimization methodsDong Guo
 
Markov Chain and its Analysis
Markov Chain and its Analysis Markov Chain and its Analysis
Markov Chain and its Analysis ShreyasBirje
 
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TEST
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TESTINTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TEST
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TESTJAYDEV PATEL
 
Markov chain and its Application
Markov chain and its Application Markov chain and its Application
Markov chain and its Application Tilakpoudel2
 
matrix algebra
matrix algebramatrix algebra
matrix algebrakganu
 
EM3 mini project Laplace Transform
EM3 mini project Laplace TransformEM3 mini project Laplace Transform
EM3 mini project Laplace TransformAditi523129
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSfenil patel
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matricesStudent
 
Cauchy Eular Differential Equation
Cauchy Eular Differential EquationCauchy Eular Differential Equation
Cauchy Eular Differential EquationFahadAhmed116
 

What's hot (20)

17-markov-chains.pdf
17-markov-chains.pdf17-markov-chains.pdf
17-markov-chains.pdf
 
Lagrange's method
Lagrange's methodLagrange's method
Lagrange's method
 
Power series
Power seriesPower series
Power series
 
Laplace transform
Laplace transformLaplace transform
Laplace transform
 
Analysis sequences and bounded sequences
Analysis sequences and bounded sequencesAnalysis sequences and bounded sequences
Analysis sequences and bounded sequences
 
Ring homomorphism
Ring homomorphismRing homomorphism
Ring homomorphism
 
Convex optimization methods
Convex optimization methodsConvex optimization methods
Convex optimization methods
 
Markov Chain and its Analysis
Markov Chain and its Analysis Markov Chain and its Analysis
Markov Chain and its Analysis
 
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TEST
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TESTINTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TEST
INTEGRAL TEST, COMPARISON TEST, RATIO TEST AND ROOT TEST
 
Markov chain and its Application
Markov chain and its Application Markov chain and its Application
Markov chain and its Application
 
Markov presentation
Markov presentationMarkov presentation
Markov presentation
 
Curvature
CurvatureCurvature
Curvature
 
matrix algebra
matrix algebramatrix algebra
matrix algebra
 
Differential equations
Differential equationsDifferential equations
Differential equations
 
EM3 mini project Laplace Transform
EM3 mini project Laplace TransformEM3 mini project Laplace Transform
EM3 mini project Laplace Transform
 
ROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONSROOT OF NON-LINEAR EQUATIONS
ROOT OF NON-LINEAR EQUATIONS
 
Law of large numbers
Law of large numbersLaw of large numbers
Law of large numbers
 
systems of linear equations & matrices
systems of linear equations & matricessystems of linear equations & matrices
systems of linear equations & matrices
 
Cauchy Eular Differential Equation
Cauchy Eular Differential EquationCauchy Eular Differential Equation
Cauchy Eular Differential Equation
 
Time series Analysis
Time series AnalysisTime series Analysis
Time series Analysis
 

Viewers also liked

Viewers also liked (7)

Monte carlo
Monte carloMonte carlo
Monte carlo
 
Search Engine Marketing
Search Engine Marketing Search Engine Marketing
Search Engine Marketing
 
Markov theory
Markov theoryMarkov theory
Markov theory
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 
Monte Carlo Simulations
Monte Carlo SimulationsMonte Carlo Simulations
Monte Carlo Simulations
 
Monte carlo simulation
Monte carlo simulationMonte carlo simulation
Monte carlo simulation
 

Similar to Markov chain

Book chapter-5
Book chapter-5Book chapter-5
Book chapter-5Hung Le
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceAravind NC
 
iteration-quadratic-equations (1)
iteration-quadratic-equations (1)iteration-quadratic-equations (1)
iteration-quadratic-equations (1)Thomas Jeffs
 
12 Machine Learning Supervised Hidden Markov Chains
12 Machine Learning  Supervised Hidden Markov Chains12 Machine Learning  Supervised Hidden Markov Chains
12 Machine Learning Supervised Hidden Markov ChainsAndres Mendez-Vazquez
 
The Wishart and inverse-wishart distribution
 The Wishart and inverse-wishart distribution The Wishart and inverse-wishart distribution
The Wishart and inverse-wishart distributionPankaj Das
 
Novel analysis of transition probabilities in randomized k sat algorithm
Novel analysis of transition probabilities in randomized k sat algorithmNovel analysis of transition probabilities in randomized k sat algorithm
Novel analysis of transition probabilities in randomized k sat algorithmijfcstjournal
 
Signal Constellation, Geometric Interpretation of Signals
Signal Constellation,  Geometric Interpretation of  SignalsSignal Constellation,  Geometric Interpretation of  Signals
Signal Constellation, Geometric Interpretation of SignalsArijitDhali
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)irjes
 
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan Dash
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan DashConcepts and Problems in Quantum Mechanics, Lecture-II By Manmohan Dash
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan DashManmohan Dash
 
1.1 types of vectors (1)
1.1 types of vectors (1)1.1 types of vectors (1)
1.1 types of vectors (1)ÀŚhü Řąną
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power AnalysisGargiKhanna1
 
PART VII.3 - Quantum Electrodynamics
PART VII.3 - Quantum ElectrodynamicsPART VII.3 - Quantum Electrodynamics
PART VII.3 - Quantum ElectrodynamicsMaurice R. TREMBLAY
 

Similar to Markov chain (20)

Book chapter-5
Book chapter-5Book chapter-5
Book chapter-5
 
MC0082 –Theory of Computer Science
MC0082 –Theory of Computer ScienceMC0082 –Theory of Computer Science
MC0082 –Theory of Computer Science
 
iteration-quadratic-equations (1)
iteration-quadratic-equations (1)iteration-quadratic-equations (1)
iteration-quadratic-equations (1)
 
Probable
ProbableProbable
Probable
 
Markov chain
Markov chainMarkov chain
Markov chain
 
12 Machine Learning Supervised Hidden Markov Chains
12 Machine Learning  Supervised Hidden Markov Chains12 Machine Learning  Supervised Hidden Markov Chains
12 Machine Learning Supervised Hidden Markov Chains
 
Klt
KltKlt
Klt
 
The Wishart and inverse-wishart distribution
 The Wishart and inverse-wishart distribution The Wishart and inverse-wishart distribution
The Wishart and inverse-wishart distribution
 
Hastings 1970
Hastings 1970Hastings 1970
Hastings 1970
 
Novel analysis of transition probabilities in randomized k sat algorithm
Novel analysis of transition probabilities in randomized k sat algorithmNovel analysis of transition probabilities in randomized k sat algorithm
Novel analysis of transition probabilities in randomized k sat algorithm
 
Signal Constellation, Geometric Interpretation of Signals
Signal Constellation,  Geometric Interpretation of  SignalsSignal Constellation,  Geometric Interpretation of  Signals
Signal Constellation, Geometric Interpretation of Signals
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
Chapter0
Chapter0Chapter0
Chapter0
 
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan Dash
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan DashConcepts and Problems in Quantum Mechanics, Lecture-II By Manmohan Dash
Concepts and Problems in Quantum Mechanics, Lecture-II By Manmohan Dash
 
D0422025033
D0422025033D0422025033
D0422025033
 
1.1 types of vectors (1)
1.1 types of vectors (1)1.1 types of vectors (1)
1.1 types of vectors (1)
 
Probabilistic Power Analysis
Probabilistic Power AnalysisProbabilistic Power Analysis
Probabilistic Power Analysis
 
PART VII.3 - Quantum Electrodynamics
PART VII.3 - Quantum ElectrodynamicsPART VII.3 - Quantum Electrodynamics
PART VII.3 - Quantum Electrodynamics
 
Stochastic Processes Assignment Help
Stochastic Processes Assignment HelpStochastic Processes Assignment Help
Stochastic Processes Assignment Help
 
Signals and systems assignment help
Signals and systems assignment helpSignals and systems assignment help
Signals and systems assignment help
 

More from Luckshay Batra

Values and ethics in mathematics
Values and ethics in mathematicsValues and ethics in mathematics
Values and ethics in mathematicsLuckshay Batra
 
Motivation in Education
Motivation in EducationMotivation in Education
Motivation in EducationLuckshay Batra
 
R Programming language model test paper
R Programming language model test paperR Programming language model test paper
R Programming language model test paperLuckshay Batra
 
Mathematica model test paper
Mathematica model test paperMathematica model test paper
Mathematica model test paperLuckshay Batra
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operatorsLuckshay Batra
 
Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative methodLuckshay Batra
 
Application of laplace wave equation in music
Application of laplace wave equation in musicApplication of laplace wave equation in music
Application of laplace wave equation in musicLuckshay Batra
 

More from Luckshay Batra (12)

Values and ethics in mathematics
Values and ethics in mathematicsValues and ethics in mathematics
Values and ethics in mathematics
 
Motivation in Education
Motivation in EducationMotivation in Education
Motivation in Education
 
R Programming language model test paper
R Programming language model test paperR Programming language model test paper
R Programming language model test paper
 
Mathematica model test paper
Mathematica model test paperMathematica model test paper
Mathematica model test paper
 
Matlab-Data types and operators
Matlab-Data types and operatorsMatlab-Data types and operators
Matlab-Data types and operators
 
Black scholes model
Black scholes modelBlack scholes model
Black scholes model
 
Network flows
Network flowsNetwork flows
Network flows
 
Jacobi iterative method
Jacobi iterative methodJacobi iterative method
Jacobi iterative method
 
Sas
SasSas
Sas
 
Cyclic group in music
Cyclic group in musicCyclic group in music
Cyclic group in music
 
Big m method
Big m methodBig m method
Big m method
 
Application of laplace wave equation in music
Application of laplace wave equation in musicApplication of laplace wave equation in music
Application of laplace wave equation in music
 

Recently uploaded

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
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
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
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
 

Recently uploaded (20)

Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
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
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

Markov chain

  • 1. Linear Algebra in Markov Chains Presented By : Luckshay Batra luckybatra17@gmail.com
  • 2. Introduction Transition Matrix : A matrix in which all entries are nonnegative and all columns sum to 1. Thus, an n x n Transition matrix gives the probability of movement from any one of n states to any of the other n states. Probability Vector : A vector whose coordinates are nonnegative and sum to 1. Thus, an n-dimensional probability vector gives the chances of occurrence of each one of n events.
  • 3. Markov Chain  If p0 is a probability vector and A is a transition matrix, then the sequence, p0, p1, p2, p3, ... , where pk = (A^k)*p0 for k = 1, 2, 3, ..., is called a Markov chain.  If A*p = p for some probability vector, then p is called a steady-state vector.  A Stochastic model that describes the probabilities of transition among the states of a system.  Change of state depends probabilistically only on the current state of the system.  Independent of the past given that the present state is known.  The behavior depends on the structure of the transition matrix P.
  • 4. Problem of Television Viewers  Suppose there are two regional news shows in the local television viewing area, and we have conducted a survey of viewers to determine which channel the viewers have been watching. The first survey revealed that 40% of the viewers watched station X and 60% watched station Y. Subsequent surveys revealed that each week 15% of the X viewers switched to station Y and 5% of the Y viewers switched to station X.  We will use Transition matrices and Markov chains to make a prediction about the future television market from this information.
  • 5.  We assume that the 15%-5% switching trends will continue indefinitely.  Let pk be a two-dimensional column vector whose entries give the proportion of people who watch station X and the proportion who watch station Y, in that order, during week k. Thus, p0 = [0.4,0.6]t. From the assumptions above, we see that the proportion of people watching station X in week k = 1 will be 85% of the X viewers in week k = 0 (which is 85% of 40%, or 34%) plus 5% of the Y viewers in week k = 0 (which is 5% of 60%, or 3%) for a total of 37%: 0.85(0.4) + 0.05(0.6) = 0.37.
  • 6. Similarly, 0.15(0.4) + 0.95(0.6) = 0.63, is the proportion of people watching station Y in week k = 1. So, we have computed p1 = [0.37,0.63]t. Similarly, we could compute the sequence of vectors p2, p3, ... , but this process would be quite tedious if we continued in the manner above. Andrei Markov (1856-1922) described a much more efficient way of handling such a problem.
  • 7. First, we think of the movement of viewers as being described by the following array, which gives the weekly proportion of viewers who change from one station to another: From: The matrix A of entries in the table is called the transition matrix for this problem. Looking carefully at the definition of matrix multiplication, we see that p1=A*p0. Indeed, we see that, for k = 0, 1, 2, ..., and so on, pk+1=A*pk. Each pk is called a probability vector, and the sequence, p0, p1, p2, p3, ..., is called a Markov chain.
  • 8. Because matrix multiplication is associative, we find p2 = A*p1 = A(A*p0) = (A^2)*p0, p3 = A*p2 = A((A^2)*p0) = (A^3)*p0, and, in general, pk = (A^k)*p0, for k = 1, 2, ... Compute A^5. Then compute p5 directly from A^5 without computing p1, ... , p4.
  • 9. Suppose p is a probability vector with the property that A*p = p. If this p describes the current viewers . We can solve the equation A*p = p by rewriting it as A*p - p = 0 and factoring out p. We get the matrix equation (A - I)p = 0, where I is the 2x2 identity matrix. Using our given transition matrix, solve this matrix equation for p. From the solutions pick the one which is a probability vector (i.e., its entries must sum to 1). This vector is called the steady-state vector. The fact that p is the steady-state vector does not imply that the Markov chain will actually reach that state from p0.
  • 10. References • Statistics & Probability by Sheldon M Ross • Linear Algebra by David C Lay