Let A - ''red ball", H1 - "green urn", H2 - "blue urn", H3 - "yellow urn", then
1) According to the total probability formulaP(A)=P(H1)∗P(A∣H1)+P(H2)∗P(A∣H2)+P(H3)∗P(A∣H3)=31∗83+31∗103+31∗62=360121
2) According to Bayesian formula
P(H1∣A)=P(A)P(H1)∗P(A∣H1)=36012181=12145
3) P(H1)=113 P(H2)=112 P(H3)=116
According to the total probability formula
P(A)=P(H1)∗P(A∣H1)+P(H2)∗P(A∣H2)+P(H3)∗P(A∣H3)=113∗83+112∗103+116∗62≈0.339
Comments