kevolution
Member
In the study notes it mentions var(X-Y) = var(X) + var(Y). Is this a typo? Or is the RHS really suppose to be addition not subtraction. Thanks!
Oh man David - this is the good stuff!I just wanted to add, and i assume the note reflects, that var(X-Y) = var(X) + var(Y) and Var(aX+bY) = (a^2)var(X) + (b^2)var(Y) assume independence -> COV(X,Y) = 0.
Brian's formula is a special case of var(aX + bY) = a^2*var(X) + b^2*var(Y) + 2*a*b*cov(X,Y) where the third term drops out if X and Y are independent. If they aren't independent, we can continue with his logic (!):
var(aX - bY) = var[aX + (-b)Y] = a^2*var(X) + (-b)^2*var(Y) + 2*a*(-b)*cov(X,Y) = a^2*var(X) + b^2*var(Y) - 2*a*b*cov(X,Y)
... while i'm here, I do like to remind that var(X) = cov(X,X), so we can generalize this even further if we refer to a covariance property (the only reason to do this, I suppose, is for a deeper understanding), see https://en.wikipedia.org/wiki/Covariance#Properties where we have a pretty cool expansion:
cov(aX + bY, cW + dV) = ac*cov(X,W) + ad*cov(X,V) + bc*cov(Y,W) + bd*cov(Y,V); but if we want var(aX + bY) that is just cov(aX + bY, aX + bY) which becomes:
cov(aX + bY, aX + bY) = a^2*cov(X,X) + ab*cov(X,Y) + ba*cov(Y,X) + b^2*cov(Y,Y)
= a^2*cov(X,X) + b^2*cov(Y,Y) + 2*ab*cov(X,Y)
= a^2*var(X) + b^2*var(Y) + 2*ab*cov(X,Y). I hope that's interesting!