Final answer:
The expectation of the dice game is calculated by considering the probabilities of winning outcomes (sums of 4 and 11), their associated rewards, and the cost to play the game.
Step-by-step explanation:
To calculate the expectation of the dice game, you first need to consider all the possible outcomes when rolling two dice and their associated probabilities. Then you calculate the expected gains or losses for each outcome, factoring in the cost to play the game. For rolling a sum of 4, there are three combinations that can result in a 4: (1,3), (2,2), and (3,1). The probability of getting a sum of 4 is therefore 3/36 or 1/12. If the gambler wins $20 in this case, the expected gain is (1/12)*20. For rolling a sum of 11, there are two combinations: (5,6) and (6,5), which gives a probability of 2/36 or 1/18. The expected gain for a sum of 11 is (1/18)*50. Since the gambler has to pay $10 to play the game, this cost needs to be subtracted from the expected gains. Finally, the total expectation for the game is calculated by adding the expectations for each winning outcome and subtracting the cost to play.