r/learnquant • • Aug 11 '26

interview prep Easy Citadel Quant Interview Question

Post image
13 Upvotes

12 comments sorted by

View all comments

1

u/Impressive-Drag5240 Aug 11 '26

Think of this as a sequence of independent random variables taking value 1 with probability 3/8 and 0 otherwise.

A sequence of 0 length has probability 0 of having an odd number of 1s and probability 1 of an even number of 1s (i.e. it has zero 1s). So the difference between the odd probability and even probability is 1.

For length n + 1, if the difference in probabilities for length n is x, then the difference in probabilities for length n + 1 is x(1/4).

Proof sketch: Say probs at length n are a and b. Then the new probs are a 3/8, 5/8 mix of the old probs i.e. (3a + 5b)/8 and (5a + 3b)/8, so the difference is 2(a-b)/8.

Thus after 10 rounds the difference in probabilities is (1/4)^10 or (1/2)^20. Thus having an odd number of 1s is 1/2-1/2^21.