Three linearity/scaling laws hold for any random variable X and constants a,b.
(i) E(aX+b)=aE(X)+b.
Proof (discrete case; the continuous case is identical with integrals in place of sums). E(aX+b)=∑i(axi+b)f(xi)=a∑ixif(xi)+b∑if(xi)=aE(X)+b⋅1=aE(X)+b, using ∑if(xi)=1.
- Corollary 1 (b=0): E(aX)=aE(X).
- Corollary 2 (a=0): E(b)=b — the expectation of a constant is the constant itself.
(ii) V(X)=E(X2)−(E(X))2.
Proof. With μ=E(X): V(X)=E((X−μ)2)=E(X2−2μX+μ2)=E(X2)−2μE(X)+μ2=E(X2)−2μ2+μ2=E(X2)−μ2 (using μ constant and part (i)).
(iii) V(aX+b)=a2V(X).
Proof. V(aX+b)=E((aX+b−E(aX+b))2)=E((aX+b−aE(X)−b)2)=E(a2(X−E(X))2)=a2E((X−E(X))2)=a2V(X). …