Skip to content

How many uniforms until the sum passes one

Question

Keep drawing independent uniform random numbers on [0,1][0,1] and adding them up, stopping as soon as the running sum is greater than 11. On average, how many numbers do you draw?

Short answer

e≈2.718e\approx2.718. The first nn draws sum to at most 11 with probability 1n!\tfrac{1}{n!} (volume of a simplex), so P(N>n)=1n!P(N>n)=\tfrac1{n!} and E[N]=∑n≥01n!=eE[N]=\sum_{n\ge0}\tfrac1{n!}=e.

Adapted from Wilmott, Frequently Asked Questions in Quantitative Finance, ch. 10 brainteaser 'Sums of uniform random variables', p.351; question and answer rewritten by SelfMadeQuant.com.

See the hint and the full worked solution in the question bank (free account).

Open the worked solution

Lessons behind this question

Start with a free lesson: Expectation, Variance and Covariance is part of a free topic. Create a free account, no card needed, to read it in full with worked solutions.

Read it free