Urn 1 contains 4 blue tokens and 9 red tokens; urn 2 contains 12 blue tokens and 5 red tokens. You flip a coin twice and if you see head two times, then you pick urn 2 else (if you see at least once the tail) you pick urn 1 and draw out a token at random from that urn. Given that the token is blue, what is the probability that the token came from urn 2

Respuesta :

Answer:

0.433

Step-by-step explanation:

From the given information;

Let represent Urn 1 to be Q₁ ;

Urn 2 to be Q₂

and the event that a blue token is taken should be R

SO,

Given that:

Urn 1 comprises of 4 blue token and 9 red tokens,

Then, the probability of having a blue token | urn 1 picked is:

 [tex]P(R|Q_1) = \dfrac{4}{4+9}[/tex]

[tex]= \dfrac{4}{13}[/tex]

Urn 2 comprises of 12 blue token and 5 red tokens;

Thus [tex]P(R| Q_2) = \dfrac{12}{12+5}[/tex]

[tex]=\dfrac{12}{17}[/tex]

SO, if two coins are flipped, the probability of having two heads = [tex]\dfrac{1}{4}[/tex]

(since (H,H) is the only way)

Also, the probability of having at least one single tail = [tex]\dfrac{3}{4}[/tex]

(since (H,T), (T,H), (T,T) are the only possible outcome)

Thus: so far we knew:

[tex]P(Q_2) = \dfrac{1}{4} \\ \\ P(Q_2) = \dfrac{3}{4}[/tex]

We can now apply Naive-Bayes Theorem;

So, the probability P(of the token from Urn 2| the token is blue) = [tex]P(Q_2|R)[/tex]

[tex]P(Q_2|R) = \dfrac{P(R \cap Q_2)}{P(R)} \\ \\ = \dfrac{P(R|Q_2) * P(Q_2)}{P(R|Q_2) \ P(R_2) + P(R|Q_1) \ P(Q_1)} \\ \\ \\ \\ = \dfrac{\dfrac{12}{17} \times \dfrac{1}{4} }{\dfrac{12}{17} \times \dfrac{1}{4} + \dfrac{4}{13} \times \dfrac{3}{4}} \\ \\ \\ = \dfrac{13}{30}[/tex]

= 0.433