Let $X$ be a discrete random variable with finite expectation, and let $a,b∈R$ whit $a≠0$.
Prove that the discrete random variable $Y=aX+b$ :
- holds for expectation $\mathsf E(Y)=a⋅\mathsf E(X)+b$,
- and for variance $\mathsf {Var}(Y)=a^2⋅\mathsf {Var}(X)$.
Suggestion: Consider the following theorem:
if $X$ is a discrete random variable, with $R_X$ rank and probability function $f_X$, and $g:R_X→R$ is a (measurable) function, then $\displaystyle \mathsf E(g(X))=\sum_{x\in R_X}~g(x)\cdot f_X(x)$.
The main problem is that I know what the theorem says, but I do not know how to use it. That is, I really do not know what values take $ g (x) $ nor $ f_X (x) $.
Could you explain the theorem and how would you use it for this demonstration?