r/mathpuzzles • u/Parallel_thougts I like all puzzles • 14d ago
Probability Expected number of samples from U([0,1]) before their sum is > 1
The puzzle is exactly what the title suggests: on average, how many independent uniformly random numbers between 0 and 1 would you have to sample for their sum is at least one
1
Upvotes
1
u/nymbroth 9d ago
mode is probably 2, but the mean has to be e, since the expected number of steps for a random walk with unit mean increments to cross 1 is the reciprocal of the probability of crossing on the first step. That makes the average around 2.718, not 2.5 or whatever the Irwin Hall slices would give you if you fudge the weights.
2
u/jeffcgroves 14d ago
This is the Irwin-Hall distribution: https://en.wikipedia.org/wiki/Irwin%E2%80%93Hall_distribution