Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Python 3, include doc strings. Bias probability = 70% heads, 30% tails. 1. write a function to toss a fair coin; it should return True
Python 3, include doc strings. Bias probability = 70% heads, 30% tails.
1. write a function to toss a fair coin; it should return True if the coin toss yields Heads and False if tho 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 arn cxpcrincnt 3 write a function to repeat this experiment 1000 times, and compute the mean of the # of heads 4. compu te the standard deviation of these experiments Repeat this exercise for a biased coin, with probability p ? 10, 11 of headsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started