Page 1 of 1

7. Write a Python script which estimates the probability that when rolling a pair of standard, 6-sided dice, the outcome

Posted: Wed Apr 27, 2022 3:06 pm
by answerhappygod
7 Write A Python Script Which Estimates The Probability That When Rolling A Pair Of Standard 6 Sided Dice The Outcome 1
7 Write A Python Script Which Estimates The Probability That When Rolling A Pair Of Standard 6 Sided Dice The Outcome 1 (70.49 KiB) Viewed 18 times
7. Write a Python script which estimates the probability that when rolling a pair of standard, 6-sided dice, the outcome is that both dice individually have a face value less than some integer k. Your code should print the estimated probability for every integer k satisfying 1 <k <6. For k = 3, the exact (theoretical) result is 20.111. Exact results differ for other integers k satisfying 1 <k < 6. Page 4 of 8 znment 1 (including rubric) ENGG1003- Introduction to Procedural Programming Hint: estimate the probability by simulating N rolls of a pair of dice. Count how many times both dice are less than k, then divide this count by the total number of rolls. For a large value of simulated rolls (eg: N = 10“), this ratio should be very close to the exact result.