Compute expected coin flips to meet on octagon

Quick Overview

Compute expected coin flips to meet on octagon evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpretation in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

Compute expected coin flips to meet on octagon

Company: Optiver

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

Two independent particles start at opposite vertices (four edges apart) of a regular octagon. At each time step, flip one fair coin for each particle: heads moves one step clockwise, tails one step counterclockwise. What is the expected total number of coin flips required until the two particles occupy the same vertex?

Quick Answer: Compute expected coin flips to meet on octagon evaluates statistical assumptions, formulas, estimation strategy, uncertainty, edge cases, and interpretation in a realistic interview setting. A strong answer states assumptions, handles edge cases, explains trade-offs, and shows how to validate the result clearly.

|Home/Statistics & Math/Optiver
Optiver logo
Optiver
Jul 17, 2025, 12:00 AM
mediumData ScientistTechnical ScreenStatistics & Math
4
0

Compute expected coin flips to meet on octagon

Meeting Time on a Random Walk Around an Octagon

Problem

Two independent particles start at opposite vertices (four edges apart) of a regular octagon. At each discrete time step, each particle flips a fair coin: heads moves one step clockwise; tails moves one step counterclockwise. Two coins are flipped per time step (one for each particle).

What is the expected total number of coin flips required until the two particles occupy the same vertex?

Clarifying Questions to Ask Guidance

  • Clarify the random variables, distributional assumptions, independence assumptions, and desired output.
  • Show enough derivation for the interviewer to follow the reasoning.
  • Explain how you would validate the result with simulation or sensitivity checks.

What a Strong Answer Covers Guidance

  • A correct setup with definitions, formulas, and boundary conditions.
  • A step-by-step derivation or estimation plan.
  • Interpretation of the result, including uncertainty and practical limitations.
  • Checks for assumptions, edge cases, and numerical stability.

Follow-up Questions Guidance

  • How would the result change if the assumptions were relaxed?
  • Can you verify the answer with a simulation?
  • What is the most likely source of estimation error?
Loading comments...