Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python Help! In short, given a 6 sided die, someone wants to know which of the following had the greater chance of occuring. 1) At

Python Help!

In short, given a 6 sided die, someone wants to know which of the following had the greater chance of occuring. 1) At least one 6 occurs when six dice are rolled 2) At least two sixes occur when 12 dice are rolled 3) At least three sixes occur when 18 dice are rolled. We want to write a program to simulate doing this many time over.

I have the program written and running but it is counting the sixes for the entire trial. for example if the user imputs 15 trials it will give stats on how many 6's were rolled in the 90 rolls of the dice for the first senario, then the 180 rolls for the second, ect. I think I need it to keep track of each seperate trial run, so for the above example, seperate stats for 6 dice rolled, 15 times and report on how many of the individual trials a six occured the specified number of times. I would then need to put this into one statistic.

I am really stuck on how to do this in code, any help would be appreciated!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions

Question

(c) 15. Which of the following eigenvector 1 2 (b) 2 T (a) 6

Answered: 1 week ago