Moments of Linear Combinations of Random Variables
Moments of Linear Combinations of Random Variables
A linear combination such as Z=aX+bY+c has two different moment rules. Its expectation uses signed coefficients directly, while its variance uses squared coefficients and a term for how the variables move together. Choose the rule for the quantity being asked about before substituting numbers.
Mean and spread
Linearity of expectation gives E(Z)=aE(X)+bE(Y)+c, whether or not X and Y are dependent. A fixed constant shifts every value of Z by the same amount, so it shifts the mean but contributes no variance. The coefficient signs matter for the mean; a negative weight subtracts the corresponding weighted mean.
For the spread, Var(Z)=a2Var(X)+b2Var(Y)+2abCov(X,Y). The squared weights express how scaling a random deviation changes its squared size. The last term, involving covariance, can raise or lower the variance depending on the signs of both weights and their joint movement.
Covariance and a reasonableness check
Covariance measures joint movement on the scale of the two variables. Under independence, covariance is zero and the two weighted variance contributions add. Variables can also be uncorrelated without being independent; zero covariance is enough for variance additivity, but it does not generally establish independence.
Any proposed covariance must satisfy ∣Cov(X,Y)∣≤Var(X)Var(Y), the product of the two standard deviations. Check that bound before trusting a numerical example. If Z has a physical unit, its variance has that unit squared; the mean retains the unit of Z.
Worked example
Suppose E(X)=2, E(Y)=5, Var(X)=1, Var(Y)=6, and Cov(X,Y)=0.5. For W=2X+3Y−4, the mean is E(W)=2(2)+3(5)−4=15. The variance is Var(W)=22(1)+32(6)+2(2)(3)(0.5)=4+54+6=64. The covariance is feasible because 0.5≤1⋅6.
Suppose Var(X) = 4, Var(Y) = 9, and Cov(X,Y) = 2. What is Var(X + Y)?
Let Var(X) = 3, Var(Y) = 5, and Cov(X,Y) = -1. For Z = 2X - Y, find Var(Z).