Skip to content
← All questions

How do you find the stationary distribution of a Markov chain?

To find a stationary distribution for a Markov chain, one solves the system of linear equations given by πP=π\pi P = \pi, subject to the constraint that the probabilities in π\pi sum to 1.

Conditions

  • PP is the transition matrix of the Markov chain.
  • π\pi is a row vector of probabilities.

Reasoning, step by step

  1. Set up the equation πP=π\pi P = \pi.
  2. Expand this matrix equation into a system of scalar linear equations.
  3. Recognize that these equations are linearly dependent and provide only N−1N-1 independent constraints for NN states.
  4. Add the normalization constraint ∑πi=1\sum \pi_i = 1 as the final independent equation.
  5. Solve the resulting system of linear equations for the components of π\pi.

Example

The speaker says, "And to find such a distribution, we typically just solve this system of linear equations, pi P is equal to pi." Later, for a two-state chain, he adds the normalization condition π(a)+π(b)=1\pi(a) + \pi(b) = 1 to solve for the unique stationary vector.

Common misconceptions

  • Assuming that solving πP=π\pi P = \pi alone yields a unique solution; it always yields an underdetermined system without the normalization constraint.
  • Forgetting that π\pi must be a row vector, not a column vector, when multiplying by PP.

Watch the explanation

Connected concepts

Explore next

Related questions

Understand why

↗
Meet the concept

↗
Meet the concept

↗
Understand why

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.