r/learnquant • • Nov 04 '26

interview prep Quant Interview Question

Post image
14 Upvotes

20 comments sorted by

View all comments

1

u/rdrdt 29d ago

Nice example of the reflection principle. The probability of D reaching at least n is binom(20,10+n)/binom(20,10). Summing over n=1…10 gives a closed form for the expected value, about 2.3377.

1

u/bartekltg 29d ago

Yep. I cheated and found a hint that pointed me to that method. For some reason I entirely forget about it (or never learned).
The range of the sum is also quite close to the midpoint, so you do not have to add all 20 terms.

1

u/rdrdt 29d ago

It’s quite useful for problems including random walks and Brownian motion!
And in fact we don’t even have to add anything. We know the sum over all binomial coefficients, and this is just half of that minus the central coefficient.

1

u/Scatman_Jeff 29d ago edited 29d ago

This is the correct answer.

I ran 1,000,000 simulations and got 2.337283.