Question: On Sheet 2, develop a simple simulation of flipping a fair coin 5 times. [70 pts] 1. Make a table with 5 rows representing
On Sheet 2, develop a simple simulation of flipping a fair coin 5 times. [70 pts] 1. Make a table with 5 rows representing the 5 trials and add a column with the number of times heads came up. 2. Repeat this experiment now 100 times by adding 99 more rows with the same experiment. 3. What is the average number of heads in the experiments? Calculate confidence intervals and explain what they mean. 4. Add a histogram to show the distribution of the outcomes. What does this histogram tell you about how likely it is to get more than 4 heads in a row.
Step by Step Solution
3.44 Rating (160 Votes )
There are 3 Steps involved in it
Develop a simple simulation of flipping a fair coin 5 times import random Define the number of coin flips numflips 5 Initialize a variable to store the number of heads numheads 0 Simulate coin flips f... View full answer
Get step-by-step solutions from verified subject matter experts
