Let $Z\sim\mathcal{N}(0,1)$ and $X$ be a discrete random variable with pmf
$\mathbb{P}(X = -1) = \mathbb{P}(X = 1) = \frac{1}{2}$ and is independent of $Z$. Define $Y = X|Z|$ and show that $Y$ has the same distribution as $Z$.
How would I start this?
Following TheoreticalEconomist's suggestion:
$$\mathbb{P}(Y\leq y) = \mathbb{P}(X|Z| \leq y) \\ = \mathbb{P}(-y \leq XZ \leq y) \\ = \mathbb{P}(-y \leq Z \leq y | X= 1) \mathbb{P}(X=1) + \mathbb{P}(-y\leq -Z \leq y|X=-1)\mathbb{P}(X=-1) \\ = \frac{1}{2}(2\mathbb{P}(-y\leq Z\leq y)) \\ = \mathbb{P}(-y \leq Z \leq y) $$ which doesn't seem to be the CDF of $Z$