Three parts in one question, which I didn't love.
First, solve the probability analytically by conditioning on the first roll: compute the probability that the 5-sided die shows 1 while the 6-sided die does not, and divide by the total probability that at least one die shows 1. Then, for the expected number of rolls, recognize that the number of rolls until either die shows a 1 follows a geometric distribution with success probability equal to the probability of at least one 1 on a single roll. Finally, implement a Monte Carlo simulation to verify both results, ensuring the simulation runs enough trials for accuracy.
Pro tip: When explaining the expected number of rolls, explicitly state that the stopping condition is a Bernoulli trial with constant success probability, so the expectation is 1/p. This shows you understand the geometric distribution and can communicate it clearly.
Calculate the probability that at least one die shows a 1 on a single roll, and the probability that the 5-sided die shows 1 while the 6-sided die does not. These are the building blocks for both the probability and expected rolls.
Use conditional probability: P(5-sided wins) = P(5-sided shows 1 and 6-sided does not) / P(at least one shows 1). Simplify the fraction to get the exact probability.
Since each roll is independent and the probability of stopping on any roll is constant, the number of rolls follows a geometric distribution. The expected number of rolls is 1 / P(at least one shows 1).
Write a simulation that repeatedly rolls both dice until a 1 appears, records which die showed 1 first and the number of rolls, then repeats for many trials. Compute the proportion of trials where the 5-sided die won and the average number of rolls.
Check that the simulated probability and expected rolls are close to the theoretical values. Discuss any discrepancies and the effect of the number of trials on accuracy.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.