What exactly am I doing wrong in this problem

statistics

There are two local factories that produce microwaves. Each microwave produced at factory A is defective with probability $.05$, whereas each one produced at factory B is defective with probability $.01$. Suppose you purchase two microwaves that were produced at the same factory, which is equally likely to have been either factory A or factory B. If the first microwave that you check is defective, what is the conditional probability that the other one is also defective?

Ok so below is my attempts to this problem. Obviously what I got is wrong, but I'm confused on what I did that was wrong. I'm trying to figure out what is wrong with my understanding.
Note: I didn't know how to include fancy symbols like I see on other post so I just installed a picture instead.

My work:
My work

Best Answer

Use your notations: $D1$ for the event that the first one is defective and $D2$ for the event that the second is defective. You want to find $P(D2|D1)$.

$$P(D2|D1)=\frac{P(D2\cap D1)}{P(D1)}=\frac{P(D2\cap D1\cap A)+P(D2\cap D1\cap B)}{P(D1\cap A)+P(D1\cap B)}=\frac{P(D2\cap D1|A)P(A)+P(D2\cap D1| B)P(B)}{P(D1|A)P(A)+P(D1|B)P(B)}=\frac{0.05^2(0.5)+0.01^2(0.5)}{0.05(0.5)+0.01(0.5)}$$

Compare your writing and try to find out where you made mistakes. For example, your first equation after $P(D2|D1)$ is wrong. You know that $P(D1)=P(D1|A)P(A)+P(D1|B)P(B)$. You just need to treat "$D1\cap D2$" in the numerator as "$D1$" in the denominator.

Related Question