A drunkard walks out of a bar at midnight. He is in 3-dimensional space of an infinite size. The probability of his stepping 1 step
forward
,
backward
,
left
,
right
,
up
or
down
is equal. Calculate the probability (to two decimal places) of his (eventually) returning to the bar.
Details and Assumptions:
Assume the bar is a point particle at the origin.
We require the probability that he will, at any point in time, return to the bar.
Do not try this at home.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Python Code:
Wait a while. Run it a few times. You usually get between 0.33 or 0.34.