We summarize a random variable X with its center (the mean, μX) and its typical spread (the standard deviation, σX), and now we want to see how that center and spread change when we shift, scale, or combine random variables.
1
Transforming a Single Random Variable
Suppose your morning commute X has a mean of μX=20 minutes and a standard deviation of σX=3 minutes. We want to find the new mean, standard deviation, and variance when we add a fixed number of minutes (X+5) or multiply every commute by a constant rate (10X).
Transforming a Single Random Variable
Text solution
Add a constant (X+5)Adding a guaranteed 5-minute wait slides every outcome up the number line by 5, which shifts the mean by 5 and leaves the gaps between fast, average, and slow days unchanged.
μX+5σX+5=20+5=25 minutes,=3 minutes
Multiply by a constant (10X)Paying $10 per minute stretches every outcome and every gap between outcomes by 10 (or by ∣b∣ if the multiplier b is negative, because spread is a distance and never goes negative).
μ10Xσ10X=10(20)=$200,=10(3)=$30
Square the spread to get the variance (σ2)Since variance is the area of a square with side length σ, stretching the standard deviation by 10 multiplies the variance by 102.
σ10X2=302=102⋅32=100⋅9=900
So a $10-per-minute payout averages $200, give or take $30.
2
Combining Independent Random Variables
Shifting and scaling handle one variable at a time, but often we combine two separate random variables. If a food truck's hourly taco sales X (μX=$100,σX=$8) and hourly drink sales Y (μY=$40,σY=$6) vary independently of each other, we want to find the mean and standard deviation of their sum X+Y and their difference X−Y.
Combining Independent Random Variables
Text solution
Add or subtract the meansFor the combined mean, just add or subtract the individual means.
μX+YμX−Y=100+40=$140,=100−40=$60
Square the standard deviations and add the variancesBecause X and Y are independent, including Y adds the same uncertainty whether we add Y or subtract Y, and the two spreads combine at a 90∘ right angle by the Pythagorean theorem.
σX+Y2=σX−Y2=σX2+σY2=82+62=64+36=100
Take the square root to get the combined standard deviationTaking the square root gives the hypotenuse of the right triangle of spreads.
σX+Y=σX−Y=σX2+σY2=100=$10
Total sales X+Y average $140 and the difference X−Y averages $60, and both vary by $10 from hour to hour.
When Y's spread sits at a right angle to X's spread, flipping Y from +Y to −Y leaves the area of its variance square σY2 positive and unchanged, so the hypotenuse σX2+σY2 has the exact same length whether we add or subtract Y.
For independent variables, pulling Y’s spread in the negative direction builds the same variance square and combined spread as pulling it in the positive direction.
3
Why Independence Matters for Spread
Adding variances with the Pythagorean theorem relies on X and Y sitting at a 90∘ angle, so before finding the spread of X+Y or X−Y, we have to check what happens when X and Y are linked to each other.
Why Independence Matters for Spread
For any two random variables X and Y, the rule for means works without any conditions:
μX+YμX−Y=μX+μY,=μX−μY
The variance rule σX2+σY2, on the other hand, only works when X and Y are independent, like two kids chosen at random in Ohio and California. When X and Y are linked together, like Saturday and Sunday temperatures in Chicago, or the same person weighed before and after a walk, they move together or cancel each other out, and σX2+σY2 no longer gives the true spread.
As the link between X and Y changes the angle between their spread arrows, the combined mean stays in the same place, while the combined spread matches the Pythagorean hypotenuse σX2+σY2 only at the 90∘ angle where X and Y are independent.
How the two variables move together changes their combined spread, while their combined mean stays at $140.
4
Scaling One Variable vs. Adding Multiple Variables
Checking for independence also clears up the difference between multiplying one random variable by 3 and adding three separate variables together. If a mystery pastry box has weight X with mean μX=10 oz and standard deviation σX=2 oz, we want to compare the mean and spread of weighing one box and tripling that number (3X) against weighing three separate boxes together (X1+X2+X3).
Scaling One Variable vs. Adding Multiple Variables
Text solution
Scale a single outcome (3X)Picking just one box and multiplying its weight by 3 triples both the average weight and whatever error that one box had.
μ3Xσ3X=3(10)=30 oz,=3(2)=6 oz
Add three independent outcomes (X1+X2+X3)Picking three separate boxes off the shelf gives three independent outcomes that can partially balance each other out, so we add their three variances.
μ3 separate boxesX1+X2+X3σX1+X2+X3=10+10+10=30 oz=22+22+22=4+4+4=12≈3.46 oz
Both methods average 30 oz, but three separate boxes have a spread of about 3.46 oz instead of 6 oz.
5
Mean and Spread of a Linear Combination
Now we can combine shifting, scaling, and adding variances in a single problem. Bowler X (μX=150,σX=10) and Bowler Y (μY=120,σY=8) bowl independently, and we want the mean and standard deviation of the contest score Total=2X−Y+50.
Mean and Spread of a Linear Combination
X:Y:μXμY=150,=120,σXσY=10=8
X,Y independent
Total=2X−Y+50
μTotal=?,σTotal=?
Text solution
Plug the means into the formulaPut μX=150 and μY=120 directly into 2X−Y+50.
μTotal=2(150)−120+50=300−120+50=230
Drop the constant shift and scale each standard deviationThe fixed +50 bonus adds no uncertainty, and multiplying X by 2 doubles its standard deviation before we combine the variables.
σ2XσY=2(10)=20,=8
Add the variances of the independent pieces and take the square rootBecause the bowlers are independent, we square each scaled spread and add them even though Y is subtracted.
σTotal=σ2X2+σY2=202+82=400+64=464≈21.54
The contest score has an expected value of 230 points, give or take about 21.54 points.
6
Probabilities for Sums and Differences of Normal Variables
When two independent random variables X and Y follow Normal distributions, any sum X+Y or difference X−Y is also Normally distributed. Using the two independent Normal bowlers X (μX=150,σX=10) and Y (μY=120,σY=8), we want to find the probability that their combined score X+Y reaches at least 300, and the probability that the lower-scoring bowler Y scores higher than X in a single game, P(Y>X).
Probabilities for Sums and Differences of Normal Variables
X
μXσX=150=10
100
120
140
160
180
Y
μYσY=120=8
100
120
140
160
180
P(X+Y≥300)=?
Text solution
1. Probability that the combined score is at least 300,P(X+Y≥300)
Find the mean and standard deviation of the Normal sum T=X+YAdd the means for the center, and add the variances for the spread.
Find the z-score for 300 and the area above itConvert the cutoff of 300 to standard deviations above the mean of 270.
z=12.81300−270=12.8130≈2.34⟹P(T≥300)≈0.0096
The two bowlers have about a 0.96% chance of hitting a combined score of 300 or more.
2. Probability that Player Y beats Player X,P(Y>X)
Turn the comparison into a single difference D=X−YPlayer Y beats Player X whenever X−Y is negative.
two moving scoresY>X⟺difference below 0X−Y<0
Find the mean and standard deviation of the Normal difference D=X−YSubtract the means, and add the variances because X and Y are independent.
μX−YσX−Y=150−120=30,=102+82=164≈12.81
Find the z-score at the boundary 0 and the left tail areaMeasure how far 0 sits below the mean difference of 30.
z=12.810−30=12.81−30≈−2.34⟹P(X−Y<0)≈0.0096
So Player Y has about a 0.96% chance of beating Player X in a single game.
As Player Y's Normal curve moves closer to Player X's curve, the single Normal curve for X−Y keeps the same width σX2+σY2 while its center μX−μY shifts toward 0, moving more of its left tail below the 0 boundary where Y>X.
For two independent Normal variables, the chance that Y beats X is always the area below zero on the single Normal curve for X−Y, whose spread stays fixed no matter where the averages sit.
Key concepts
Whenever you transform or combine random variables, separate your work into the mean and the spread:
Means follow regular arithmetic
Whatever the equation does (adding a constant, multiplying, or adding and subtracting variables), do the exact same arithmetic to the means, whether the variables are independent or not. For 2X−Y+50, the mean is μTotal=2μX−μY+50.
Spreads ignore constant shifts and scale with multipliers
Adding or subtracting a fixed number like +50 adds no uncertainty, so drop it when finding spread. Multiplying a single variable by b stretches its standard deviation by ∣b∣ (σ3X=3σX).
Independent variables always add variances
Before combining two variables, check that they are independent. If they are, scale each standard deviation first, square them into variances, and add the variances, even when subtracting the variables:
σX+Y=σX−Y=σX2+σY2
Key concept
When not to add variances: If X and Y are dependent (like Saturday and Sunday temperatures in the same city), you can still add the means μX+μY, but you cannot use σX2+σY2. And if a problem triples one single measurement (3X) instead of adding three separate independent measurements (X1+X2+X3), multiply σX by 3 rather than adding three variances.
Independent Normal combinations stay Normal
If X and Y are independent and Normal, X+Y and X−Y are Normal too. To compare two variables like P(Y>X), rewrite the comparison as a difference below zero (X−Y<0) and find the tail area below 0 on the Normal curve for X−Y.
7
Practice
1
A repair technician's job takes X hours, with a mean of 3 hours and a standard deviation of 0.5 hours. The company charges a flat $40 service fee plus $60 per hour, so the total bill is B=40+60X dollars. Find the mean, standard deviation, and variance of B.
Which part of 40+60X is a predictable flat shift, and which part stretches the hour-to-hour gaps?
Plug the mean time into the billing formula:
μB=40+60(3)=$220
For the standard deviation, drop the flat $40 shift (a common mistake is adding 40 to get 40+60(0.5)=$70, forgetting that a fixed fee adds zero uncertainty) and multiply by 60:
σB=60(0.5)=$30
Square the new standard deviation to get the variance (don't just multiply the old variance 0.25 by 60 to get 15):
σB2=302=900 dollars2
2
A coffee dispenser fills a cup with X mL of coffee (mean 350 mL, standard deviation 9 mL). A customer takes a single sip Y that removes a mean of 30 mL with a standard deviation of 12 mL. Assuming the cup fill and the sip size are independent, find the mean and standard deviation of the coffee remaining in the cup, X−Y.
Taking a sip subtracts from the average amount in the cup, but does an uncertain sip make the remaining amount more certain or less certain?
Subtract the means for the average amount left:
μX−Y=350−30=320 mL
Because X and Y are independent, add their variances even though Y is subtracted (don't subtract the spreads to get ∣9−12∣=3 mL or subtract the variances to get 122−92≈7.94 mL):
σX−Y=92+122=81+144=225=15 mL
3
For a randomly chosen commuter, let X be the time spent driving to work in the morning (mean 28 minutes, standard deviation 6 minutes) and Y be the time that same commuter spends driving home in the evening (mean 32 minutes, standard deviation 8 minutes). Can you find the mean and standard deviation of the commuter's total daily drive time, X+Y? Calculate what you can and explain what you cannot.
Check which rule works for any two variables and which rule requires X and Y to be independent, keeping in mind that both drives belong to the same commuter.
The mean rule always works whether X and Y are independent or not:
μX+Y=28+32=60 minutes
The standard deviation cannot be found (plugging into 62+82=10 minutes is wrong here) because X and Y are measured on the same commuter: someone who lives far from work will have a long drive both morning and evening, so X and Y are not independent.
4
The weight of a randomly chosen brick, X, has a mean of 5 pounds and a standard deviation of 0.4 pounds. Find the mean and standard deviation of (a) 4X, the result of weighing one brick and multiplying that weight by 4, and (b) X1+X2+X3+X4, the total weight of 4 bricks chosen independently.
In (a), how many bricks are actually weighed? In (b), how many separate variances are combined?
(a) Weighing one brick and multiplying by 4 scales both the mean and the standard deviation by 4:
μ4Xσ4X=4(5)=20 pounds,=4(0.4)=1.6 pounds
(b) Weighing 4 independent bricks adds their means and adds their 4 separate variances (don't treat 4 separate bricks as 4X to get 1.6 pounds, and don't stop at the variance 0.64 before taking the square root):
In an arcade game, a player earns 3 points per target hit (X), loses 2 points per hazard touched (Y), and gets a 15-point completion bonus, giving a total score of S=3X−2Y+15. Suppose X has mean 20 and standard deviation 4,Y has mean 5 and standard deviation 3, and X and Y are independent. Find the mean and standard deviation of S.
For the spread, what happens to the +15 bonus, and what are the scaled standard deviations of 3X and 2Y before you square and add them?
Plug the means directly into the score formula:
μS=3(20)−2(5)+15=65 points
For the spread, drop the +15 shift and scale the individual standard deviations to σ3X=3(4)=12 and σ2Y=∣−2∣(3)=6, then add their variances (don't subtract 62 because of the minus sign to get 122−62=108≈10.39, and don't forget to square the multipliers 3 and 2, which would give 3(42)+2(32)=66≈8.12):
σS=122+62=144+36=180≈13.42 points
6
At a drive-thru, the time X spent ordering is Normally distributed with a mean of 70 seconds and a standard deviation of 12 seconds, and the time Y spent waiting at the pickup window is independently Normally distributed with a mean of 110 seconds and a standard deviation of 16 seconds. What is the probability that a customer's total time X+Y exceeds 210 seconds?
Adding standard deviations straight across to get 12+16=28 seconds is the common mistake here, which gives z≈1.07 and 0.1423.Convert 210 seconds to a z-score and find the right tail area (not the left tail 0.9332).
Find the mean and standard deviation of the single Normal distribution for T=X+Y, then find the z-score for 210 seconds.
Because X and Y are independent and Normal, T=X+Y is Normal with:
(Adding standard deviations straight across to get 12+16=28 seconds is the common mistake here, which gives z≈1.07 and 0.1423.) Convert 210 seconds to a z-score and find the right tail area (not the left tail 0.9332):
z=20210−180=1.50⟹P(T>210)=P(Z>1.50)≈0.0668
7
In a track-and-field meet, Athlete X's shot put distance is Normally distributed with a mean of 16.2 meters and a standard deviation of 0.6 meters, and Athlete Y's distance is independently Normally distributed with a mean of 15.4 meters and a standard deviation of 0.8 meters. On a single throw each, what is the probability that Athlete Y throws farther than Athlete X,P(Y>X)?
Subtracting variances to get 0.82−0.62≈0.53 m is the main mistake, giving z≈−1.51 and 0.0655.Find the z-score at D=0 and shade the left tail where D<0 (not the right tail 0.7881 where X beats Y).
Define the difference D=X−Y. How does D compare to 0 when Athlete Y throws farther than Athlete X?
Define D=X−Y, so Athlete Y throws farther than Athlete X when D<0. Since X and Y are independent and Normal, D is Normal with:
(Subtracting variances to get 0.82−0.62≈0.53 m is the main mistake, giving z≈−1.51 and 0.0655.) Find the z-score at D=0 and shade the left tail where D<0 (not the right tail 0.7881 where X beats Y):