Combining Random Variables

Linear Combinations of Random Variables
For a random variable X, let...
- E(X)= expected value or mean
- Var(X)= variance
- SD(X)= standard deviation
A new distribution could be formed by combining random variables Given the mean and standard deviation a given distribution, we can combine random variables to find the combined mean, combined variance, and combined standard deviation of the new distribution.
Linear Rescaling of RV
A linear rescaling is a transformation of the form Y=aX+b
- E(aX+b)=aE(X)+b
- Var(aX+b)=a2Var(X)
- SD(aX+b)=∣a∣Var(X)
Combining RV for Weighted Averages
A linear combination of two random variables X and Y is in the form aX+bY where a weighted average is involved such that a+b=1.
- E(aX+bY)=aE(X)+bE(Y)
- Var(aX+bY)=a2Var(X)+b2Var(Y)
- SD(aX+bY)=a2Var(X)+b2Var(Y)
- E(aX−bY)=aE(X)−bE(Y)
- Var(aX−bY)=a2Var(X)+b2Var(Y)
- SD(aX−bY)=a2Var(X)+b2Var(Y)

Example: Linear Combination of Random Variables
Let L be a discrete random variable where E(L)=2,SD(L)=5.
- E(aX+b)=aE(X)+b
- Var(aX+b)=a2Var(X)
- SD(aX+b)=∣a∣Var(X)
(a) Find E(3L−4)
E(aX+b)=aE(X)+b
E(3L−4)=3(2)−4=2
(b) Find SD(−L+12)
SD(aX+b)=∣a∣V(X)
Tip: Imagine an invisible 1 in front of the L, so a=−1.
SD(−L+12)=∣−1∣SD(L)=(1)(5)=5
I personally prefer to solve for the variance first, then find the square-root of the variance to solve for the standard deviation:
V(aX+b)=a2V(X)
Var(−L+12)=(−1)2(5)2=25
SD=Var=25=5

Example: Combining Random Variables with Weighted Averages
Conrad invests in two portfolios, 40% in the Aggressive Portfolio and 60% in the Slow-and-Steady Portfolio. His wealth manager determined that the average rate of return in the Aggressive Portfolio is 14.5% with a standard deviation of 20% – risky! The Slow-and-Steady Portfolio has an average rate of return of 3.3% with a standard deviation of 1%.
Determine the mean rate of return, variance, and standard deviation of his portfolios. (Assume the two portfolios are independent.)
- E(aX+bY)=aE(X)+bE(Y)
- Var(aX+bY)=a2Var(X)+b2Var(Y)
- SD(aX+bY)=a2Var(X)+b2Var(Y)
a=0.4
b=0.6
Let Portfolio P=0.4X+0.6Y
Combined mean:
E(aX+bY)=aE(X)+bE(Y)
E(P)=0.4(14.5)+0.6(3.3)=7.78 (or 7.78%)
Combined variance:
Var(aX+bY)=a2Var(X)+b2Var(Y)
Var(P)=(0.4)2(20)2+(0.6)2(1)2=64.36 (or 64.36%)
Combined standard deviation:
SD(aX+bY)=a2Var(X)+b2Var(Y)
SD(P)=Var(P)=64.36=8.022 (or 8.022%)
Alternative Method:
Combined mean:
E(aX+bY)=aE(X)+bE(Y)
E(P)=0.4(0.145)+0.6(0.033)=0.0778 (or 7.78%)
Combined variance:
Var(aX+bY)=a2Var(X)+b2Var(Y)
Var(P)=(0.4)2(0.2)2+(0.6)2(0.01)2=0.006436*
*Note: The variance’s usefulness is limited here because the units are squared and not the same as the original data.
Combined standard deviation:
SD(aX+bY)=a2Var(X)+b2Var(Y)
SD(P)=Var(P)=0.006436=0.08022 (or 8.022%)
Practice: Combining Random Variables with Weighted Average
The midterm is worth 30% of your overall grade; the final exam is worth 70%.
The average grade on the midterm is 68% with a standard deviation of 12%.
The average grade on the final exam is 73% with a standard deviation of 16%
Functions of Two Independent Random Variables X and Y
Two random variables X and Y are independent if knowing the value of one of them does not affect the probabilities for the other one.
If X and Y are independent, we have these formulas:
- E(XY)=E(X)×E(Y)
- E(X+Y)=E(X)+E(Y)
- E(X−Y)=E(X)−E(Y)
- Var(X+Y)=Var(X)+Var(Y)
- Var(X−Y)=Var(X)+Var(Y)
The standard deviation is the square-root of the variance:
- SD(X+Y)=Var(X)+Var(Y)
- SD(X−Y)=Var(X)+Var(Y)
As you can see, there are a lot of formulas but they will all make sense after we do a bunch of examples.

Example: Combining Independent Random Variables
Let A, B be two discrete independent random variables with:
E(A)=10, SD(A)=5
E(B)=26, SD(B)=12
- E(XY)=E(X)×E(Y)
- E(X+Y)=E(X)+E(Y)
- E(X−Y)=E(X)−E(Y)
- Var(X+Y)=Var(X)+Var(Y)
- Var(X−Y)=Var(X)+Var(Y)
The standard deviation is the square-root of the variance:
- SD(X+Y)=SD(X−Y)=Var(X)+Var(Y)
(a) Find E(A+B)
E(A+B)=E(A)+E(B)=10+26=36
(b) Find SD(A+B)
Do not add standard deviations! Add variances first, then find the square-root of the combined variances.
SD(A+B)
=Var(A+B)
=Var(A)+Var(B)
=52+122
=169
=13
(c) Find SD(2A−B)
Do not subtract standard deviations! Add variances first, then find the square-root of the combined variances.
SD(2A−B)
=Var(2A−B)
=22Var(A)+(−1)2Var(B)
=4Var(A)+1Var(B)
=4⋅52+122
=100+144
=244
Suppose that certain car parts are manufactured so that their heights are independent of each other, with a mean of μ=31.2 cm and a standard deviation of σ=0.1 cm.
If 2 of these parts are stacked on top of each other to form a new part, what are the mean and standard deviation of this new part?
You have 50 job candidates to interview for a job at your firm. Each interview lasts an average of 12 minutes with a standard deviation of 3 minutes. What is the mean and standard deviation of the total time to interview all 50 candidates (not counting breaks in between)?