Wize Probability Theory Textbook > Joint and Multivariate Distributions

Moments of Linear Combinations of Random Variables

Moments of Linear Combinations of Random Variables

A linear combination such as Z=aX+bY+cZ=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)+cE(Z)=aE(X)+bE(Y)+c, whether or not XX and YY are dependent. A fixed constant shifts every value of ZZ 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)\operatorname{Var}(Z)=a^2\operatorname{Var}(X)+b^2\operatorname{Var}(Y)+2ab\operatorname{Cov}(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)|\operatorname{Cov}(X,Y)|\leq\sqrt{\operatorname{Var}(X)\operatorname{Var}(Y)}, the product of the two standard deviations. Check that bound before trusting a numerical example. If ZZ has a physical unit, its variance has that unit squared; the mean retains the unit of ZZ.

Worked example

Suppose E(X)=2E(X)=2, E(Y)=5E(Y)=5, Var⁡(X)=1\operatorname{Var}(X)=1, Var⁡(Y)=6\operatorname{Var}(Y)=6, and Cov⁡(X,Y)=0.5\operatorname{Cov}(X,Y)=0.5. For W=2X+3Y−4W=2X+3Y-4, the mean is E(W)=2(2)+3(5)−4=15E(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\operatorname{Var}(W)=2^2(1)+3^2(6)+2(2)(3)(0.5)=4+54+6=64. The covariance is feasible because 0.5≤1⋅60.5\leq\sqrt{1\cdot6}.



Let E(X) = 4 and E(Y) = 7. For Z = 3X - 2Y + 5, what is E(Z)?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Suppose Var(X) = 4, Var(Y) = 9, and Cov(X,Y) = 2. What is Var(X + Y)?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let Var(X) = 3, Var(Y) = 5, and Cov(X,Y) = -1. For Z = 2X - Y, find Var(Z).

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors