Question: need help with b. in python! a)Using a very large number of trials, find the probability of rolling 2 12 using two dice. Plot your
need help with b. in python!
a)Using a very large number of trials, find the probability of rolling 2 12 using two dice. Plot your results as a histogram. Do you get what you expect from combinatorics?
b) The result of the previous question is in fact the convolution of two discrete uniform distributions for the integers 1 6. Try the same process for two uniform distributions on the interval (-0.5,0.5), i.e. add the two numbers selected from the two different distributions, repeat many times, and make a histogram of all the sums. Does your histogram look like the expected convolution for these two functions? Try other distributions/functions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
