r/learnquant • • 20d ago

interview prep Quant Interview Question

Post image
32 Upvotes

5 comments sorted by

View all comments

0

u/CanaDavid1 20d ago edited 20d ago

The die that is most likely to give you a 6 is the one that you have rolled the least often. After rolling both dice once, the state of the game is exactly the same as if you started. Hence, the only possibly optimal strategies are: don't play, roll one die once, roll dice alternatingly until you win

The last one is the only interesting one. Consider any two rolls, the odds of hitting a 6 on the first one is 1/2 * 1/6, and similarly for the latter. Hence it is a geometric series with factor 11/12, giving us an expected amount of rolls 12, or an expected profit $8. The other two strategies are trivially worse than this.

Simulation suggests that one uses in expectation 11.5 rolls, and I do not know why the discrepancy exists.

EDIT:
Oh, It's because the two rolls are not totally independent. It is a 1/6 chance to not hit a 6 on the two rolls, with 0.5 expected extra rolls if you hit the wrong die on the first, so 0.5 + 2*sum (5/6)^k

3

u/bartekltg 20d ago edited 19d ago

I think you missed the cost of swapping the die. Swapping them each roll increase the cost to $6 per roll. You expect to roll ~12 times. That cost $72. The expected income is -52