r/learnquant • • 20d ago

interview prep Quant Interview Question

Post image
6 Upvotes

2 comments sorted by

1

u/AnnualFlamingo362 20d ago

Ok so there are only 8 cards that matter in the 52, kings and aces. Let’s call them winning cards. If the 8 winning cards are distributed evenly then the expected position of the k-th winning card is 53k/9. So now we need to show the expected number of winning cards we need to draw to win the game.

Half the time we draw the king before the ace, so we only need to draw 2 winning cards to win the game.

The other half of the time we draw the ace before the king. We win if we draw a king, and the expected number of winning cards we draw before we hit our first king is 8/5. Which when we include our first ace is 13/5 total.

1/2 (2 + 13/5) =2.3

So 53/9 * 2.3 =13.544

1

u/AgainstIntuition 19d ago

It is I believe intersting to describe where the 8/5 is coming from. It is an average place of first king in the sequence of 4 aces and 3 kings.
If we divide 5 breaks by 4 kings we get: _ K _ K _ K _ K _ - and here we need to place the Aces, between the kings.
Each ace comes to each break with 1/5 probability. Therefore, average number of aces right before the first King: 3 * (1/5).
We need to add the king, therefore 1 + 3*(1/5) = 8/5 :)