Markov Chain Playground

Build chains, run simulations, and explore real-world presets (weather, churn, economy, PageRank, random walk, S–I–R). Includes a character-level text generator.
Build a Chain
Presets
Text Chain
States
Transition Matrix (P[i→j])
Simulation
Step: 0 Current: Unique states: 0
Help: How to use - Add states, then edit the transition matrix so each row sums to 1. Use "Normalize" to fix rows automatically. - Press Play to simulate one agent moving between states by the row probabilities. - Empirical distribution (from simulation) and stationary distribution (power iteration) are shown on the right. - Click nodes in the graph to jump to that state. Hover bars for values (mobile: tap).
Transition Graph
Edge width ∝ P(i→j)
Empirical vs. Stationary Distribution
Trajectory (most recent steps)
Row Sums & Diagnostics