Question: Using Python 3.5, 1. write a function to toss a fair coin; it should return True if the coin toss yields Heads and False if
Using Python 3.5,
1. write a function to toss a fair coin; it should return True if the coin toss yields Heads and False if the
coin toss yields Tails.
2. write a function to toss a fair coin 100 times and count the number of heads; (we will call this an
experiment)
3. write a function to repeat this experiment 1000 times, and compute the mean of the # of heads
4. compute the standard deviation of these experiments
Repeat this exercise for a biased coin, with probability p ? [0,1] of heads.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
