Simulate and visualize random walks in 1D, 2D, and 3D
A random walk is a mathematical model describing a path consisting of successive random steps. Each step's direction (and sometimes length) is determined randomly.
Applications:
Movement along a line: at each step, move either left (-1) or right (+1) with equal probability.
Expected distance from origin: √n where n is the number of steps
Use case: Simple gambling scenarios, one-dimensional diffusion
Movement on a plane: at each step, move in a random direction (up, down, left, right, or any angle).
Expected distance from origin: √n
Use case: Particle diffusion, random search patterns
Movement in 3D space: at each step, move in a random direction in three dimensions.
Expected distance from origin: √n
Use case: Molecular motion in liquids/gases, 3D search algorithms
A walk where certain directions are more likely than others. The bias parameter controls the strength of the directional preference.
Use case: Drift in physical systems, biased search algorithms
A random walk where step lengths follow a heavy-tailed probability distribution. Occasional very long steps allow for efficient exploration.
Use case: Animal foraging, optimization algorithms, financial modeling
Continuous random walk where steps are drawn from a Gaussian distribution. Models thermal motion of particles.
Use case: Financial mathematics (stock prices), physics (particle motion)