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
November 29, 20260
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
Bankroll moves up 1 with probability and down 1 with . Start , absorbing barriers at 0 and . Let be the probability of hitting 5 before 0 from ....
Approach
First-step analysis gives a linear recurrence . Rearranging, with , so the increments form a geometric sequence. Summing them ...