Question: programing language Python Coin Flipping Simulation with Statistics If you generate a pseudo-random number that can take on two values (0 and 1 would be

programing language Python Coin Flipping Simulation with Statistics If you generate aprograming language Python

Coin Flipping Simulation with Statistics If you generate a pseudo-random number that can take on two values (0 and 1 would be a natural in computer science), then you are simulating the flipping of a coin. Write a function that flips five coins repeatedly until the coins have the same face (all heads or all tails) and return the number of flips required. (You can but do not have to make the five a parameter of the function.) Set a sample size (say 100) and call your function that many times and use that to generate a list of results. Send that list to a function that generates a dictionary of statistics for the list data. The statistics should include: average, standard deviation, minimum, maximum, and median

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!