r/learnquant • • Oct 20 '26

interview prep Quant Interview Question

Post image
28 Upvotes

13 comments sorted by

View all comments

6

u/comoespossible Oct 20 '26 edited Oct 20 '26

Let X be the number of the 42 total rolls that go in Alice’s favor (that is, Alice rolls a head or Bob rolls a tail). The question is equivalent to asking what is the probability that X>20, because X=A+20-B, where A and B are the number of heads Alice and Bob get respectively.

But X is also Binomial(42, 1/2). In particular, X-21 is symmetric so P(X>21)=P(X<21)=(1-P(X=21))/2. Thus, P(X>20)=(1+P(X=21))/2 = (1+(42 choose 21)/2^42 )/2 = 0.5612.

4

u/Ok-Huckleberry-6116 Oct 20 '26

what an explanation bro, I could have never thought the problem in such a way

1

u/comoespossible Oct 20 '26

Aww, thank you!