Question: Write a short Python program to simulate flipping a coin - generate a random number between 0 and 1, calling numbers =.5 heads. Have it
Write a short Python program to simulate flipping a coin - generate a random number between 0 and 1, calling numbers =.5 heads. Have it run 10 iterations and present the number if heads. Run this 10 times, recording the number of head for each trial. Compute the average and standard deviation of the trial runs. (You could have the program repeat the trials ten times and have the program compute the statistics. You could also use a spreadsheet to compute the statistics.) Then, change the program to run 100 iterations, repeating the statistics for 10 trials Compare the averages and the standard deviations for the try with 10 iterations and the try with 100 iterations. What do you observe
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
