Weather states example with three states.
| From \ To | Rainy | Sunny | Cloudy |
|---|---|---|---|
| Rainy | 0.60 | 0.20 | 0.20 |
| Sunny | 0.30 | 0.50 | 0.20 |
| Cloudy | 0.40 | 0.30 | 0.30 |
If starting in Sunny, the next distribution equals row two.
- P is row‑stochastic: for each row i, ∑j Pij = 1, and Pij ≥ 0.
- One‑step transition probability: Pij = Pr(Xt+1 = j | Xt = i).
- Distribution update: with row vector π, the next distribution is π′ = πP.
- Starting in a single state s: use unit vector es; then esP equals row s of P.
This tool focuses on one‑step behavior; multi‑step and stationary distributions are beyond scope.
Dominant next state is argmaxj P(i→j) for each row i.
Starting from es, the next distribution equals row s of P.
- Set the number of states, then confirm or edit names.
- Enter matrix P; each row should sum to one.
- Choose an initial distribution vector or a starting state.
- Click Compute one‑step to calculate π′ and P(i→j).
- Use Normalize rows to fix small row‑sum errors.
- Export results as CSV or PDF for sharing or records.
Use Normalize rows to scale each row by its current sum.
Yes. Select the single‑state mode; the next distribution is that row.
Click Import CSV and select a file with numeric entries.
This calculator covers one step. Multiply repeatedly for more steps.
Values use double precision in JavaScript and are formatted consistently.
Yes. Names and matrix persist in your browser’s storage automatically.