Model stochastic particle motion with multidimensional steps and bias. Visualize paths, summarize displacement, and compare diffusion behavior with confidence.
| Scenario | Dimensions | Steps | Trials | Step Length | Bias Pattern | Typical Use |
|---|---|---|---|---|---|---|
| Unbiased line walk | 1D | 100 | 500 | 1.0 | Right 0.50, Left 0.50 | Diffusion along one axis |
| Planar particle motion | 2D | 250 | 1000 | 0.5 | Equal cardinal probabilities | Brownian-style surface movement |
| Biased migration | 2D | 300 | 750 | 1.0 | Right 0.40, Left 0.20, Up 0.20, Down 0.20 | External field drift studies |
| Volumetric random motion | 3D | 200 | 600 | 1.2 | Six equal directional probabilities | Particle spread in space |
A random walk updates position by adding one step vector at a time. For each step, the simulator selects a direction using the supplied probabilities and adds the corresponding signed displacement.
Position update:
xn+1 = xn + Δx,
yn+1 = yn + Δy,
zn+1 = zn + Δz
Net displacement magnitude:
r = √[(x - x0)² + (y - y0)² + (z - z0)²]
Mean squared displacement:
MSD = (1 / N) × Σ r²
Root mean squared distance:
RMS = √MSD
For an unbiased walk with constant step length ℓ, the theoretical mean squared displacement grows approximately as:
Expected unbiased MSD:
MSD ≈ nℓ²
When probabilities are unequal, drift appears because the expected step vector is no longer zero. The calculator estimates that drift magnitude from the directional probabilities you enter.
It simulates repeated random walks, then reports endpoint distance, mean squared displacement, root mean squared distance, coordinate averages, and path data for the first trial.
Single walks can look noisy. Multiple trials reduce randomness in the summary and make diffusion trends, bias effects, and expected displacement behavior easier to observe.
Mean squared displacement is the average of the squared final displacement values. In physics, it is a standard measure for diffusion, spreading, and random transport processes.
Unequal directional probabilities create drift. The walker becomes more likely to move in certain directions, shifting the average endpoint away from the starting position.
A seed initializes the random generator predictably. Using the same seed and same settings recreates the same simulated path and summary values.
Use 1D for motion on one axis, 2D for planar movement, and 3D for volumetric motion such as particle spreading through space.
Finite trial counts, bias, and randomness can shift the simulated result. As the number of trials increases, the average usually moves closer to theoretical expectations.
The first graph plots the first trial path. The second graph shows the distribution of final endpoint distances across all simulated trials.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.