Should you play a dice payout game?
PayPalData Scientist · OnsiteLast updated
This question evaluates understanding of probability, expected value, and payoff-driven decision-making by requiring computation of expected return from discrete game outcomes. It is commonly asked to assess quantitative reasoning in the Statistics & Math category and primarily tests conceptual understanding of expected value and probabilistic reasoning rather than practical implementation.
Two players each roll a fair six-sided die once.
- If you win (your roll > opponent’s roll), the opponent pays you $n.
- If the opponent wins or it’s a tie (your roll ≤ opponent’s roll), you pay the opponent $m.
Assume both dice are fair and independent.
Questions
- What is the expected value of playing one round as a function of
nandm? - For what values of
nandmshould you choose to play? - (Optional) Show a short Python snippet that computes the expected value analytically.
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.