Question

4. Use Monte Carlo simulation to approximate the probability of three heads ocurring when five fair coins are flipped. Do a s

0 0
Add a comment Improve this question Transcribed image text
Answer #1

solution:

Lets perform the above experiment 10000 times times using a python code.

lets understand the program

noOfTrial = 10000 which means we conduct the experiment 10000 times.

noOfToss = 5 which means each time we flip the coin 5 times

in each flip the program either generates a 0 or 1 randomly using randint(0,1)

we onsider a 0= tail and 1 = head

now we want exactly 3 heads and remaining 2 will be tail

so sum of result should be exactly 3

for eg 01011 or 11001 are favorable outcomes and divided by noOfTrials (10000) to find out the probability

lets run the monte carlo simulation program

the probability turns out to be 0.3087

please give me thumb up

Add a comment
Know the answer?
Add Answer to:
4. Use Monte Carlo simulation to approximate the probability of three heads ocurring when five fair...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT