Question

In: Statistics and Probability

Suppose that we have a red coin and a blue coin. The red coin has probability...

Suppose that we have a red coin and a blue coin. The red coin has probability pR = 0.1 of landing heads, and the blue coin has probability pB = 0.2 of landing heads.

(a) Write R code to generate a sequence of coin tosses, starting with the red coin, and switching coins every time a coin lands heads.

(b) Generate 1000 such sequences, each consisting of 1000 coin tosses, and use them to construct a plot of the 2.5%, 50% and 97.5% quantiles of the proportion of red coins tossed as the number of tosses increases. (c) What is the stationary distribution of colours for this process? Comment on how this experiment relates to Birkhoff’s ergodic theorem

Solutions

Expert Solution


Related Solutions

Suppose that coin 1 has probability 0.8 of coming up heads, and coin 2 has probability...
Suppose that coin 1 has probability 0.8 of coming up heads, and coin 2 has probability 0.6 of coming up heads. If the coin flipped today comes up heads, then with equal probability we select coin 1 or coin 2 to flip tomorrow, and if it comes up tails, then we select coin 2 to flip tomorrow. (a) If the coin initially flipped is coin 1, what is the probability that the coin flipped on the second day after the...
A fair coin is flipped repeatedly. (a) (6pts) Suppose we hope that with probability at least...
A fair coin is flipped repeatedly. (a) (6pts) Suppose we hope that with probability at least 0.9 the frequency of heads showing up is between 0.4 and 0.6. Use Chebyshev’s inequality to estimate at least how many times the coin should be flipped. (b) (6pts) Suppose we hope that with probability at least 0.95 the frequency of heads showing up is between 0.4 and 0.6. Use the central limit theorem to estimate at least how many times the coin should...
Suppose 4 blue and 4 red chips are in a hat. Each time we draw a...
Suppose 4 blue and 4 red chips are in a hat. Each time we draw a chip we look at its color. If it is blue, we replace it along with one new blue chip. If it is red, we replace it along with two new red chips. What is the probability that, in successive drawing of chips, the second one is blue?
Suppose we suspect a coin is not fair — we suspect that it has larger chance...
Suppose we suspect a coin is not fair — we suspect that it has larger chance of getting tails than heads, so we want to conduct a hypothesis testing to investigate this question. a: Let p be the chance of getting heads, write down the alternative hypothesis Ha and the null hypothesis H0 in terms of p. b: In order to investigate this question, we flip the coin 100 times and record the observation. Suppose we use T = the...
We have a bag that contains n red balls and n blue balls. At each of...
We have a bag that contains n red balls and n blue balls. At each of 2n rounds we remove one of the balls from the bag randomly, and place it in one of available n bins. At each round, each one of the balls that remain in the bag is equally likely to be picked, as is each of the bins, independent of the results of previous rounds. Let Nk be the number of balls in the k-th bin...
A box contains 7 red and 5 blue marbles. Suppose we select one marble at a...
A box contains 7 red and 5 blue marbles. Suppose we select one marble at a time with replacement. a. Determine the probability that the first blue marble appears on the fourth selection. b. Determine the probability that out of the first 10 selection, there are at least 2 red marbles. c. For part (b), determine the expected and variance number of red marbles selected.
A coin has a probability of 1/4 for head, and is repeatedly tossed until we throw...
A coin has a probability of 1/4 for head, and is repeatedly tossed until we throw head. The successive results of the toss are independent of each other. What is the probability that the first time we throw head after an odd number of toss? Hint: Use the law of total probability and consider the event that the first toss is head is, and her complement, as conditioning events. Correct answer: 3/7
We have three cards. One is red on both sides; one is blue on both sides;...
We have three cards. One is red on both sides; one is blue on both sides; one is red on one side and blue on the other side. The cards are shuffled and their orientation randomized. One card is drawn and placed on the table; the side facing up is blue. (a) Compute the information content of this observation (that the side facing up is blue.) (b) Find the prior and posterior probability distributions of the color of the bottom...
Suppose we draw 3 marbles from a jar containing 7 red and 5 blue marbles. At...
Suppose we draw 3 marbles from a jar containing 7 red and 5 blue marbles. At each stage, a ball is drawn and its color noted. Then the marble is returned to the jar along with another two marbles of the same color. Given that the first marble is red, what is the probability that the next two are blue?
Suppose we have a biased coin that comes up heads 55% of the time. We perform...
Suppose we have a biased coin that comes up heads 55% of the time. We perform an experiment where we toss the coin until the first tails appears. Let T be the number of tosses until the first tails. What is the expected value and standard deviation for T? What is the probability that it takes 5 or more tosses before the first tails appears?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT