Exercise:
Let $X$ be an uniform discrete r.v. with four possible values: 1, 2, 3, 4. Let $Y$ be an exponential variable whose parameter is the value taken by $X$. So, if $X = 3$, $Y$ is Exp (3). Determine:
The probability $P(Y≤ 1/2 | X>2)$
The solution gives $P(Y≤ 1/2 | X>2) = 1/2 P(Y≤ 1/2|X=3) + 1/2 P(Y≤ 1/2|X=4)$
My first attempt at solving the question was:
$P(Y≤ 1/2 | X>2) = \dfrac{ P(Y≤ 1/2 \cap X> 2) }{P(X>2)} = \dfrac{ P((Y≤ 1/2 \cap X> 2) \cap X=3)+P((Y≤ 1/2 \cap X> 2) \cap X=4) }{P(X>2)} = \dfrac{ P(Y≤ 1/2 \cap X=3)+P(Y≤ 1/2 \cap X=4) }{P(X>2)} = \dfrac{ P(X=3)P(Y≤ 1/2 | X=3)+P(X=4)P(Y≤ 1/2 | X=4) }{P(X>2)} $
But this is incorrect, why?
Is the solution applying the law of total probability to a conditional probability? How is this done? Could I see the formula used?
Your work seems correct to me. Note also that $\mathbb P(X=3)=\mathbb P(X=4)=1/4$ and $$\mathbb P(X>2)=\mathbb P(X=3)+\mathbb P(X=4)=\frac12,$$ so...