Decide if a dice-betting game is favorable
PayPalData Scientist · OnsiteLast updated
This question evaluates understanding of probability theory, expected value computation, risk-neutral decision criteria, and basic Monte Carlo simulation concepts within the Statistics & Math domain, testing both conceptual understanding of discrete probabilistic outcomes and practical application of simulation-based verification.
You are considering a game against a “house” using fair six-sided dice.
Rules:
- You roll one die; the house rolls one die.
- If your roll is strictly higher than the house’s, you win and the house pays you n dollars.
- If the house’s roll is higher or the rolls tie, you lose and you pay the house m dollars.
Tasks:
- Compute the expected value (EV) of playing one round as a function of
nandm. - Derive the condition on
nandmunder which you should play if you are risk-neutral. - Briefly describe how you would verify the EV via a simple Python Monte Carlo simulation (no need to write production code).
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.