Given the probability density function of $X$ (folded standard normal distributed) is:
$$f(x) = \frac{2}{\sqrt{2 \pi}} \exp\left(-\frac{x^2}{2}\right),\quad x \geqslant 0 $$
How can one show that $Z = |X|$ with probability $1/2$ and $Z=-|X|$ with probability $1/2$ has a standard normal distribution?
Please give me a hint only. Thanks!
(I tried to show that E(Z) = 0 and Var(Z) = 1, but it was not sufficient.)