The dangers of pubs being on the other side of a ravine from your house

You're stumbling home after the pub across a long bridge (between the two lines) over a ravine. It's dark and the bridge has no barriers. What's the chance you'll fall into the ravine?

Your browser does not support the canvas tag.

Many random walks across a narrow bridge...

Each new, fading horizontal line is another random walk from left to right, with an equal chance of each step going in either direction. The further across the bridge these steps go, the more likely they'll cross the lines and hurl the poor drunken walker into the rapids below.

Click on the viz and press any key to reset.

As many more drunken walkers attempt the bridge (presumably it's last ordeers), the percentages at the bottom show what chance there is of them plummeting. It becomes consistently higher - and the percentages all settle on a stable value. The cumulative distributions are also shown - how many people end up at which position, as more cross. The shown distributions assume they can do a Wile E. Coyote and head right out over the ravine - the same number of people get to each point along the bridge, but the distribution spreads out.

Why?

Just to make a really basic point that, for example, some climate 'skeptics' seem to make a lot of fuss about: an individual's walk across the bridge is uncertain, true. But uncertainty, if you have enough data, can produce completely bomb-proof predictability. In this case, we could tell the drunkards they're about 60% likely to plummet to their deaths before reaching the other side. They might want to consider going to a different pub. Galton had a cool thing to say about this predictability:

"I know of scarcely anything so apt to impress the imagination as the wonderful form of cosmic order expressed by the “Law of Frequency of Error”. The law would have been personified by the Greeks and deified, if they had known of it. It reigns with serenity and in complete self-effacement, amidst the wildest confusion. The huger the mob, and the greater the apparent anarchy, the more perfect is its sway. It is the supreme law of Unreason. Whenever a large sample of chaotic elements are taken in hand and marshalled in the order of their magnitude, an unsuspected and most beautiful form of regularity proves to have been latent all along."

Sir Francis Galton on the normal distribution.

Source code: randomwalk

Built with Processing and Processing.js