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
Statistics & Math
Quantitative Researcher
Capital One
November 29, 2026
Quantitative Researcher
Technical Screen
Statistics & Math
Hard

0

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
simplex volume
tail sum formula
renewal equation
uniform distribution
series
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 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 Questions
Sample Answer
Clarify

U1,U2,…U_1,U_2,\dots i.i.d. Uniform(0,1). N=min⁡{n:U1+⋯+Un>1}N=\min\{n:U_1+\dots+U_n>1\}. Want E[N]E[N]. Note N≥2N\ge2 always, so the answer is above 2....

Approach

For a positive integer random variable, E[N]=∑n=0∞P(N>n)E[N]=\sum_{n=0}^{\infty}P(N>n). The event N>nN>n means the first nn draws sum to at most 1. The region {ui≥0, ∑ui≤1}\{u_i\ge0,\ \sum u_i\le1\} is a simplex with volume $...


Submit Your Answer
Markdown supported