Question: Can i please get the oython script to this? python core Simulate 100,000 rolls of 2 fair dices and take the sum of the numbers
Simulate 100,000 rolls of 2 fair dices and take the sum of the numbers of the front face of the dices Store in the list my_hist the sum for each trial. Len(my_hist) should be then 100,000 (check it out with a print) Store in the list my_freq the frequency distribution of my_hist. Len(my_freq) should be therefore 11, since it should represent the frequency of the numbers that are in the range 2, 12 Print the hacked probability of 2 and 12 and compare it with the true value of the probabilitya Plot a histogram of the frequency distribution, in blue, and a scatter plot of the frequency distribution, in red
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
