Expected Number of Random Fills to Exceed a Target Size

Last updated: November 29, 2026

Quick Overview

An order is filled in pieces, and each fill is an independent Uniform(0, 1) fraction of the target size. What is the expected number of fills until the cumulative filled amount exceeds the target, and what is the expected total filled at that point?

Akuna Capital
Statistics & Math
Quantitative Researcher
Akuna Capital
November 29, 2026
Quantitative Researcher
Onsite
Statistics & Math
Hard

0

0

0 solved


An order is filled in pieces, and each fill is an independent Uniform(0, 1) fraction of the target size. What is the expected number of fills until the cumulative filled amount exceeds the target, and what is the expected total filled at that point?

This classic result is a favorite in Akuna Capital's quant onsites because it rewards a clean tail-sum argument over brute force. The interviewer checks that you find P(N > n) as a simplex volume, sum to e, then use Wald's identity for the follow-up.

What the Interviewer Expects
  • Write E[N] as the sum of P(N > n)
  • Show P(U1 + ... + Un <= 1) = 1/n!
  • Conclude E[N] = e
  • Use Wald's identity for the expected sum (e/2)
  • Sanity check with small cases
Key Topics to Cover
expected value
geometric probability
Wald's identity
simplex volume
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 distribution of N, for example P(N = 2)?
  • What is E[N] if the target is t < 1 instead of 1?
  • What is the expected overshoot beyond the target?
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

Fills U1,U2,…U_1, U_2, \ldots are iid Uniform(0, 1) in units of target size. N=min⁡{n:U1+⋯+Un>1}N = \min\{n : U_1 + \cdots + U_n > 1\}....

Approach

For a non-negative integer random variable, E[N]=∑n≥0P(N>n)E[N] = \sum_{n \ge 0} P(N > n). The event N>nN > n means the first nn fills sum to at most 1, which is the volume of a simplex....


Submit Your Answer
Markdown supported

Related Questions