Let $\Omega$ a discrete probability space we have $U_1$ and its opposite $U_2$ :
$P(U_1) = 0,7$ and $ P(U_2) = 0,3$
$P(A|U_1) = 0,05$ and $P(A|U_2) = 0,06$ What's $P(U_2|A)$?
My solution using conditional probability :
$P(A) = P(A|U_1)\cdot P(U_1) + P(|U_2) \cdot P(U_2) = 0,05 \cdot0,7 + 0,06 \cdot 0,3 = 0,368 $
$P(U_2|A) = P(U_2\cap A)/P(A) = 0,018/0,368 = 0,048$
That's incorrect, the professor uses Bayes' formula and he gets $18/53$
Why is my solution wrong?
$$P(U_2\mid A)=\frac{P(U_2\cap A)}{P(A)}.$$
$$P(A)=P(A\mid U_1)P(U_1)+P(A\mid U_2)P(U_2)=\frac5{100}\frac7{10}+\frac6{100}\frac3{10}=\frac{53}{1000}.$$
$$P(U_2\cap A)=P(A\mid U_2)P(U_2)=\frac6{100}\frac3{10}=\frac{18}{1000}.$$
I don't know why the Bayes formula had to be used, but based on the definitions and the data given the right result is given above.