Stationary distribution of a Markov chain

In summary, a stationary distribution is a probability distribution that remains unchanged over time in a Markov chain and can be calculated by finding the eigenvector corresponding to the eigenvalue of 1 or solving a system of linear equations. It is important because it provides insight into the long-term behavior of a Markov chain and can have multiple distributions. The initial state of a Markov chain does not affect the stationary distribution, but it may impact how quickly the system reaches it.
  • #1
Gregg
459
0

Homework Statement



find the stationary distribtion of ##\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)##

Homework Equations



##\pi S = \pi ##

The Attempt at a Solution

So I think the definition is this ##\left(
\begin{array}{ccccc}
\pi _1 & \pi _2 & \pi _3 & \pi _4 & \pi _5
\end{array}
\right)\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)= \left(
\begin{array}{c}
\pi _1 \\
\pi _2 \\
\pi _3 \\
\text{}_{\pi _4} \\
\pi _5
\end{array}
\right)##

I get simulataneous equations... (I've just realized I was doing matrix multiplication the wrong way round)

##\frac{\pi_1}{2} + \frac{\pi_2}{3} = \pi_1 ##
##\frac{\pi_1}{2} + \frac{2\pi_2}{3} = \pi_2 ##
##\frac{\pi_3}{3} = \pi_3 ##
##\pi_5 = \pi_4 ##
##\pi_4 = \pi_5 ##

and with the extra condition

## \sum_i \pi_i = 1## *

This reduces to 3 equations with 4 unknowns.

## \pi_1/2=\pi_2/3 ##
## \pi_3=0##
##\pi_4=\pi_5##

and using * :

##\pi_1 +3\pi_1/2+2\pi_5 = 1##

This gives me

##\vec{\pi}=\left(
\begin{array}{c}
\pi _1 \\
3\frac{\pi _1}{2} \\
0 \\
\frac{1}{2}-5\frac{\pi _1}{2} \\
\frac{1}{2}-5\frac{\pi _1}{2}
\end{array}
\right)##

I am unsure how to find ##\pi_1####0 <= \pi_1 <=2 ## all seem to work fine. Is this the stationary distribution, an interval of allowed distributions? I thought they were unique.
 
Last edited:
Physics news on Phys.org
  • #2
Gregg said:

Homework Statement



find the stationary distribtion of ##\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)##

Homework Equations



##\pi S = \pi ##

The Attempt at a Solution

So I think the definition is this ##\left(
\begin{array}{ccccc}
\pi _1 & \pi _2 & \pi _3 & \pi _4 & \pi _5
\end{array}
\right)\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)= \left(
\begin{array}{c}
\pi _1 \\
\pi _2 \\
\pi _3 \\
\text{}_{\pi _4} \\
\pi _5
\end{array}
\right)##

I get simulataneous equations... (I've just realized I was doing matrix multiplication the wrong way round)

##\frac{\pi_1}{2} + \frac{\pi_2}{3} = \pi_1 ##
##\frac{\pi_1}{2} + \frac{2\pi_2}{3} = \pi_2 ##
##\frac{\pi_3}{3} = \pi_3 ##
##\pi_5 = \pi_4 ##
##\pi_4 = \pi_5 ##

and with the extra condition

## \sum_i \pi_i = 1## *

This reduces to 3 equations with 4 unknowns.

## \pi_1/2=\pi_2/3 ##
The first equation above reduces to ##\frac{\pi_1}{2}= \frac{\pi_2}{3}##. The second equation reduces to ##\frac{\pi_1}{2}= \frac{2\pi_2}{3}##
Those two together give ##\pi_1=\pi_2= 0##.

## \pi_3=0##
##\pi_4=\pi_5##

and using * :

##\pi_1 +3\pi_1/2+2\pi_5 = 1##
And then this becomes ##2\pi_5= 1## so ##\pi_4= \pi_5= \frac{1}{2}##

This gives me

##\vec{\pi}=\left(
\begin{array}{c}
\pi _1 \\
3\frac{\pi _1}{2} \\
0 \\
\frac{1}{2}-5\frac{\pi _1}{2} \\
\frac{1}{2}-5\frac{\pi _1}{2}
\end{array}
\right)##

I am unsure how to find ##\pi_1####0 <= \pi_1 <=2 ## all seem to work fine. Is this the stationary distribution, an interval of allowed distributions? I thought they were unique.
 
  • #3
Gregg said:

Homework Statement



find the stationary distribtion of ##\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)##


Homework Equations



##\pi S = \pi ##

The Attempt at a Solution




So I think the definition is this


##\left(
\begin{array}{ccccc}
\pi _1 & \pi _2 & \pi _3 & \pi _4 & \pi _5
\end{array}
\right)\left(
\begin{array}{ccccc}
\frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 \\
\frac{1}{3} & \frac{2}{3} & 0 & 0 & 0 \\
0 & \frac{1}{3} & \frac{2}{3} & 0 & 0 \\
0 & 0 & 0 & 0 & 1 \\
0 & 0 & 0 & 1 & 0
\end{array}
\right)= \left(
\begin{array}{c}
\pi _1 \\
\pi _2 \\
\pi _3 \\
\text{}_{\pi _4} \\
\pi _5
\end{array}
\right)##

