Probability an Ad Bidding Agent Doubles Its Budget Before Going Broke

Last updated: November 29, 2026

Quick Overview

An automated bidder starts with 10 units of budget and each auction it wins 1 unit with probability 0.55 or loses 1 unit with probability 0.45. What is the probability it reaches 20 units before hitting 0?

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

0

0

0 solved


An automated bidder starts with 10 units of budget and each auction it wins 1 unit with probability 0.55 or loses 1 unit with probability 0.45. What is the probability it reaches 20 units before hitting 0?

This gambler's ruin framing fits Google Ads discussions about budget pacing and risk of exhaustion. The interviewer checks whether you can set up a boundary value recursion, solve it in closed form, and reason about how a small edge compounds.

What the Interviewer Expects
  • Set up the recursion P_i = p P_{i+1} + q P_{i-1} with boundaries
  • Solve with the ratio r = q/p
  • Compute about 0.88 for the given numbers
  • Contrast with the fair case i/N = 0.5
  • Discuss expected duration or sensitivity to p
Key Topics to Cover
gambler's ruin
random walks
recurrence relations
absorbing states
risk of ruin
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 expected number of auctions until the process stops?
  • What happens to the ruin probability as the upper target goes to infinity?
  • How would variable bet sizes change the model?
  • If p is estimated from data with uncertainty, how would you report the answer?
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

States are budget levels 0..N0..N with N=20N = 20, start at i=10i = 10, step up with p=0.55p = 0.55, down with q=0.45q = 0.45, absorbed at 0 and NN. Steps are independent. We want PiP_i, the probability of hitting...

Approach

First-step analysis: Pi=pPi+1+qPi−1P_i = pP_{i+1} + qP_{i-1} with P0=0P_0 = 0, PN=1P_N = 1. The characteristic equation px2−x+q=0p x^2 - x + q = 0 has roots 11 and r=q/pr = q/p, so Pi=A+BriP_i = A + B r^i. Boundaries fix the consta...


Submit Your Answer
Markdown supported