I saw in a statistics book a problem.
Let $X$ be a distribution that gets $1$ for probability $0.4$ and $2$ for probability $0.6$. Compute the mean and variances of $Y=3X-2$ and $Y=3X^2-2$. I found formulas and solved the problem. But how one defines the distributions $3X-2$ and $3X^2-2$? Because I found that $3\cdot 0.4-2+4\cdot 0.6-2=1.2-2+2.4-2=-0.6\ne 1$.
I have read mathematics so I'm not afraid to see a formal definition of the distribution or how to transform them.