How to use this calculator
Find a unique stationary probability vector for a supplied row-stochastic transition matrix.
- Enter Transition matrix in row order, Number of states. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Finite Markov stationary distribution explained
Use Transition matrix in row order with Number of states to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.
A numerical walkthrough
Transition matrix in row order = 0.9, 0.1, 0.2, 0.8; Number of states = 2.
- First-state stationary probability: 0.66666667
- All stationary probabilities: 0.66666667, 0.33333333
In the example, stationary flow from state 1 to 2 is pi1×0.1 and the reverse is pi2×0.2. Balancing them with pi1+pi2=1 gives pi1=2/3 and pi2=1/3.
The model behind the numbers
πP=π with sum(π)=1
Transpose the transition matrix and subtract the identity to form the invariance equations. Replace one redundant equation by the sum-to-one condition, then solve for the probability vector. The matrix can have a unique stationary vector even when periodicity prevents ordinary transition iteration from converging.
What to enter
p— Transition matrix in row order- Transition matrix in row order. Use comma-separated values in the stated order.
n— Number of states- Number of states. Enter a whole number.
Interpreting the result
A stationary vector need not be a convergence limit for a periodic chain. Reducible chains without a unique stationary solution are rejected.
Frequently asked questions
Do rows or columns sum to one?
Rows.
Does stationary mean every state has the same probability?
No, it means the distribution is invariant under one transition.
Does the solver prove convergence from every start?
No.
How do I use the Finite Markov stationary distribution calculator?
Enter Transition matrix in row order, Number of states. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Finite Markov stationary distribution?
Transition matrix in row order = 0.9, 0.1, 0.2, 0.8; Number of states = 2. First-state stationary probability: 0.66666667 All stationary probabilities: 0.66666667, 0.33333333 In the example, stationary flow from state 1 to 2 is pi1×0.1 and the reverse is pi2×0.2. Balancing them with pi1+pi2=1 gives pi1=2/3 and pi2=1/3.
Read our calculation methodology.