0
$\begingroup$

Let's say we have two random variables $Z \in \mathcal{Z}$ and $X \in \mathcal{X}$ with joint density $p_{Z,X}(z,x)$ with respect to a base measure. The density is assumed to factor as $$ p_{Z,X}(z,x) = p_Z(z) p_{X|Z}(x|z),$$ where $p_Z$ is the marginal density of $Z$ and $p_{X|Z}$ the conditional density of $X|Z$. Let us also denote $p_X$ the density of $X$.

Now, let's say we are interested in computing the distribution of $X | X \in A$ , where $A \subset \mathcal{X}$. There are two ways of computing its density that may both sound reasonable: $$ p_1(x) = \int_{Z} p_Z(z | X \in A) p_{X|Z}(x|z, X \in A) dz$$ and $$ p_2(x) = \int_{Z} p_Z(z ) p_{X|Z}(x|z, X \in A) dz$$

Are they equivalent ? Is there a counter-example that shows they are not?

On the one hand, $p_1$ seems more correct but it may not be necessary to filter out twice the points that are not in $A$.

$\endgroup$

1 Answer 1

0
$\begingroup$

Your first answer is correct.

It's easier to see in the discrete case. For $x \in A$ you have $$ \begin{align} \Pr(X=x |X \in A) & = \frac{\Pr(X=x , X \in A) }{\Pr(X \in A)} = \sum_{z \in \mathbb{R}}\frac{\Pr(X=x,Z=z, X \in A)}{\Pr(X \in A)} \\ &= \sum_{z \in \mathbb{R}} \frac{ \Pr(Z=z, X \in A)}{\Pr(X \in A)} \frac{\Pr(X=x,Z=z,X \in A)}{ \Pr(Z=z, X \in A)} \\ & = \sum_{z \in \mathbb{R}} \Pr(Z=z | X \in A) \Pr(X=x|Z=z,X \in A), \end{align} $$ that is, $$ p_X(x|X \in A) = \sum_{z \in \mathbb{R}} p_Z(z|X \in A) p_{X|Z}(x|z,X \in A)\,. $$

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.