Does E[X+Y]=E[X]+E[Y] need X and Y to be independent? What about Var(X+Y)=Var(X)+Var(Y)?

Probability and statistics, Expectation and variance
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you know which identities hold for every pair of random variables and which need uncorrelatedness.

Key idea

Expectation is always linear. The variance of a sum is Var(X)+Var(Y)+2 Cov(X,Y), so it adds only when Cov(X,Y)=0.

Steps

  1. Write E[X+Y]=∑x,y(x+y)p(x,y)=∑xx pX(x)+∑yy pY(y). Only the marginals appear, so no independence is needed.
  2. Expand Var(X+Y)=E[(X+Y−μX−μY)2]=Var(X)+Var(Y)+2 Cov(X,Y), where μX,μY are the means.
  3. The cross term vanishes if X and Y are uncorrelated, which includes the independent case.
  4. Extreme example: take Y=X. Then Var(X+Y)=Var(2X)=4 Var(X), not 2 Var(X), but E[X+Y]=2 E[X] still holds.

Common mistakes

How long your answer should be

4–5 sentences.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: If two events A and B both have positive probability and are mutually exclusive, can they be independent?
Next in Probability and statistics: In statistics and machine learning, what is the difference between probability and likelihood, and what is the idea behind maximum likelihood estimation (MLE)? If you toss a coin 10 times and get 7 heads, what is the MLE of its heads probability?