If random variables $X \in \mathcal X$ and $Y \in \mathcal Y$ are sampled jointly from a target distribution $\pi$, i.e. $(X, Y) \sim \pi(x, y)$, is $X$ sampled from the correct marginal?
In other words, is $(X, Y) \sim \pi(x, y) \implies X \sim \pi(x)$ true?
Can anyone please refer me to a book which contains the full proof?
$(X, Y) \sim \pi(x, y) \iff \forall A \subseteq \mathcal X, B \subseteq \mathcal Y$:
$$\mathbb P(X \in A, Y \in B) = \int_B \int_A \pi(x, y) dx dy.$$
Fix $C \subseteq \mathcal X$. Then \begin{align} \mathbb P(X \in C) &= \mathbb P(X \in C, Y \in \mathcal Y) \\ &= \int_C \int_{\mathcal Y} \pi(x, y) dy dx \\ &= \int_C \pi(x) dx \end{align} $\iff X \sim \pi(x)$.