Question

Question 2 In a series of 100 fair coin flips, on average, what is the longest consecutive run of...

Question 2

In a series of 100 fair coin flips, on average, what is the longest consecutive run of either heads or tails? What about for 1000 fair coin flips? Perform a Monte Carlo simulation to answer this question. Hint: look at function rle().

For example, suppose in 10 coin flips we observe

{H,H,H,T,T,H,T,T,T,T},{H,H,H,T,T,H,T,T,T,T},

then the longest run is four.

use rstudio do this.

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

hea. 02 a. hov 2

Add a comment
Know the answer?
Add Answer to:
Question 2 In a series of 100 fair coin flips, on average, what is the longest consecutive run of...
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
  • Find the probability mass function of X, the length of the longest run of consecutive heads...

    Find the probability mass function of X, the length of the longest run of consecutive heads in four flips of a fair coin.

  • Problem 2. Consider n flips of a coin. A run is a sequence of consecutive tosses...

    Problem 2. Consider n flips of a coin. A run is a sequence of consecutive tosses with the same result. For k<n, let Ek be the event that a run is completed at time k; this means that the results of the kth and (k1)st flips are different. For example, if 10 and the outcomes of the first 10 flips are HHHTTHHTTH then runs are completed at times 3,5,7,9 (a) Show that if the coin is fair, then the events...

  • Problem 2. Consider n flips of a coin. A run is a sequence of consecutive tosses...

    Problem 2. Consider n flips of a coin. A run is a sequence of consecutive tosses with the same result. For k 〈 n, let Ek be the event that a run is completed at time k; this means that the results of the kth and k1)st flips are different. For example, if n 10 and the outcomes of the first 10 flips are HHHTTHHTTH then runs are completed at times 3, 5,7,9 (a) Show that if the coin is...

  • Question 2 Suppose you have a fair coin (a coin is considered fair if there is...

    Question 2 Suppose you have a fair coin (a coin is considered fair if there is an equal probability of being heads or tails after a flip). In other words, each coin flip i follows an independent Bernoulli distribution X Ber(1/2). Define the random variable X, as: i if coin flip i results in heads 10 if coin flip i results in tails a. Suppose you flip the coin n = 10 times. Define the number of heads you observe...

  • Question is are X and Y independent? Why? 1. Consider flipping a fair coin three times...

    Question is are X and Y independent? Why? 1. Consider flipping a fair coin three times and observe whether it lands heads up or tails up. Let X the number of switches from either head to tail or vice versa. For example, when THT is observed, the number of switches is 2 and when HHH is observed, the number of switches is 0. Also, let Y be the number of tails shown in the three times of flipping.

  • square face and dimples Question 2 1 pts Make A Baby: Based on the coin flip...

    square face and dimples Question 2 1 pts Make A Baby: Based on the coin flip results below, what trait/s would your baby display? Trait allele from parent allele from parent Child's Genotype Child's Phenotype Hair type (heads) HC (tails) Hs Mouth size (heads) MI (heads) MI curly hair and long mouth wavy hair and long mouth wavy hair and average mouth straight hair and short mouth Question 3 1 pts GENETICS HEREDITY: PASSING ON TRAITS TO YOUR CHILDREN It...

  • 6. [R Programming| In order to complete this question, we will need to use a fundamen-...

    6. [R Programming| In order to complete this question, we will need to use a fundamen- tal theorem in probabilty theory known as the (Weak) Law of Large Numbers (WLLN) The WLLN will be covered in greater detail in Chapter 8, however we will use this key result throughout the course to approximate probabilities that are otherwise difficult to calculate theoretically. A simplified version of the theorem goes as follows. Assume we are interested in com- puting the probability of...

  • Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that...

    Can Dogs Understand Human Cues? EXPLORATION Dogs have been domesticated for about 14,000 years. In that time, have they been able to develop an understanding of human gestures such as pointing or glancing? How about simi lar nonhuman cues? Researchers Udell, Giglio, and Wynne tested a small number of dogs in order to answer these questions. In this exploration, we wll first see whether dogs can understand human gestures as well as nonhuman gestures. To test this, the researchers positioned...

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