Analyze Markov chains with clean validated inputs. See limiting distributions, convergence paths, and consistency checks. Make faster long-run decisions using exports, graphs, and examples.
Use a transition matrix with rows representing the current state and columns representing the next state. The calculator supports 2 to 6 states.
This sample shows a 3-state Markov chain. The stationary distribution solves πP = π with probabilities summing to 1.
| Current State | To S1 | To S2 | To S3 | Row Total | Stationary Probability |
|---|---|---|---|---|---|
| S1 | 0.70 | 0.20 | 0.10 | 1.00 | 0.405405 |
| S2 | 0.25 | 0.50 | 0.25 | 1.00 | 0.324324 |
| S3 | 0.15 | 0.30 | 0.55 | 1.00 | 0.270270 |
The stationary or steady state probability vector is the long-run distribution of a Markov chain. It satisfies two conditions.
1. πP = π
2. π1 + π2 + ... + πn = 1
3. P is the transition matrix, and π contains the state probabilities.
This calculator uses two ideas:
It is the long-run probability of being in each state after many transitions. When a chain stabilizes, these probabilities stop changing even after more matrix multiplications.
Yes. Each row represents all possible next-state outcomes from one current state, so the probabilities must total 1. This calculator can normalize rows automatically when enabled.
The chart shows how state probabilities move over iterations from the initial distribution. It helps you see whether the chain settles smoothly, slowly, or with visible oscillation.
Tolerance sets how close the step distribution must get to the stationary distribution before the calculator marks the chain as effectively close. Smaller values require tighter agreement.
The stationary solution may still exist, but the displayed iteration limit may be too low, or the chain may converge very slowly. Increase the maximum iterations and review the transition structure.
Yes. Absorbing states can be entered directly in the transition matrix. The results will reflect their long-run effect, including cases where one state eventually dominates.
The starting probabilities should total 1. Automatic normalization is useful when values are proportion-like weights rather than exact probabilities, preventing minor input mistakes from blocking calculation.
Interpret it with care. Some chains have multiple stationary patterns or unusual dynamics. The residual error, row checks, and convergence plot help you judge whether the result is practically meaningful.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.