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
November 29, 20260
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
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 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 QuestionsSample Answer
Clarify
Fills are iid Uniform(0, 1) in units of target size. ....
Approach
For a non-negative integer random variable, . The event means the first fills sum to at most 1, which is the volume of a simplex....