🎲 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.
⚙ 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