IMC Random Walk 2027: Expected Steps Solution

IMC Random Walk 2027: Expected Steps Solution

IMC Random Walk 2027: Expected Steps Solution

The IMC Trading random walk question — commonly reported by candidates as "A robot moves left or right with equal probability on a table. How many moves on average until it falls off?" — is a gambler's ruin problem with the answer E[T] = i(N − i), where the robot starts i steps from one edge of an N-step-wide table.

What This IMC Trading Random Walk Question Assesses

Random walks underpin derivatives pricing, so IMC tests whether you can solve the absorption-time problem from first principles. The question as commonly reported leaves the table width unspecified — strong candidates say so, parametrize it, and derive the general formula rather than guessing numbers.

How to Answer This IMC Trading Random Walk Question

Derive it live:

  • Step 1 — Clarify and parametrize. "I'll model the table as positions 1 to N−1 with absorbing edges at 0 and N, starting at position i." Naming the parameters shows modeling discipline.
  • Step 2 — Set up the recurrence. Let E[i] be the expected remaining moves from position i. Then E[i] = 1 + ½E[i−1] + ½E[i+1], with E[0] = E[N] = 0 — one move plus the expectation from wherever you land.
  • Step 3 — Solve. Try E[i] = i(N − i): check that 1 + ½[(i−1)(N−i+1) + (i+1)(N−i−1)] = i(N−i). The algebra confirms it — expand both sides and they match.
  • Step 4 — Interpret. Starting in the middle (i = N/2): expected moves = N²/4. A table 10 steps wide, starting centered: 25 moves on average. Note the quadratic growth — doubling the table quadruples the wait.

Example line: "Modeling it as gambler's ruin, the expected absorption time from position i is i times N minus i — so from the middle of a 10-wide table, about 25 moves."

Common Mistakes

  • Answering without parameters. Guessing a number for an unspecified table width shows you didn't notice the missing information — always parametrize first.
  • Linear intuition. Guessing the wait scales linearly with table width misses the quadratic reality — the recurrence is what corrects the intuition.
  • Forgetting the boundary conditions. The recurrence needs E[0] = E[N] = 0 to solve; without absorbing states the expectation is infinite.

Candidates commonly report variants: biased walks, two dimensions, or "what's the probability it falls off the left edge?" (that's i/N). The recurrence method handles all of them — master the setup and the variants are one step each.

Keep Reading

FAQ

Why is it quadratic, not linear? Because the walk diffuses: distance grows like √t, so covering distance N takes ~N² steps. The recurrence makes this precise.

What if the walk is biased? Then E[i] = [i − N(1−((1−p)/p)^i)/(1−((1−p)/p)^N)]/(2p−1)... the formula gets uglier, but the recurrence setup is identical — only the solution changes.

What's the probability of falling off the left side? i/N — linear in the starting position, by the optional stopping theorem. A much simpler companion result worth knowing.

Where do random walks appear in trading? Option pricing (binomial trees are random walks), inventory models, and spread dynamics — absorption-time math is everywhere in market making.

Preparing for IMC Trading's interview? Our 2027 IMC Trading Assessment BrainsFirst Games NeurOlympics Exact Questions and Answers has practice questions and answers — $79 one-time, instant download.