Question

You have five coins in your pocket. You know a priori that one coin gives heads with probability 0.4, and the other four coin

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

Answer:

p is the probability of getting a heads in a toss of a coin.

The prior distribution of p:

3 0 1 7 0 2

1st Question:

p can take two values which is either 0.4 or 0.7. So the answer is the 4th option {0.4.0.7}

2nd Question:

There are 4 coins where p=0.7 and 1 coin where p=0.4. Thus, the probability of p being 0.7 which is given by π(p = 0.7) is 5 0.8

3rd Question.

We need likelihood function in this case:

L(p|x_1,x_2,..,x_6)=\prod_{i=1}^{6} p^{x_i} \left(1-p \right )^{1-x_i}=p^{\sum_{i=1}^6 x_i} \left(1-p \right )^{\sum_{i=1}^61- x_i}=p^3 \left(1-p \right )^3

Now, we differentiate this likelihood with p to get the value of p that maximises this likelihood.

(1 p)3p (1 -p-3p3 (1 - p) dp

Set this to 0:

p)-3 p=1-p 2p-1

Thus, PMLE .

4th Question:

We need to find the posterior distribution of p:

P[p|X_1,X_2,..,X_6] \propto L(X_1,X_2,..X_6|p) \cdot \pi (p)

Note that I wrote the posterior as proportional to the above product. We can find the normalising factor later. Denote this factor by k.

PP = 0.4x1, X2, .., x6j = k . 0.43(1-0.4) . 0.2 = 0.0027648k

\\ P[p=0.7|X_1,X_2,..,X_6] \propto L(X_1,X_2,..X_6|p=0.7) \cdot \pi (p=0.7) \\ P[p=0.7|X_1,X_2,..,X_6]=k \cdot 0.7 ^3 (1-0.7)^3 \cdot 0.8=0.0074088 k

Now we know, P[p=0.4|X_1,X_2,...,X_6]+P[p=0.7|X_1,X_2,...,X_6]=1 . Thus,        

                                            0.0027648k+0.0074088k=0.0101736 k=1

                                            k=\dfrac{1}{0.0101736 }=98.294

Thus, \\ P[p=0.4|X_1,X_2,...,X_6]=0.0027648 \cdot 98.294=0.2718 \\ P[p=0.7|X_1,X_2,...,X_6]=0.0074088 \cdot 98.294=0.7282

The posterior mean then is:

0.4 \cdot 0.2718+0.7 \cdot 0.7282=0.61846

Thus, \hat p^{\ \text{Bayes}}=0.61846

Question 5

Comparing the posterior probabilities we get that P[p=0.7|X_1,X_2,...,X_6]>P[p=0.4|X_1,X_2,...,X_6]

Thus, \hat p^{MAP}=0.7

Add a comment
Know the answer?
Add Answer to:
You have five coins in your pocket. You know a priori that one coin gives heads with probability 0.4, and the other four coins give heads with probability 0.7 You pull out one of the five coins at ra...
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
  • Problem 4. Five coins are flipped. The first four coins will land on heads with probability...

    Problem 4. Five coins are flipped. The first four coins will land on heads with probability 1/4. The fifth coin is a fair coin. Assume that the results of the flips are independent. Let X be the total number of heads that result Hint: Condition on the last flip. (a) Find P(X2) (b) Determine E[X] S.20

  • You have in your pocket two coins, one bent (comes up heads with probability 3/4) and...

    You have in your pocket two coins, one bent (comes up heads with probability 3/4) and one fair (comes up heads with probability 1/2). Not knowing which is which, you choose one at random and toss it. If it comes up heads you guess that it is the biased coin (reasoning that this is the more likely explanation of the observation), and otherwise you guess it is the fair coin. A) What is the probability that your guess is wrong?

  • 4. Setup: Suppose you have observations X1,X2,X3,X4,X5 which are i.i.d. draws from a Gaussian distribution with...

    4. Setup: Suppose you have observations X1,X2,X3,X4,X5 which are i.i.d. draws from a Gaussian distribution with unknown mean μ and unknown variance σ2. Given Facts: You are given the following: 15∑i=15Xi=0.90,15∑i=15X2i=1.31 Bookmark this page Setup: Suppose you have observations X1, X2, X3, X4, X5 which are i.i.d. draws from a Gaussian distribution with unknown mean u and unknown variance o? Given Facts: You are given the following: x=030, =1:1 Choose a test 1 point possible (graded, results hidden) To test...

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