• Home
  • Blog
  • using RStudio (For the following questions, use monte carlo simulation to repeat a simulation of 100 coin tosses 1,000 times. Note that in a coin toss, there are only two possible outcomes heads or tails.)

using RStudio (For the following questions, use monte carlo simulation to repeat a simulation of 100 coin tosses 1,000 times. Note that in a coin toss, there are only two possible outcomes heads or tails.)

0 comments

***(the code in the file it should help)

For the following questions, use monte carlo simulation to repeat a simulation of 100 coin tosses 1,000 times. Note that in a coin toss, there are only two possible outcomes heads or tails.

  1. What is the probability of heads occurring more than 55 percent of the time?
  2. Plot a histogram of the average number of heads for each of the 1,000 replications.
  3. What is the average number of tosses before a tails is first flipped?
  4. Conduct 1,000 new experiments with only 10 coin tosses. Repeat the calculations inquestions 1 and 2. Comment in your r code your impressions of lowering the sample size.
  5. What is the average number of tosses before a tails is first flipped?

For the following questions, assume a group of ten individuals have randomly assignment birthdays (assume 365 days in one year). Repeat these random draws 1,000 times.

  1. What is the probability that two individuals in the group of 10 will have the same birthday?
  2. What is the probability that two individuals in the group of 10 will have the same birthdayweek?
  3. How do the probabilities in questions 6 and 7 change if the group increases to a size of 20?

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}