U4.8 Combining Random Variables
Master AP Statistics 4.8: transform random variables with Y=a+bX and combine independent variables where means add or subtract but variances always add.
What you'll do in this lesson
A voice-first session with the Crimsora tutor on U4.8 Combining Random Variables, then targeted practice and FRQs — with the tutor adapting to where you get stuck.
What this lesson covers
By now you know how to find the mean and standard deviation of a single random variable. Topic 4.8 asks a bigger question: what happens when you scale a variable, shift it, or add two variables together? These situations show up constantly — combining the weights of two packages, scaling a temperature from Celsius to Fahrenheit, or finding the difference between two test scores.
The rules are short but easy to misapply. The single most tested idea in this lesson is that when you combine independent random variables, you add their variances — even when you subtract their means. Get comfortable moving between standard deviation and variance, and this topic becomes reliable points on the exam.
The rules are short but easy to misapply. The single most tested idea in this lesson is that when you combine independent random variables, you add their variances — even when you subtract their means. Get comfortable moving between standard deviation and variance, and this topic becomes reliable points on the exam.
Transforming a Single Random Variable
A linear transformation takes a random variable and produces a new variable , where shifts the distribution and scales it. The rules follow directly from how center and spread respond to these operations.
Adding a constant slides every value over, so it changes the mean by but does not change the spread. Multiplying by stretches or compresses the distribution, which affects both center and spread.
Two things trip students up. First, adding a constant never changes standard deviation or variance — spread is about distances between values, and shifting everything equally leaves those distances unchanged. Second, the absolute value matters because standard deviation can never be negative. If you multiply by , the spread grows by a factor of , not . On the exam, you may be given and and asked for the mean and SD after a real-world rescaling, such as converting units or applying a fee.
Adding a constant slides every value over, so it changes the mean by but does not change the spread. Multiplying by stretches or compresses the distribution, which affects both center and spread.
| Quantity | Rule | Why |
|---|---|---|
| Mean | shifting and scaling both move the center | |
| Standard deviation | only scaling changes spread; sign ignored | |
| Variance | variance scales by the square |
Combining Two Random Variables: Means
When you form a sum or a difference , the means always combine in the obvious way, and this is true whether or not and are independent.More generally, for a linear combination , the mean is . This property is called linearity of expectation, and it holds unconditionally.
A common exam setup gives you the mean number of minutes for two separate tasks and asks for the expected total time. You simply add the means. If a problem describes the difference between two quantities — say, how much taller one plant is than another on average — subtract the means. The subtlety is never in the means; it is always in the spread, which the next section handles. Keep the mean calculation clean and simple so you can focus your attention on the variance rule, where mistakes actually happen.
A common exam setup gives you the mean number of minutes for two separate tasks and asks for the expected total time. You simply add the means. If a problem describes the difference between two quantities — say, how much taller one plant is than another on average — subtract the means. The subtlety is never in the means; it is always in the spread, which the next section handles. Keep the mean calculation clean and simple so you can focus your attention on the variance rule, where mistakes actually happen.
Combining Two Random Variables: Variances Always Add
Here is the rule that defines this topic: when and are independent, the variances add for both sums and differences.Notice both formulas are identical. Even when you subtract the variables, you add the variances. The reason is that subtracting introduces more uncertainty, not less — combining two sources of random variation always increases total variability, regardless of the sign.
To get the standard deviation, take the square root at the very end:The number one error students make is adding standard deviations directly, like . This is wrong. You must convert to variance, add, then convert back. A second error is trying to subtract variances for a difference; this can produce a negative number under the square root, a clear signal you broke the rule.
Independence is required. If the exam does not state or imply that the variables are independent, you cannot add the variances using this simple rule. For a general linear combination with independence, .
To get the standard deviation, take the square root at the very end:The number one error students make is adding standard deviations directly, like . This is wrong. You must convert to variance, add, then convert back. A second error is trying to subtract variances for a difference; this can produce a negative number under the square root, a clear signal you broke the rule.
Independence is required. If the exam does not state or imply that the variables are independent, you cannot add the variances using this simple rule. For a general linear combination with independence, .
How the Exam Tests This
AP questions on 4.8 usually appear as short multiple-choice items or as a part of a larger free-response problem. Watch for these signature setups.
One classic form combines a transformation with a combination: you scale each variable first, then add or subtract. Apply , remembering to square the coefficients.
A frequent trap distinguishes between the sum of two independent copies of a variable, , and a single scaled variable, . These are different. For , variance is . For , variance is . Read carefully: two separate objects means add, one object scaled means use . On free-response, always justify independence before adding variances to earn full credit.
One classic form combines a transformation with a combination: you scale each variable first, then add or subtract. Apply , remembering to square the coefficients.
| Situation | Mean | Variance (independent) |
|---|---|---|
Key terms
- Linear transformation.
- An operation of the form that shifts a random variable by and scales it by .
- Linearity of expectation.
- The property that , which holds whether or not the variables are independent.
- Independent random variables.
- Two variables where the value of one gives no information about the other; required for the simple variance-addition rule.
- Variance.
- The square of the standard deviation, ; the quantity that adds when combining independent random variables.
- Standard deviation.
- A measure of spread, always non-negative; equals the square root of variance and must be found last when combining variables.
- Linear combination.
- An expression built from scaled random variables, with variance under independence.
Worked example
A coffee shop's morning revenue has mean dollars and standard deviation dollars. Its afternoon revenue has mean dollars and standard deviation dollars. Morning and afternoon revenues are independent. Find the mean and standard deviation of the total daily revenue , and of the difference .
Start with the means, which add for a sum and subtract for a difference.
For the total: dollars.
For the difference: dollars.
Now the spread. Because the two revenues are independent, variances add for both the sum and the difference. First convert standard deviations to variances: and .
For the total: , so dollars.
For the difference: as well, so dollars.
Notice both the sum and the difference have the same standard deviation of 50 dollars, even though the means differ. That is the key lesson: subtracting the variables does not subtract the variability. A tempting wrong answer adds standard deviations directly to get , which ignores the required conversion to variance and back.
For the total: dollars.
For the difference: dollars.
Now the spread. Because the two revenues are independent, variances add for both the sum and the difference. First convert standard deviations to variances: and .
For the total: , so dollars.
For the difference: as well, so dollars.
Notice both the sum and the difference have the same standard deviation of 50 dollars, even though the means differ. That is the key lesson: subtracting the variables does not subtract the variability. A tempting wrong answer adds standard deviations directly to get , which ignores the required conversion to variance and back.
Practice questions
Random variables and are independent with and . What is the standard deviation of ?
Answer:
Variances add even for a difference: . The standard deviation is . Choosing 7 comes from subtracting standard deviations, and 17 comes from adding them; both skip the required variance step.
The weight of one apple has mean pounds and standard deviation pounds. A bag holds 4 apples whose weights are independent. Find the mean and standard deviation of the total weight of the bag.
Answer: Mean pounds; standard deviation pounds.
The total is , four independent copies. The mean is pounds. Variances add: , so pounds. This differs from (one apple scaled), which would give pounds — a common trap.
A random variable has and . Define . Find and .
Answer: and .
Using with and : . For spread, . The absolute value ensures the standard deviation stays positive even though is negative; the constant 100 has no effect on spread.
FAQ
- Why do variances add when I subtract two random variables?
- Subtracting still combines two independent sources of randomness, and combining uncertainty always increases total variability. The negative sign affects the mean but gets squared away in the variance calculation, since . Adding variances for both sums and differences is the correct rule.
- Can I just add standard deviations instead of variances?
- No. Standard deviations do not add. You must square each to get variance, add the variances, then take the square root. Adding standard deviations directly is the most common mistake on this topic and produces a wrong answer.
- What is the difference between and ?
- scales a single variable, giving variance . adds two independent copies, giving variance . They have the same mean but different spreads, so read the problem carefully.
- Do I always need independence to combine random variables?
- Means always add or subtract without any independence assumption. But the simple rule of adding variances requires independence. If the variables are not independent, you cannot use , and the AP exam will not ask you to combine variances without stating independence.
Learn this with a teacher, not a page
The Crimsora tutor teaches U4.8 Combining Random Variables live — explaining on a whiteboard, asking you questions, and adapting to where you get stuck.