Let $X$ and $Y$ be two random variables that are equal in distribution, $X\overset{d}{=} Y$. Suppose that $g$ is a continuous function.
How to prove that $g(X) \overset{d}{=} g(Y)$ (if this is true)? I am trying to prove this ONLY from the definition of equality in distribution, but am having some trouble.
If someone can provide a proof of this it would be very much appreciated.