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 to play. You win $20 with probability 0.2, win $5 with probability 0.3, and win $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/year. Claims: $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
โ