Julie and Kevin decide to play a different game that involves taking shots from anywhere on the basketball court. This i
Posted: Sun Jul 10, 2022 10:40 am
Julie and Kevin decide to play a different game that involves taking shots from anywhere on the basketball court. This includes the free throw shots with 70% chance of success, as well as easier shots with higher success rate and harder shots with lower success rate. Remember that Julie and Kevin are equally matched and have the same success probability for any type of shot. - The game consists of 20 rounds. In the first 10 rounds, one player is the "leader" and has the chance to score points; the other player becomes the "leader" in the subsequent 10 rounds. - The leader chooses a type of shot to take and makes an attempt. The other player must choose the same type of shot to make; i.e., if Julie is the leader and chooses to attempt a shot with 70% success rate, Kevin must also attempt a shot with 70% success rate. - If the leader successfully makes the shot and the other player fails to make the shot, the leader scores a point. - If the leader fails to make the shot, the leader does not score a point. The other player may still attempt to make the same shot (for fun), but regardless of whether they fail or succeed, the leader does not score a point. - Only the leader can score points. In other words, if Julie is the leader during the first 10 rounds, Julie has the chance to score points; Kevin can prevent Julie from scoring points but cannot himself score points. The winner is the player with the most points at the end of the 20 rounds. Use the information about this game to answer the following questions. b) (14 pts.) Suppose that Julie and Kevin decide to always attempt free throw shots. Write a simulation with 10,000 replicates to estimate the probability of Julie winning, the prob- ability of Kevin winning, and the probability of the contest ending in a tie. Write a brief paragraph outlining the logic of the simulation and clearly comment your code.