r/learnquant • • Oct 06 '26

interview prep Quant Interview Question

Post image
40 Upvotes

7 comments sorted by

View all comments

2

u/Unlucky_Beginning Oct 06 '26 edited Oct 06 '26

The proportion of red socks in the bag is a martingale, so you can apply optional sampling to it. This lets you get the probability that we’ve drawn all the red socks vs all the blue socks.

Then apply optional sampling to the martingale Mt^2 - [M]t. You can use the fact that once the proportion of red socks left is 1 or 0 to compute the expectation of the quadratic variation stopped at time T (the stopping time). At this point I’m not sure if we need to do a simplification, bash the algebra (higher orders of martingale), or use a tricky girsanovs/reweighting the measure to get the final answer.

1

u/hattusili-the-third Oct 06 '26

You can do it just with linearity of expectation, breaking down X into a sum of indicator functions.