Home▸Probability & Statistics▸Markov Chains: State Diagram & Stationary Distribution (2D)

🎲 Markov Chains: State Diagram & Stationary Distribution (2D)

2D Canvas Markov chain simulator. Watch a token hop between states along a transition-probability diagram and see the empirical visit histogram converge toward the theoretical stationary distribution.

Probability & Statistics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-markov-chains ↗ Open standalone
⚙ Under the hood

A token hops between states of a Markov chain along a 2D transition-probability diagram, with presets for weather, PageRank, Gambler's Ruin and Hardy-Weinberg plus an adjustable random N-state chain. A live histogram of visited states converges toward the theoretical stationary distribution computed by power iteration.

markov chainprobabilitystochastic processstationary distributionstate diagramrandom walk

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)