Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Random walk simulator

Set steps, repetitions, upward-move probability and an absolute |S| barrier.

Share of walks reaching the barrier: —

Fill in the fields above — the result is computed on this page.

Mean final position
—
Theoretical final mean
—
Empirical final SD
—
Theoretical final SD
—
Number of walks
—

First and mean walk paths

Barrier lines show +B and −B. The main result counts reaching either one.

Selected steps

Step First walk Mean walk
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • For p = 0.5 there is no mean drift, but a single path may move far from zero.
  • P ≠ 0.5 introduces linear drift.
  • More repetitions stabilize the estimated barrier frequency.

The simulation is limited to 500,000 total steps. The empirical barrier rate depends on repetitions and seed.

How do I use this page?
  1. Set steps, number of walks and p.
  2. Choose a barrier and seed.
  3. Compare empirical mean and deviation with theory.

What this page does not do: The simulation is limited to 500,000 total steps. The empirical barrier rate depends on repetitions and seed.

Further reading

Theory — what is a random walk?

A simple random walk adds +1 with probability p or −1 with probability 1−p at each step. For p=0.5 the average final position is 0, but the spread of outcomes grows with the square root of the number of steps. The simulator lets you set the steps, repetitions, upward-move probability and an absolute stopping barrier |S|, so you can compare independent runs. This model does not predict lottery or market outcomes — it is an educational tool showing how random steps accumulate.

Frequently asked questions

Does a random walk predict prices or draws?
No. It is a simple educational model of accumulated independent steps.
What does reaching the barrier mean?
The path reached +B or −B at least once within the selected horizon.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.