I get simulataneous equations... (I've just realized I was doing matrix multiplication the wrong way round)

##\frac{\pi_1}{2} + \frac{\pi_2}{3} = \pi_1 ##
##\frac{\pi_1}{2} + \frac{2\pi_2}{3} = \pi_2 ##
##\frac{\pi_3}{3} = \pi_3 ##
##\pi_5 = \pi_4 ##
##\pi_4 = \pi_5 ##

and with the extra condition

## \sum_i \pi_i = 1## *

This reduces to 3 equations with 4 unknowns.

## \pi_1/2=\pi_2/3 ##
## \pi_3=0##
##\pi_4=\pi_5##

and using * :

##\pi_1 +3\pi_1/2+2\pi_5 = 1##

This gives me

##\vec{\pi}=\left(
\begin{array}{c}
\pi _1 \\
3\frac{\pi _1}{2} \\
0 \\
\frac{1}{2}-5\frac{\pi _1}{2} \\
\frac{1}{2}-5\frac{\pi _1}{2}
\end{array}
\right)##

I am unsure how to find ##\pi_1##


##0 <= \pi_1 <=2 ## all seem to work fine. Is this the stationary distribution, an interval of allowed distributions? I thought they were unique.

In this problem there is not a uniquely-defined stationary distribution. You can see why, by looking at the one-step transition matrix S. Note that if we start in state 4 or 5 we remain forever in those states, and we flip-flop back and forth between them. If we start in state 3, in the first step we either stay in state 3 or move to state 2. If we are in states 1 or 2 we stay there forever. However, from states 1,2 or 3 we cannot reach state 4 and 5, and vice-versa. Effectively, the state-space splits into two non-communicating parts, and the different steady-state vectors correspond to those two parts. For example, one distribution would be [itex]\pi_1 = \pi_2 = \pi_3 = 0, \pi_4 = \pi_5 = 1/2,[/itex] corresponding to starting in states 4 or 5 and then spending half the time in each over the long run. Another distribution would have [itex] \pi_1, \pi_2 > 0, \pi_3 = \pi_4 = \pi_5 = 0, [/itex] corresponding to starting in state 1,2 or 3. Note that state 3 is transient, so if we start in state 3 we leave it eventually with probability 1; that is why [itex]\pi_3 = 0.[/itex] Note that we can make these conclusions without doing any calculations!

The only remaining issue is to get [itex] \pi_1, \pi_2[/itex] when we start from states 1, 2 or 3. This would be done by solving the simple 2-state case, using just rows 1-2 and columns 1-2 of S. As you note, these give
[itex] \pi_1 = (1/2)\pi_1 + (1/3)\pi_2 \Longrightarrow \pi_2 = (3/2)\pi_1.[/itex] Since [itex] \pi_1 + \pi_2 = 1,[/itex] we get [itex] \pi_1 = 2/5, \; \pi_2 = 3/5. [/itex]

The two "basic" steady-state distributions are [itex]\Pi_1 = (2/5,3/5,0,0,0) \text{ and } \Pi_2 = (0,0,0,1/2,1/2).[/itex] The most general steady-state distribution has the form
[itex] \Pi = a \Pi_1 + (1-a) \Pi_2, [/itex] where [itex] a \in [0,1] [/itex] is the probability we start in states 1, 2 or 3 (and 1-a = probability we start in states 4 or 5).

RGV
 
Last edited:

Related to Stationary distribution of a Markov chain

1. What is a stationary distribution?

A stationary distribution is a probability distribution that remains unchanged over time in a Markov chain. In other words, it is an equilibrium distribution that represents the long-term behavior of the system.

2. How is the stationary distribution calculated?

The stationary distribution can be calculated by finding the eigenvector corresponding to the eigenvalue of 1 for the transition matrix of the Markov chain. Alternatively, it can also be calculated by solving a system of linear equations using the detailed balance equations.

3. Why is the stationary distribution important?

The stationary distribution is important because it provides insight into the long-term behavior of a Markov chain. It can help predict the probability of being in a certain state after many iterations and is useful in applications such as modeling complex systems and predicting future outcomes.

4. Can a Markov chain have more than one stationary distribution?

Yes, a Markov chain can have multiple stationary distributions. However, only one of these distributions will be reached in the long run, depending on the initial state of the system. In some cases, a Markov chain may not have a stationary distribution at all.

5. How does the initial state of a Markov chain affect the stationary distribution?

The initial state of a Markov chain does not affect the stationary distribution. The stationary distribution remains the same regardless of the starting state. However, the initial state may impact how quickly the system reaches the stationary distribution.

Similar threads

  • Calculus and Beyond Homework Help
Replies
6
Views
352
  • Calculus and Beyond Homework Help
Replies
3
Views
461
  • Calculus and Beyond Homework Help
Replies
1
Views
573
  • Calculus and Beyond Homework Help
Replies
6
Views
574
  • Calculus and Beyond Homework Help
Replies
3
Views
917
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
527
  • Linear and Abstract Algebra
Replies
28
Views
3K
  • Calculus and Beyond Homework Help
Replies
5
Views
965
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
Back
Top