H1 = { we know the answer }
H2 = { we don't know the answer and will flip a fair coin }
A ={ choosing the correct answer }
a) By the formula of total probability , we have
P(A)=∑P(Hi)∗P(A∣Hi)
So P(A) = 0.7 * 1 + 0.3 * 0.5 = 0.85
Answer 1): 0.85
b) By formula of Bayes:
P(Hi∣A)=P(A∗Hi)/P(A)=P(A∣Hi)∗P(Hi)/P(A)
So for second question we have to find P(H1∣A) :
P(H1∣A)=P(A∣H1)∗P(H1)/P(A)=1∗0.7/0.85=0.823529...
Answer 2) 0.823529...
Comments