fun.sys / free time

THE DRUNK WHO GETS LOST IN 3D

A walker steps randomly along a grid. Will he ever stumble back to where he started? In a line, yes. On a plane, yes. In a room, probably not. (Pólya, 1921: "a drunk man will find his way home, but a drunk bird may get lost forever.")
Ten walkers from the white dot; a walker turns red the moment it steps back on the start. (1D shows steps as a time axis; 3D is drawn isometric, so crossings are illusions.)
spacewalkersbeen hometheory, ∞ steps
1D line100%
2D plane100% (very slowly)
3D room34.05%

Why: after n steps a walker is roughly √n away, so it spends its time inside a region holding about nd/2 grid points, and the chance of being exactly on the origin at step n is about n−d/2. Add that over all n: for d = 1 and 2 the sum diverges (a return is certain; in 2D it is so slow that after a billion steps roughly 1 walker in 7 still hasn't), for d = 3 it converges, and the walker escapes with probability 1 − 0.3405 = 0.6595. The chart's blue and green curves keep climbing toward 100%; the pink one flattens near 34%.