Home / Methods / Processes / Markov chain
Markov chain
When a system moves between states with certain probabilities — a customer staying or leaving, equipment working or under repair, a habit holding or breaking, a loan current or in default.
What you need
- transition matrix, rows separated by ;
- how many steps ahead to look (default 0)
- starting state number, from zero (default 0)
What it calculates
- long-run share of time the system spends in state 1 (0…1)
- long-run share of time the system spends in state 2 (0…1)
- long-run share of time the system spends in state 3 (0…1)
- long-run share of time the system spends in state 4 (0…1)
- long-run share of time the system spends in state 5 (0…1)
- long-run share of time the system spends in state 6 (0…1)
- how many steps it takes for the distribution across states to settle down, steps
- whether the transition matrix is valid — every row must sum to 100% (1 — yes, 0 — no)
- how unpredictable the long-run state distribution is (bits; 0 means fully certain), bits
Examples
A customer: stays with 0.9, comes back with 0.3
| long-run share of time the system spends in state 1 (0…1) | 0.75 |
| long-run share of time the system spends in state 2 (0…1) | 0.25 |
| how many steps it takes for the distribution across states to settle down | 52 steps |
| whether the transition matrix is valid — every row must sum to 100% (1 — yes, 0 — no) | 1 |
Loans: current, up to 30 days late, over 30 days late — where the book settles
| long-run share of time the system spends in state 1 (0…1) | 0.4615 |
| long-run share of time the system spends in state 2 (0…1) | 0.3846 |
| long-run share of time the system spends in state 3 (0…1) | 0.1538 |
| how unpredictable the long-run state distribution is (bits; 0 means fully certain) | 1.4605 bits |
| whether the transition matrix is valid — every row must sum to 100% (1 — yes, 0 — no) | 1 |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
Assumes the transition probability depends ONLY on the current state and never changes over time. If history or seasonality actually matters, the model is lying to you.
Typical mistakes
- Rows of the transition matrix must sum to 1 — otherwise the result is meaningless.
- Assuming the past does not matter when behaviour depends on history.