📚 Applied Finite Mathematics
⇩ Download ▾

9.1 Markov Chains

Chapter Overview

In this chapter, you will learn to:

  1. Write transition matrices for Markov Chain problems.
  2. Find the long term trend for a Regular Markov Chain.
  3. Solve and interpret Absorbing Markov Chains.

Markov Chains

We will now study stochastic processes, experiments in which the outcomes of events depend on the previous outcomes. Such a process or experiment is called a Markov Chain or Markov process. The process was first studied by a Russian mathematician named Andrei A. Markov in the early 1900s.

A small town is served by two telephone companies, Mama Bell and Papa Bell. Due to their aggressive sales tactics, each month 40% of Mama Bell customers switch to Papa Bell, that is, the other 60% stay with Mama Bell. On the other hand, 30% of the Papa Bell customers switch to Mama Bell. The above information can be expressed in a matrix which lists the probabilities of going from one state into another state. This matrix is called a transition matrix.

This matrix depict the flow of customers from mama bell to papa bell and vice versa.
Figure 9.1

The reader should observe that a transition matrix is always a square matrix because all possible states must have both rows and columns. All entries in a transition matrix are non-negative as they represent probabilities. Furthermore, since all possible outcomes are considered in the Markov process, the sum of the row entries is always 1.

There are certain Markov chains that tend to stabilize in the long run, and they are the subject of. It so happens that the transition matrix we have used in all the above examples is just such a Markov chain. The next example deals with the long term trend or steady-state situation for that matrix.

When this happens, we say that the system is in steady-state or state of equilibrium. In this situation, all row vectors are equal. If the original matrix is an n size 12{n} {} by n size 12{n} {} matrix, we get n vectors that are all the same. We call this vector a fixed probability vector or the equilibrium vector E size 12{E} {}. In the above problem, the fixed probability vector E size 12{E} {} is [1/32/3] size 12{ left [ matrix { 1/3 {} # 2/3{} } right ]} {}. Furthermore, if the equilibrium vector E size 12{E} {} is multiplied by the original matrix T size 12{T} {}, the result is the equilibrium vector E size 12{E} {}. That is,

ET=E size 12{ ital "ET"=E} {}

or,

[1/32/3][1/21/21/43/4]=[1/32/3] size 12{ left [ matrix { 1/3 {} # 2/3{} } right ] left [ matrix { 1/2 {} # 1/2 {} ## 1/4 {} # 3/4{} } right ]= left [ matrix { 1/3 {} # 2/3{} } right ]} {}

Regular Markov Chains

At the end of, we took the transition matrix T size 12{T} {} and started taking higher and higher powers of it. The matrix started to stabilize, and finally it reached its steady-state or state of equilibrium. When that happened, all the row vectors became the same, and we called one such row vector a fixed probability vector or an equilibrium vector E size 12{E} {}. Furthermore, we discovered that ET=E size 12{ ital "ET"=E} {}.

Section Overview

In this section, we wish to answer the following four questions.

  1. Does every Markov chain reach a state of equilibrium?
  2. Does the product of an equilibrium vector and its transition matrix always equal the equilibrium vector? That is, does ET=E size 12{ ital "ET"=E} {}?
  3. Can the equilibrium vector E size 12{E} {} be found without raising the matrix to higher powers?
  4. Does the long term market share distribution for a Markov chain depend on the initial market share?

We summarize as follows:

Regular Markov Chains A Markov chain is said to be a Regular Markov chain if some power of it has only positive entries.
Let T size 12{T} {} be a transition matrix for a regular Markov chain.

  1. As we take higher powers of T size 12{T} {}, Tn size 12{T rSup { size 8{n} } } {}, as n becomes large, approaches a state of equilibrium.
  2. If M size 12{M} {} is any distribution vector, and E size 12{E} {} an equilibrium vector, then MTn=E size 12{ ital "MT" rSup { size 8{n} } =E} {}.
  3. Each row of the equilibrium matrix Tn size 12{T rSup { size 8{n} } } {} is a unique equilibrium vector E size 12{E} {} such that ET=E size 12{ ital "ET"=E} {}.
  4. The equilibrium distribution vector E size 12{E} {} can be found by letting ET=E size 12{ ital "ET"=E} {}.

Absorbing Markov Chains

In this section, we will study a type of Markov chain in which when a certain state is reached, it is impossible to leave that state. Such states are called absorbing states, and a Markov Chain that has at least one such state is called an Absorbing Markov chain. Suppose you have the following transition matrix.

This matrix depicts the probability of moving from one sate to the other.
Figure 9.8

The state S2 size 12{S rSub { size 8{2} } } {} is an absorbing state, because the probability of moving from state S2 size 12{S rSub { size 8{2} } } {} to state S2 size 12{S rSub { size 8{2} } } {} is 1. Which is another way of saying that if you are in state S2 size 12{S rSub { size 8{2} } } {}, you will remain in state S2 size 12{S rSub { size 8{2} } } {}.

In fact, this is the way to identify an absorbing state. If the probability in row i and column i, pii size 12{p rSub { size 8{ ital "ii"} } } {}, is 1, then state Si size 12{S rSub { size 8{i} } } {} is an absorbing state.

We begin with an application of absorbing Markov chains to the gambler's ruin problem.

We summarize as follows:

Absorbing Markov Chains

  1. A Markov chain is an absorbing Markov chain if it has at least one absorbing state. A state i size 12{i} {} is an absorbing state if once the system reaches state i size 12{i} {}, it stays in that state; that is, pii=1 size 12{p rSub { size 8{ ital "ii"} } =1} {}.
  2. If a transition matrix T size 12{T} {} for an absorbing Markov chain is raised to higher powers, it reaches an absorbing state called the solution matrix and stays there. The i size 12{i} {}, jth size 12{j - ital "th"} {} entry of this matrix gives the probability of absorption in state j size 12{j} {} while starting in state i size 12{i} {}.
  3. Alternately, the solution matrix can be found in the following manner.
    1. Express the transition matrix in the canonical form as below.

      T = [ I n 0 A B ] size 12{T= left [ matrix { I rSub { size 8{n} } {} # 0 {} ## A {} # B{} } right ]} {}


      where In size 12{I rSub { size 8{n} } } {} is an identity matrix, and 0 is a matrix of all zeros.
    2. The fundamental matrix F=(IB)1 size 12{F= left (I - B right ) rSup { size 8{ - 1} } } {}. The fundamental matrix helps us find the number of games played before absorption.
    3. FA size 12{ ital "FA"} {} is the solution matrix, whose i size 12{i} {}, jth size 12{j - ital "th"} {} entry gives the probability of absorption in state j size 12{j} {} while starting in state i size 12{i} {}.
  4. The sum of the entries of a row of the fundamental matrix gives us the expected number of steps before absorption for the non-absorbing state associated with that row.

Adapted from Applied Finite Mathematics by Rupinder Sekhon (De Anza College), originally published by OpenStax CNX (cnx.org, collection col10613), licensed under CC BY 3.0. Changes were made. License: CC-BY-3.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.