Expected Number of Uniform Draws Until the Sum Exceeds One
Last updated: November 29, 2026
Quick Overview
You draw independent Uniform(0,1) numbers and stop as soon as their running sum exceeds 1. What is the expected number of draws, and how would you prove it?
Capital One
November 29, 20260
0
0 solved
You draw independent Uniform(0,1) numbers and stop as soon as their running sum exceeds 1. What is the expected number of draws, and how would you prove it?
A well-known but demanding puzzle used to test mathematical maturity in quantitative Capital One interviews. The interviewer wants a proof via the simplex volume or a renewal equation, not a recited answer, and a sanity check.
What the Interviewer Expects
- Write $E[N]=\sum_{n\ge0}P(N>n)$
- Show $P(U_1+\dots+U_n\le1)=1/n!$
- Sum the series to get $e$
- Offer a second derivation using a renewal equation
- Generalize to a threshold $t\le1$
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 expected number of draws to exceed a threshold $t$ between 0 and 1?
- What is the variance of N?
- How would you estimate e with this experiment, and how accurate would 10,000 trials be?
- What is the expected value of the overshoot sum at stopping?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
i.i.d. Uniform(0,1). . Want . Note always, so the answer is above 2....
Approach
For a positive integer random variable, . The event means the first draws sum to at most 1. The region is a simplex with volume $...
Submit Your Answer
Capital One Quantitative Researcher Interview Guide
Interview process, tips, and preparation timeline