Qm
BrainteasersJane StreetCitadel

Does a random walker always come home?

A random walker starts at the origin and takes unit steps forever, each step in a direction chosen uniformly at random from the available directions.

  1. On a line (two directions), is the walker certain to return to the origin eventually?
  2. On a square grid in the plane (four directions)?
  3. In a cubic lattice in three dimensions (six directions)?

Give the answers and the idea behind them; the exact return probability in three dimensions is not required, but say roughly what it is.

Show a hint

The walker is certain to return exactly when the expected number of visits to the origin is infinite. Estimate the probability of being at the origin after 2n steps in each dimension and see whether those probabilities add up to infinity.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

Random walk on a grid, do you ever get home?Back and forth on a line, return guaranteed?Lost in three dimensions, chance of ever returningThe drunk bird, chance of never coming homeHow many times does a line walk revisit zero?
All questions →