Agoda·Data Scientist·Technical Phone Screen
- You have two dice: one with faces 1 through 5, the other with faces 1 through 6. You roll both repeatedly and stop as soon as either die shows a 1. What is the probability that the 5-sided die is the one that shows a 1 first? What is the expected number of rolls? Then implement a Monte Carlo simulation to verify.
“Three parts in one question, which I didn't love.”