Question

In: Math

Suppose you are tossing a fair coin. You will keep tossing until you get two consecutive...

Suppose you are tossing a fair coin. You will keep tossing until you get two consecutive
heads. Let, X represents the number of tosses you will need. So the minimum value of X is
two.
(a) Using hand calculation, calculate P[X = 2], P[X = 3], P[X = 4] and P[X = 5].
(b) How to write an R function that keeps tossing the fair coin until two consecutive heads
show up and returns the total number of tosses. (run this function 1000 times)

Solutions

Expert Solution


Related Solutions

in tossing a coin 1024 times we get 460 tails. is this coin fair? use a...
in tossing a coin 1024 times we get 460 tails. is this coin fair? use a significance level equal to 5%
We keep tossing a fair coin n = 106 million times, write down the outcomes: it...
We keep tossing a fair coin n = 106 million times, write down the outcomes: it gives a Heads-and-Tails-sequence of length n. We call an integer i special, if the i, i + 1, i + 2, i + 3, . . . , i + 18-th elements of the sequence are all Heads. That is, we have a block of 19 consecutive Heads starting with the i-th element of the sequence. Let X denote the number of special integers...
We keep tossing a fair coin n=106 million times, write down the outcomes: it gives a...
We keep tossing a fair coin n=106 million times, write down the outcomes: it gives a Heads-and-Tails-sequence of length n. We call an integer i special, if the i,i + 1,i + 2,i + 3,...,i + 18-th elements of the sequence are all Heads. That is, we have a block of 19 consecutive Heads starting with the i-th element of the sequence. Let X denote the number of special integers i. What is the expected value of X? and calculate...
On each turn, bonnie is tossing a fair coin and Clyde is rolling a fair die....
On each turn, bonnie is tossing a fair coin and Clyde is rolling a fair die. They stop once Clyde rolls an odd number for the first time. Let X be the number of "Heads" that Bonnie's coin showed. a) Compute E[X] b) Compute var(X)
For which of these coin-tossing scenarios are you most likely to get heads on every toss?...
For which of these coin-tossing scenarios are you most likely to get heads on every toss? Explain your answer. Toss a coin 3 times. Toss a coin 5 times. Toss a coin 10 times .
In tossing a fair coin 16 times, what is the probability of getting at most 4...
In tossing a fair coin 16 times, what is the probability of getting at most 4 tails?
The second game You toss a fair coin until Head appears and you are paid the...
The second game You toss a fair coin until Head appears and you are paid the number of Tails received, for example, if we obtain TTTH you get 3 rubles. How much do you agree to pay the host for the game? The third and fourth games We have a deck of 52 cards. a) We randomly choose 5 cards (without repetition) and get 5 rubles for any ace or king chosen; b) We randomly choose 5 cards (with repetition,...
Write a program that simulates flipping a coin repeatedly until three consecutive        heads are...
Write a program that simulates flipping a coin repeatedly until three consecutive        heads are tossed. The program should then display the total number of times the coin was        flipped. The user does not have to enter any information and we must use a while loop.
Suppose that we flip a fair coin until either it comes up tails twice or we...
Suppose that we flip a fair coin until either it comes up tails twice or we have flipped it six times. What is the expected number of times we flip the coin?
I toss a fair coin 20 times. (a) Calculate the probability of tossing 18 or more...
I toss a fair coin 20 times. (a) Calculate the probability of tossing 18 or more heads exactly. (b) Now perform the same calculation, approximating the actual binomial distribution with a normal distribution, picking a proper random variable, and using the correct mean and variance. (c) Do the results reasonably agree?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT