Agoda·Data Scientist·Technical Phone Screen
- You have two dice: one with faces 1 through 5, another with faces 1 through 6. You roll both repeatedly and stop the moment either die lands on 1. What is the probability that the 5-sided die is the one that shows 1 first?
- For the same two-dice setup, what is the expected number of rolls until the game stops?
- Write a Monte Carlo simulation to verify your answers to the dice probability problem.
“The key is figuring out what 'first' means when both could show 1 on the same roll.”