***(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.
- What is the probability of heads occurring more than 55 percent of the time?
- Plot a histogram of the average number of heads for each of the 1,000 replications.
- What is the average number of tosses before a tails is first flipped?
- 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.
- 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.
- What is the probability that two individuals in the group of 10 will have the same birthday?
- What is the probability that two individuals in the group of 10 will have the same birthdayweek?
- How do the probabilities in questions 6 and 7 change if the group increases to a size of 20?


0 comments