Variance of Single RV
Var[X]:=E[(X−μ)2]
applying Linearity and Distributivity w.r.t addition:
Var[X]=E[X2−2μX+μ2]=E[X2]−2μE[X]+μ2=E[X2]−μ2
Y=CX
σCX2=C2σX2
Proof:
σY2=E[Y2]−E2[Y]=E[C2X2]−E[CX]2=C2(E[X2]−E[X]2)=C2σX2
Y=X+C
Suppose Y=X+C, C is a constant:
σX+C2=σX2
Proof 1:
Given (Proofs are in Linearity and Transformation):
μYfY(y)=μX+C=fX(y−C)
Thus:
σY2=EY[(Y−μY)2]=∫−∞∞(y−μY)2fY(y)dy=∫−∞∞(y−μY)2fX(y−C)dy=∫−∞∞(s+C−(μX+C))2fX(s)ds=EX[(X−μX)2]=σX2
Proof2:
with LOTUS the proof is simpler:
σY2=E[(Y−μY)2]=E{[(X+C)−(μX+C)]2}=E[(X−μX)2]=σX2
Covariance
variance between two r.v.
Cov(X,Y)=E[(X−μX)(Y−μY)]
also:
Cov(X,Y)=E[XY−μXY−μYX+μXμY]=E[XY]−μXμy
Covariance Matrix