Probability a Biased Bettor Reaches Five Dollars Before Going Broke

Last updated: November 29, 2026

Quick Overview

A player starts with $2 and repeatedly bets $1 on a game they win with probability 0.6. They stop when they reach $5 or $0. What is the probability they reach $5, and how long does the game last on average?

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Medium

0

0

0 solved


A player starts with $2 and repeatedly bets $1 on a game they win with probability 0.6. They stop when they reach $5 or $0. What is the probability they reach $5, and how long does the game last on average?

Gambler's ruin shows up in Meta onsite statistics rounds because it tests recursion on a random walk and the ability to solve a boundary value problem cleanly. Interviewers often follow up with expected duration or a fair coin version to check understanding of the boundary conditions.

What the Interviewer Expects
  • Set up $P_i = p P_{i+1} + q P_{i-1}$ with $P_0 = 0$, $P_N = 1$
  • Solve with ratio $r = q/p$
  • Get $135/211 \approx 0.640$
  • Contrast with the fair game where $P_i = i/N$
  • Compute or describe the expected duration
Key Topics to Cover
Gambler's ruin
Random walks
Difference equations
Absorbing Markov chains
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What is the probability with a fair coin?
  • What is the expected number of bets until the game ends?
  • What happens as the target goes to infinity with p > 1/2?
  • How would you verify by simulation?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Bankroll moves up 1 with probability p=0.6p = 0.6 and down 1 with q=0.4q = 0.4. Start i=2i = 2, absorbing barriers at 0 and N=5N = 5. Let PiP_i be the probability of hitting 5 before 0 from ii....

Approach

First-step analysis gives a linear recurrence Pi=pPi+1+qPi−1P_i = p P_{i+1} + q P_{i-1}. Rearranging, Pi+1−Pi=r(Pi−Pi−1)P_{i+1} - P_i = r (P_i - P_{i-1}) with r=q/pr = q/p, so the increments form a geometric sequence. Summing them ...


Submit Your Answer
Markdown supported