Why this stochastic process visualizer?
- Compare random walk diffusion, bias, and boundary conditions visually.
- Build Markov chains from a transition matrix and see probability evolution.
- Estimate stationary behavior (power iteration) and try absorbing-chain analysis when applicable.
- Copy a settings-only URL and download results (JSON/CSV/PNG).
How to use (3 steps)
- Choose a mode: Random Walk or Markov Chain.
- Adjust settings (steps, paths, or transition matrix).
- Run, then download or copy a settings-only URL.
Visualize
Random walk & Markov chain
Two lightweight modes: random-walk trajectories/MSD and Markov probability evolution/graphs.
For 1D, this becomes p(right). For 2D, it biases the direction softly.
Advanced
Seeded mode is for reproducible demos/tests only (not secure).
More presets
Paste as text
Advanced
Visualization
Trajectories
MSD
Tip: drag nodes to rearrange the state graph.
Distribution
Probability table (sample)
Details
Notes
These visualizations help build intuition. They do not guarantee prediction accuracy or cryptographic security.
Random walk and Markov chain workflow
Use this visualizer to compare one-dimensional random walks, finite-state Markov chains, transition matrices, and stationary behavior with a reproducible seed.
How it works
Random-walk mode simulates step paths from the chosen probability and seed. Markov-chain mode advances a state vector through the transition matrix, then shows how mass moves over time.
When to use
Use it to teach stochastic processes, test a transition matrix, explain absorbing states, or compare how quickly different chains approach their long-run distribution.
Common mistakes to avoid
- Entering transition rows that do not sum to 1.
- Expecting every chain to converge to one stable distribution.
- Changing the seed while comparing probability settings.
- Reading one simulated path as the expected behavior of the whole process.
Review workflow
Choose the model type, validate the probability inputs, run with a fixed seed, then compare the path plot, state probabilities, and stationary estimate before sharing conclusions.
See also
Frequently asked questions
What is a random walk?
What is a Markov chain?
Does a stationary distribution always converge?
Is my input uploaded?
What should I check before running a Markov chain?
Make sure every transition row is non-negative and sums to 1. Otherwise the state probabilities will not describe a valid chain.
Why does the starting state matter?
The starting state or distribution controls the early steps. A well-behaved chain may converge later, but short horizons can still depend heavily on the start.
How to read the visualizer
Model type first
Random walks highlight sample paths and spread over repeated steps. Markov chains highlight probability mass moving between named states.
Matrix validation
For a Markov chain, each row is one current state and each cell is the probability of moving to the next state. Rows should sum to 1 after rounding.
Convergence checks
Absorbing, reducible, or periodic chains may not behave like a simple converging example. Compare several horizons before describing long-run behavior.
When to rerun
Rerun with the same seed when checking probability changes. Change the seed only when you want to illustrate simulation variability.