If we have P(A given Z) and also p(B given Z), which of the following two methods is correct if we want to calculate P(A and B), assuming A and B are independent? Most likely method 1 is correct, but can you explain why and even even better, provide an intuitive expalnation?
Method 1:
$$P(A \cap B | Z) = P(A | Z) \cdot P(B | Z) $$
$$ P(A \cap B) = \int P(A | Z) \cdot P(B | Z) f(Z)\,dz$$ Method 2 $$P(A)=\int P(A|Z)f(Z)\,dz$$ $$P(B)=\int P(B|Z)f(Z)\,dz$$ $$P(A \cap B) = P(A)*P(B)= \int P(A|Z)f(Z)\,dz * \int P(B|Z)f(Z)\,dz$$