Markov Chain Transition Matrix Calculator

Evolve a Markov chain: the distribution after n steps, the n-step transition matrix Pⁿ and the long-run steady-state distribution.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Row i of P lists the probabilities of moving from state i to each state. xₙ = x₀Pⁿ; the steady state π satisfies πP = π.

Example

Example: with P = [[0.9, 0.1], [0.5, 0.5]] the long-run distribution is (0.83333333, 0.16666667).

Assumptions

Row-stochastic P; steady state by power iteration.

Frequently Asked Questions

Does every Markov chain have a steady state?

Every finite chain has one; it's unique when the chain is irreducible and aperiodic.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile