Solve long-run probabilities from two or three states. Check normalization, convergence, and matrix validity automatically. Download clean outputs for analysis, teaching, audits, and planning.
Use the responsive grid below for setup and matrix entry.
An invariant probability vector is also called a stationary distribution. It satisfies the equation πP = π, where P is the transition matrix.
The vector must also satisfy the normalization rule Σπᵢ = 1. This page solves those equations and checks iterative convergence from the chosen starting distribution.
For a two-state chain with transition matrix [[1-a, a], [b, 1-b]], the invariant distribution becomes [b/(a+b), a/(a+b)] whenever a+b is positive.
| Example | Transition Matrix | Invariant Distribution | Notes |
|---|---|---|---|
| Two-state loyalty model | [[0.80, 0.20], [0.40, 0.60]] | [0.666667, 0.333333] | State 1 keeps the larger long-run share. |
| Three-state balanced system | [[0.50, 0.25, 0.25], [0.30, 0.40, 0.30], [0.20, 0.35, 0.45]] | [0.333333, 0.333333, 0.333333] | Each column also sums to one. |
| Three-state uneven system | [[0.70, 0.20, 0.10], [0.10, 0.70, 0.20], [0.30, 0.20, 0.50]] | Approximately [0.375000, 0.437500, 0.187500] | State 2 dominates the long-run mix. |
It is the long-run probability vector that remains unchanged after multiplication by the transition matrix. In Markov chain work, it is usually called the stationary distribution.
Each row represents all possible next-state outcomes from one current state. Those outcomes must cover the full probability mass, so every row total should equal one.
Real inputs are often rounded. Auto-normalization rescales each row to a valid probability row while preserving the row’s relative proportions.
The exact solver does not need it, but the convergence plot does. The iterative path begins from your starting probabilities and shows how they move toward the stable pattern.
Yes. Reducible systems may admit multiple invariant vectors. In that case, a unique long-run distribution is not guaranteed for every starting point.
It tracks each state’s probability across repeated matrix multiplications. Flat lines near the end indicate that the iterative distribution has stabilized.
Increase iterations when convergence is slow. Lower tolerance when you need tighter numerical agreement between successive iterations and the exact stationary solution.
CSV is useful for audits, spreadsheets, and reproducible records. PDF is useful for reports, teaching notes, and stakeholder sharing.
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.