Question

In: Math

Suppose you choose a coin at random from an urn with 3 coins, where coin i...

Suppose you choose a coin at random from an urn with 3 coins, where coin i has P(H) = i/4. What is the pmf for your prior distribution of the probability of heads for the chosen coin? What is your posterior given 1 head in 1 flip? 2 heads in 2 flips? 10 heads in 10 flips?Hint: Compute the odds for each coin first.

Solutions

Expert Solution

For each of the three coins, we are given here that:
P(H | coin 1) = 1/4
P(H | coin 2) = 2/4
P(H | coin 3) = 3/4

As each of the coin is to be randomly selected, the probability for the three coins here is given as:
P(coin 1) = P(coin 2) = P(coin 3) = 1/3

Using law of total probability, we get here:
P(H) = P(H | coin 1)P(coin 1) + P(H | coin 2)P(coin 2) + P(H | coin 3)P(coin 3)
P(H) = (1/4)*(1/3) + (2/4)*(1/3) + (3/4)*(1/3) = 2/4 = 0.5

Therefore 0.5 is the required probability here. (This is the prior distribution of getting a head )

Now, we need to get posterior distribution for getting a head in 1 flip. The posterior distribution here is given as:
P( coin 1 | H) = P(H | coin 1)P(coin 1) /P(H) = (1/4)*(1/3) / (0.5) = 1/6
P( coin 2 | H) = P(H | coin 2)P(coin 2) /P(H) = (2/4)*(1/3) / (0.5) = 1/3
P( coin 3 | H) = P(H | coin 3)P(coin 3) /P(H) = (3/4)*(1/3) / (0.5) = 1/2

This is the posterior distribution for the coin selected given that there was 1 head in 1 flip of coin.

Now the prior distribution is computed for 2 heads in 2 flips as:

P(2 heads | coin 1) = (1/4)2 = 1/16
P(2 heads | coin 2) = (2/4)2 = 1/4
P(2 heads | coin 3) = (3/4)2 = 9/16

Using law of total probability, we get here:
P(2 heads) = P(2 heads | coin 1)P(coin 1) + P(2 heads | coin 2)P(coin 2) + P(2 heads | coin 3)P(coin 3)
P(2 heads) = (1/16)*(1/3) + (1/4)*(1/3) + (9/16)*(1/3) = (14/16)*(1/3) = 7/24

Therefore, now the posterior probabilities for 2 heads in 2 tosses are computed as:  (using bayes theorem)
P(coin 1 | 2 heads) = P(2 heads | coin 1)P(coin 1) / P(2 heads)
P(coin 1 | 2 heads) = (1/16)*(1/3) / (7/24) = 1/14
P(coin 2 | 2 heads) = (1/4)*(1/3) / (7/24) = 2 / 7
P(coin 3 | 2 heads) = (9/16)*(1/3)/ (7/24) = 9/14

This is the required posterior distribution here.

For 10 heads in 10 flips, the prior distribution is computed as:
P(10 heads | coin 1) = (1/4)10 = 1/1048576
P(10 heads | coin 2) = (2/4)10 = 1/1024
P(10 heads | coin 3) = (3/4)10 = 59049 / 1048576

The posterior distribution is computed here as:
P(coin 1 | 10 heads ) = P(10 heads | coin 1) P(coin 1) / P(10 heads ) =  (1/3)*(1/4)10 / (1/3)((1/4)10 + (2/4)10 + (3/4)10) = 1 / (1 + 2^10 + 3^10 ) approx. 0
P(coin 2 | 10 heads ) = (1/3)* (2/4)10 / (1/3)((1/4)10 + (2/4)10 + (3/4)10) = 2^10 / (1 + 2^10 + 3^10 ) = 0.0170
P(coin 3 | 10 heads ) = (1/3)*(3/4)10 / (1/3)((1/4)10 + (2/4)10 + (3/4)10) = 3^10 / (1 + 2^10 + 3^10 ) = 0.9829


Related Solutions

You have 3 coins that look identical, but one is not a fair coin. The probability...
You have 3 coins that look identical, but one is not a fair coin. The probability the unfair coin show heads when tossed is 3/4, the other two coins are fair and have probability 1/2 of showing heads when tossed. You pick one of three coins uniformly at random and toss it n times, (where n is an arbitrary fixed positive integer). Let Y be the number of times the coin shows heads. Let X be the probability the coin...
Two coins are randomly drawn from a coin pouch. If there are 4 dimes, 3 nickels,...
Two coins are randomly drawn from a coin pouch. If there are 4 dimes, 3 nickels, and a quarter, how many ways can at least 20 cents be drawn out?
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin purse. You choose...
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin purse. You choose two coins from the purse at random. What is the probability you draw out at least 20 cents? A three of a kind in a five-card poker hand is obtained by having exactly three of the same type of card (3 Js or 3 4s). What is the probability that a randomly selected five-card hand is a three of a kind?
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin purse. You choose...
Suppose you have 2 nickels, 3 dimes, and 1 quarter in a coin purse. You choose two coins from the purse at random. What is the probability you draw out at least 20 cents? A three of a kind in a five-card poker hand is obtained by having exactly three of the same type of card (3 Js or 3 4s). What is the probability that a randomly selected five-card hand is a three of a kind? A committee of...
Suppose we are going to play a game. You have to choose to toss a coin...
Suppose we are going to play a game. You have to choose to toss a coin either 40 times or 400 times (pretend you have a lot of time on your hands!). You win the game if the percentage of heads is between 52.5% and 57.5%.
One fair coin and two unfair coins where heads is 5 times as likely as tails...
One fair coin and two unfair coins where heads is 5 times as likely as tails are put into a bag. One coin is drawn at random and then flipped twice. If at least one of the flips was tails, what is the probability an unfair coin was flipped?
Suppose you have an experiment where you flip a coin three times. You then count the...
Suppose you have an experiment where you flip a coin three times. You then count the number of heads. State the random variable. Write the probability distribution for the number of heads. Draw a histogram for the number of heads. Find the mean number of heads. Find the variance for the number of heads. Find the standard deviation for the number of heads. Find the probability of having two or more number of heads. Is it unusual to flip two...
Suppose that I flip a coin repeatedly. After a certain number of flips, I tell you...
Suppose that I flip a coin repeatedly. After a certain number of flips, I tell you that less than 80% of my flips have been “heads”. I flip a few more times, and then tell you that now more than 80% of my (total) flips have been “heads”. Prove that there must have been a point where exactly 80% of my flips had been “heads”. (If we replace 80% with 40%, the statement is not true: if I flip “tails”...
Suppose that 3 balls are chosen from an urn which contains 5 red, 6 white and...
Suppose that 3 balls are chosen from an urn which contains 5 red, 6 white and 10 blue balls. Assume X and Y represents, respectively, the number of red balls chosen and summation of chosen red and white balls. (a) Determine the outcomes, and then represent all possible outcomes with a chart of X and Y. (b) Determine pXY [x,y], and then from pXY [x,y] determine, pX[x] and pY [y]. (c) Determine Cov(X, Y ) and ρXY . (d) Determine...
random experiment was conducted where a Person A tossed five coins and recorded the number of...
random experiment was conducted where a Person A tossed five coins and recorded the number of “heads”. Person B rolled two dice and recorded the average the two numbers. Simulate this scenario (use 10000 long columns) and answer questions 10 to 13. Hint: check Lectures 26 and 27 in the Book. 10. Which of the two persons (A or B) is more likely to get the number 5? a. Person A b. Person B c. Not possible to determine 11....
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT