Home / Expert Answers / Computer Science / python-part-b-repeatedly-rolling-a-die-would-result-in-a-uniform-distribution-of-values-betwee-pa690

(Solved): python PART B Repeatedly rolling a die would result in a uniform distribution of values betwee ...



PART B
Repeatedly rolling a die would result in a uniform distribution of values between 1 and 6, inclusive. Repeatedly rolli

python

PART B Repeatedly rolling a die would result in a uniform distribution of values between 1 and 6, inclusive. Repeatedly rolling two (2) dice would result in a uniform distribution of values between two (2) and twelve (12) inclusive. a. In this simulation, repeatedly roll one (1) die, count the number of occurrences of each value and plot the histogram: i. After 100 simulations. ii. After 1,000 simulations. b. In the next simulation, repeatedly roll four (4) dice, sum the results of the four (4) dice faces, count the number of occurrences of each value and plot the histogram: i. After 100 simulations. ii. After 1,000 simulations. Each simultaneous roll of four (4) dice is counted as one simulation. c. Compute the following probabilities based on your simulations: i. If one die is rolled what is the probability that The outcome is even? - The outcome is odd? ii. If four dice are rolled what is the probability that The total showing is even? - The total showing is odd? number of times event i occurred probability of occurrence of event


We have an Answer from Expert

View Expert Answer

Expert Answer


Steps:1. Create an empty dictionary to store the count of roll2. Initialize the
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe