Question: 1. Write a function named ThreeDices Add to perform the following experiment 1000 times: roll 3 six-sided dice and add their values. Put the outcomes
1. Write a function named "ThreeDices Add" to perform the following "experiment" 1000 times: roll 3 six-sided dice and add their values. Put the outcomes in a list called addDiceList. So addDiceList should have length 1000, and each of the 1000 elements should be an integer from 3 to 18. Plot the histogram of the outcomes. 2. For the same experiment as in question 1, write a function named "ThreeDicesAdd2" to increase the experiment times (N) and see how the histogram of the outcomes changes. For each N, you will have one histogram plot. Output all plots as a GIF file. (Choose N-1000 : 10,000 : 1,000,000). The "Craps" game: https://en.wikipedia.org/wiki/Craps 4 5 * 810 6 462 Sevenama PASS LINE COME . Peru 23.4.9.10.11.12 FIELD May Dee 68 PASS LINE We will use a number pir to denote the outcomes of two dices, For example, (4.5) means that you have one dice is 4, and the other is 5. 3. Write a function named "Craps" to simulate the craps game: roll 2 six-sided dice and add their values. Define a variable ProbSum8 thnt estimates the probability that 8 is obtained by the player. Calculate it probability and return it as function output. Use enough trials so that ProbSum8 always looks the same to at least 2 decimal places. If it changes, then use more trials. 4. Consider the same process as in the previous question, estimate the probabilities for ProbSum2, ProbSum9 and ProbSum12. Name the function as "Crap2", which returns the estimated probabilities for each outcomes. For example: function(12, 19, r12]=Crap2(N) 5. Write a function "Crap3" to estimate the probability of obtaining a pair of (3.3). With the 10 to 1 odds payout, what's the dealer's house edge? (1,2) has a 15 to 1 odds payout as shown in the picture above, what's the dealer's house edge
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
