Skip to content Study Mondo Free study resources for students from Grade 4 through AP and test prep. 24 courses, 700+ topics.
Courses Features Company Stay Ahead in School Free weekly study tips, practice sets, and exam strategies. Join 10,000+ students.
© 2026 Study Mondo. Built for students.
AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this website.
Combining Random Variables (Sums and Differences) - Interactive Lesson | Study Mondo
Combining Random Variables (Sums and Differences) - Complete Interactive Lesson Part 1: Random Variables 🎲 Discrete Random Variables
Part 1 of 7 — Probability Distributions
What Is a Random Variable?
A random variable assigns a numerical value to each outcome of a random process.
Type Values Examples Discrete Countable (finite or countably infinite) Number of heads in 10 flips, dice roll Continuous Any value in an interval Height, weight, time
🔑 Key Idea: A discrete random variable has a probability distribution that lists every possible value and its probability.
Probability Distribution Table
X X X 0 1 2 3 P ( X ) P(X) P ( X ) 0.1 0.3 0.4 0.2
Requirements:
Every probability is between 0 and 1: 0 l e q P ( X = x ) l e q 1 0 \\leq P(X = x) \\leq 1 0 l e qP ( X = x ) l e q 1
All probabilities sum to 1: s u m P ( X = x ) = 1 \\sum P(X = x) = 1 s u m P ( X
Reading the Table
From the table above:
P ( X = 2 ) = 0.4 P(X = 2) = 0.4 P ( X = 2 ) = 0.4
P ( X g e q 2 ) = P ( X = 2 ) + P ( X = 3 ) = 0.4 + 0.2 = 0.6 P(X \\geq 2) = P(X=2) + P(X=3) = 0.4 + 0.2 = 0.6 P ( X g e q 2
Probability Distribution Practice 🧮
Given: P ( X = 1 ) = 0.25 P(X=1) = 0.25 P ( X = 1 ) = 0.25 , P ( X = 2 ) = 0.35 P(X=2) = 0.35 P ( X = 2 ) = 0.35 , ,
Part 2: Probability Distributions 🎯 Expected Value (Mean of a Random Variable)
Part 2 of 7 — Expected Value
The Mean of a Discrete Random Variable
m u X = E ( X ) = s u m x i c d o t P ( x i ) \\mu_X = E(X) = \\sum x_i \\cdot P(x_i) m u X = E ( X ) = s
Part 3: Mean of a Discrete RV 📊 Variance & Standard Deviation of a Random Variable
Part 3 of 7 — Spread of a Distribution
Variance
t e x t V a r ( X ) = s i g m a X 2 = s u m ( x i − m u X ) 2 c d o t P ( x i ) \\text{Var}(X) = \\sigma_X^2 = \\sum (x_i - \\mu_X)^2 \\cdot P(x_i) t e x t Va r ( X ) = s i g m
Part 4: Variance & Standard Deviation ⚖️ Transforming Random Variables
Part 4 of 7 — Linear Transformations
Rules for Y = a + b X Y = a + bX Y = a + b X
Property Rule Mean m u Y = a + b m u X \\mu_Y = a + b\\mu_X m u
Part 5: Combining Random Variables 🔄 Combining Independent Random Variables
Part 5 of 7 — Sums & Differences
Rules for Independent Random Variables
If X X X and Y Y Y are independent :
Combination Mean Variance X + Y X + Y X + Y
Part 6: Problem-Solving Workshop 🏆 Problem-Solving Workshop
Part 6 of 7 — AP-Style Problems
Strategy for Random Variable Problems
Identify the random variable and its distribution
Calculate E ( X ) E(X) E ( X ) using s u m x c d o t P ( x ) \\sum x \\cdot P(x) s u m x c d o tP ( x )
Apply transformation rules if
Part 7: Mixed Review 📝 Review & Applications
Part 7 of 7 — Comprehensive Review
Key Formulas Summary
Concept Formula Expected Value E ( X ) = s u m x i P ( x i ) E(X) = \\sum x_i P(x_i) E ( X ) = s u m x i P ( x
=
x ) =
1
)
=
P ( X =
2 ) +
P ( X =
3 ) =
0.4 +
0.2 =
0.6
P ( X < 2 ) = P ( X = 0 ) + P ( X = 1 ) = 0.1 + 0.3 = 0.4 P(X < 2) = P(X=0) + P(X=1) = 0.1 + 0.3 = 0.4 P ( X < 2 ) = P ( X = 0 ) + P ( X = 1 ) = 0.1 + 0.3 = 0.4 P ( X = 3 ) = 0.30 P(X=3) = 0.30 P ( X = 3 ) = 0.30
P ( X = 4 ) = 0.10 P(X=4) = 0.10 P ( X = 4 ) = 0.10 1) P ( X l e q 2 ) P(X \\leq 2) P ( X l e q 2 ) ?
3) Do the probabilities sum to 1? (yes or no)
u
m
x i
c d o tP ( x i )
The expected value is the long-run average — if you repeated the random process many times, the average outcome would approach E ( X ) E(X) E ( X ) .
Worked Example X X X 0 1 2 3 P ( X ) P(X) P ( X ) 0.1 0.3 0.4 0.2
E ( X ) = 0 ( 0.1 ) + 1 ( 0.3 ) + 2 ( 0.4 ) + 3 ( 0.2 ) = 0 + 0.3 + 0.8 + 0.6 = 1.7 E(X) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2) = 0 + 0.3 + 0.8 + 0.6 = 1.7 E ( X ) = 0 ( 0.1 ) + 1 ( 0.3 ) + 2 ( 0.4 ) + 3 ( 0.2 ) = 0 + 0.3 + 0.8 + 0.6 = 1.7
⚠️ The expected value does NOT have to be a possible outcome. X X X can’t actually equal 1.7, but 1.7 is the long-run average.
Interpretation on the AP Exam “If we were to repeat this random process many, many times, the average value of X X X would be approximately 1.7.”
Expected Value Calculation 🧮
A game costs 5 t o p l a y . Y o u w i n 5 to play. You win 5 t o pl a y . Y o u w in 20 with probability 0.2, win 5 w i t h p r o b a b i l i t y 0.3 , a n d w i n 5 with probability 0.3, and win 5 w i t h p ro babi l i t y 0.3 , an d w in 0 with probability 0.5.
Let X X X = net gain (winnings minus cost).
1) X X X values: 15 , 15, 15 , 0, and u n d e r l i n e q u a d \\underline{\\quad} u n d er l in e q u a d (third net gain value)
2) E ( X ) = ? E(X) = ? E ( X ) = ? (expected net gain)
3) Is this game favorable for the player? (yes or no)
a X 2
=
s u m ( x i −
m u X ) 2
c d o tP ( x i )
Standard Deviation s i g m a X = s q r t t e x t V a r ( X ) \\sigma_X = \\sqrt{\\text{Var}(X)} s i g m a X = s q r t t e x t Va r ( X )
Worked Example Using our distribution: m u X = 1.7 \\mu_X = 1.7 m u X = 1.7
x x x x − m u x - \\mu x − m u ( x − m u ) 2 (x - \\mu)^2 ( x − m u ) 2 P ( x ) P(x) P ( x ) ( x − m u ) 2 c d o t P ( x ) (x-\\mu)^2 \\cdot P(x) ( x − m u ) 2 c d o tP ( x ) 0 -1.7 2.89 0.1 0.289 1 -0.7 0.49 0.3 0.147 2 0.3 0.09 0.4 0.036 3 1.3 1.69 0.2 0.338
s i g m a 2 = 0.289 + 0.147 + 0.036 + 0.338 = 0.81 \\sigma^2 = 0.289 + 0.147 + 0.036 + 0.338 = 0.81 s i g m a 2 = 0.289 + 0.147 + 0.036 + 0.338 = 0.81
s i g m a = s q r t 0.81 = 0.9 \\sigma = \\sqrt{0.81} = 0.9 s i g ma = s q r t 0.81 = 0.9
🔑 Standard deviation measures the typical distance of outcomes from the mean.
Variance Drill 🧮
A random variable X X X has: m u = 3 \\mu = 3 m u = 3 , and outcomes X = 1 , 3 , 5 X = 1, 3, 5 X = 1 , 3 , 5 each with probability 1 / 3 1/3 1/3 .
1) ( 1 − 3 ) 2 c d o t ( 1 / 3 ) = ? (1 - 3)^2 \\cdot (1/3) = ? ( 1 − 3 ) 2 c d o t ( 1/3 ) = ? (first term of variance calculation)
2) ( 3 − 3 ) 2 c d o t ( 1 / 3 ) = ? (3 - 3)^2 \\cdot (1/3) = ? ( 3 − 3 ) 2 c d o t ( 1/3 ) = ?
3) s i g m a 2 = ? \\sigma^2 = ? s i g m a 2 = ? (total variance, as a fraction like a/b)
Y
=
a +
b
m u X
Variance s i g m a Y 2 = b 2 s i g m a X 2 \\sigma_Y^2 = b^2 \\sigma_X^2 s i g m a Y 2 = b 2 s i g m a X 2
Standard Deviation $\sigma_Y =
🔑 Adding a constant shifts the center but does NOT change spread. Multiplying by a constant scales both center and spread.
Example: Temperature Conversion If X X X is temperature in Celsius with m u X = 20 \\mu_X = 20 m u X = 20 and s i g m a X = 5 \\sigma_X = 5 s i g m a X = 5 :
Y = 32 + 1.8 X Y = 32 + 1.8X Y = 32 + 1.8 X (Fahrenheit)
m u Y = 32 + 1.8 ( 20 ) = 68 \\mu_Y = 32 + 1.8(20) = 68 m u Y = 32 + 1.8 ( 20 ) = 68 °F
s i g m a Y = 1.8 ( 5 ) = 9 \\sigma_Y = 1.8(5) = 9 s i g m a Y = 1.8 ( 5 ) = 9 °F
The mean shifts AND scales; the standard deviation only scales (adding 32 has no effect on spread).
Transformation Practice 🧮
X X X has m u X = 50 \\mu_X = 50 m u X = 50 and s i g m a X = 10 \\sigma_X = 10 s i g m a X = 10 . Let Y = 2 X − 30 Y = 2X - 30 Y = 2 X − 30 .
1) m u Y = ? \\mu_Y = ? m u Y = ?
2) s i g m a Y = ? \\sigma_Y = ? s i g m a Y = ?
3) s i g m a Y 2 = ? \\sigma_Y^2 = ? s i g m a Y 2 = ? (variance of Y Y Y )
m u X + m u Y \\mu_X + \\mu_Y m u X + m u Y
s i g m a X 2 + s i g m a Y 2 \\sigma_X^2 + \\sigma_Y^2 s i g m a X 2 + s i g m a Y 2
X − Y X - Y X − Y m u X − m u Y \\mu_X - \\mu_Y m u X − m u Y s i g m a X 2 + s i g m a Y 2 \\sigma_X^2 + \\sigma_Y^2 s i g m a X 2 + s i g m a Y
⚠️ Critical: Variances always ADD , even for differences! Standard deviations do NOT simply add or subtract.
Why Variances Add for Differences Think of it this way: whether you add or subtract, the uncertainty (variability) in each variable contributes to the total uncertainty. Subtracting doesn’t reduce uncertainty — it compounds it.
Example X X X : exam score, m u X = 75 \\mu_X = 75 m u X = 75 , s i g m a X = 8 \\sigma_X = 8 s i g m a X = 8
Y Y Y : quiz score, m u Y = 85 \\mu_Y = 85 m u Y = 85 , s i g m a Y = 6 \\sigma_Y = 6 s i g m a Y = 6
X + Y X + Y X + Y : m u = 160 \\mu = 160 m u = 160 , s i g m a 2 = 64 + 36 = 100 \\sigma^2 = 64 + 36 = 100 s i g m a 2 = 64 + 36 = 100 , s i g m a = 10 \\sigma = 10 s i g ma = 10
X − Y X - Y X − Y : m u = − 10 \\mu = -10 m u = − 10 , s i g m a 2 = 64 + 36 = 100 \\sigma^2 = 64 + 36 = 100 s i g m a 2 = 64 + 36 = 100 , s i g m a = 10 \\sigma = 10 s i g ma = 10
Combining Variables 🧮
X X X : m u X = 100 \\mu_X = 100 m u X = 100 , s i g m a X = 12 \\sigma_X = 12 s i g m a X = 12 . Y Y Y : m u Y = 80 \\mu_Y = 80 m u Y = 80 , s i g m a Y = 5 \\sigma_Y = 5 s i g m a Y = 5 . Independent.
1) E ( X + Y ) = ? E(X + Y) = ? E ( X + Y ) = ?
2) t e x t V a r ( X − Y ) = ? \\text{Var}(X - Y) = ? t e x t Va r ( X − Y ) = ?
3) s i g m a X + Y = ? \\sigma_{X+Y} = ? s i g m a X + Y = ? (round to 1 decimal)
Y = a + b X Y = a + bX Y = a + b X
Combine using variance addition for independent variables
Interpret in context for full AP credit
AP Exam Tip When asked to interpret expected value:
“If [process] were repeated many times, the average [variable] would be approximately [value].”
When asked to interpret standard deviation:
“The [variable] typically varies by about [value] from the mean of [mean].”
Insurance Problem 🧮
An insurance company charges 300 / y e a r . C l a i m s : 300/year. Claims: 300/ ye a r . Cl aim s : 0 (prob 0.9), 1000 ( p r o b 0.08 ) , 1000 (prob 0.08), 1000 ( p ro b 0.08 ) , 5000 (prob 0.02).
1) Expected claim per customer?
2) Expected profit per customer?
3) Standard deviation of claims? (round to nearest dollar)
i
)
Variance t e x t V a r ( X ) = s u m ( x i − m u ) 2 P ( x i ) \\text{Var}(X) = \\sum(x_i - \\mu)^2 P(x_i) t e x t Va r ( X ) = s u m ( x i − m u ) 2 P ( x i )
Linear Transform Mean E ( a X + b ) = a E ( X ) + b E(aX + b) = aE(X) + b E ( a X + b ) = a E ( X ) + b
Linear Transform Var t e x t V a r ( a X + b ) = a 2 t e x t V a r ( X ) \\text{Var}(aX + b) = a^2 \\text{Var}(X) t e x t Va r ( a X + b ) = a 2 t e x t Va r ( X )
Sum of Independent t e x t V a r ( X p m Y ) = t e x t V a r ( X ) + t e x t V a r ( Y ) \\text{Var}(X \\pm Y) = \\text{Var}(X) + \\text{Var}(Y) t e x t Va r ( X p mY ) = t e x t Va r ( X ) + t e x t Va r ( Y )
Common Mistakes on the AP Exam
Adding standard deviations instead of variances
Subtracting variances for X − Y X - Y X − Y
Forgetting that E ( X ) E(X) E ( X ) doesn’t have to be a possible value
Confusing “expected value” with “most likely value”
Final Challenge 🧮
X X X : m u = 20 \\mu = 20 m u = 20 , s i g m a = 3 \\sigma = 3 s i g ma = 3 . Y Y Y : m u = 15 \\mu = 15 m u = 15 , s i g m a = 4 \\sigma = 4 s i g ma = 4 . Independent.
1) E ( 2 X + Y ) = ? E(2X + Y) = ? E ( 2 X + Y ) = ?
2) t e x t V a r ( 2 X + Y ) = ? \\text{Var}(2X + Y) = ? t e x t Va r ( 2 X + Y ) = ?
3) s i g m a 2 X + Y = ? \\sigma_{2X+Y} = ? s i g m a 2 X + Y = ? (round to 2 decimals)
2