Skip to main content
United StatesStatisticsSyllabus dot point

How do the mean and standard deviation change when we add, subtract, or rescale random variables?

Topic 4.9 Combining Random Variables: apply the rules for the mean and variance of a linear transformation and of sums and differences of random variables, adding variances (not standard deviations) for independent variables.

A focused answer to AP Statistics Topic 4.9, on transforming and combining random variables, how means and variances behave under scaling and addition, the add-the-variances rule for independence, and why variances add for differences too, with worked calculations.

Generated by Claude Opus 4.810 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. Linear transformations
  3. Sums and differences
  4. Why variances add, even for a difference
  5. Putting the rules together
  6. Try this

What this topic is asking

The College Board (Topic 4.9) wants you to apply the rules for the mean and variance of a linear transformation (aX+baX + b) and of sums and differences of random variables, in particular that for independent variables you add the variances (never the standard deviations).

Linear transformations

Two things happen separately. Adding a constant bb slides every value (and the mean) up by bb but leaves the spread unchanged, because shifting everything equally does not change how spread out the values are. Multiplying by aa stretches the values, so both the mean and the standard deviation scale by aa (the variance by a2a^2). This is why converting units (such as Celsius to Fahrenheit) changes the standard deviation by the multiplier but the added constant does not.

Sums and differences

The mean rule is intuitive: the average of a sum is the sum of the averages, with no independence needed. The variance rule is the one to drill: for independent variables you combine the variances, then square-root to get the standard deviation. Because 32+42=253^2 + 4^2 = 25 gives 25=5\sqrt{25} = 5, not 3+4=73 + 4 = 7, adding standard deviations directly overstates the spread.

Why variances add, even for a difference

The result that surprises students most is that the variance of a difference is the sum of the variances, the same as for a sum. The reason is that variance measures variability, and combining two independent random quantities makes the result more variable whether you add or subtract them, because each one's fluctuations contribute uncertainty regardless of the sign in front. Subtracting YY does not cancel YY's variability; it still injects it. (The minus sign affects the mean, which is why μXY=μXμY\mu_{X-Y} = \mu_X - \mu_Y, but not the spread.) This matters enormously in inference: the standard deviation of a difference of two independent sample means or proportions (Topics 5.6 and 5.8) is built by adding the two variances and square-rooting, which is exactly this rule. The independence condition is essential, the add-the-variances formula requires XX and YY to be independent, so on the exam you should state that the variables are independent before using it.

Putting the rules together

Many problems chain these rules: scale a variable, then add it to another, or sum several independent copies. The reliable approach is to handle the mean and the variance separately, applying the right rule at each step, and only convert to a standard deviation at the very end by square-rooting the final variance. For nn independent copies of the same variable XX, the sum has mean nμXn\mu_X and variance nσX2n\sigma_X^2 (so standard deviation nσX\sqrt{n}\,\sigma_X), which previews why a sample mean's standard deviation shrinks by n\sqrt{n} in Unit 5. Keeping the bookkeeping in variances until the end avoids the cardinal error of adding standard deviations partway through. This separation, means add linearly, variances add (for independent variables) and only then take the root, is the master skill of Topic 4.9 and the computational backbone of the sampling-distribution and inference units.

Try this

Q1. Independent XX and YY have σX=6\sigma_X = 6, σY=8\sigma_Y = 8. Find σXY\sigma_{X-Y}. [2 points]

  • Cue. Variances add for a difference: σXY2=62+82=100\sigma_{X-Y}^2 = 6^2 + 8^2 = 100, so σXY=10\sigma_{X-Y} = 10.

Q2. A variable WW has sd 44. Find the sd of 2W+52W + 5. [1 point]

  • Cue. Adding 55 does not change spread; multiplying by 22 doubles the sd: σ2W+5=2(4)=8\sigma_{2W+5} = 2(4) = 8.

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2019 (style)1 marksSection I (multiple choice). Independent random variables XX and YY have σX=3\sigma_X = 3 and σY=4\sigma_Y = 4. What is the standard deviation of X+YX + Y? (A) 77 (B) 55 (C) 11 (D) 2525
Show worked answer →

The correct answer is (B).

For independent variables, variances add: σX+Y2=σX2+σY2=32+42=9+16=25\sigma_{X+Y}^2 = \sigma_X^2 + \sigma_Y^2 = 3^2 + 4^2 = 9 + 16 = 25, so σX+Y=25=5\sigma_{X+Y} = \sqrt{25} = 5.

(A) wrongly adds the standard deviations (3+43 + 4). (D) is the variance, not the standard deviation. (C) is unfounded. You add variances, then square-root, giving 55.

AP 2021 (style)4 marksSection II (free response). A coffee machine dispenses an amount XX with mean 250250 ml and standard deviation 55 ml; the cup weight YY is independent with mean 1515 g and standard deviation 11 g. (a) A new variable is total served T=XT = X in two independent cups. Find the mean and standard deviation of TT. (b) For a single cup, find the mean and standard deviation of 3X3X (a triple order). (c) Explain why standard deviations are not simply added for independent sums, justifying in context.
Show worked answer →

A 4-point question on combining and transforming random variables.

(a) (2 points) T=X1+X2T = X_1 + X_2 for two independent cups: μT=250+250=500\mu_T = 250 + 250 = 500 ml (1 point); σT2=52+52=50\sigma_T^2 = 5^2 + 5^2 = 50, so σT=507.07\sigma_T = \sqrt{50} \approx 7.07 ml (1 point).
(b) (1 point) 3X3X: μ3X=3(250)=750\mu_{3X} = 3(250) = 750 ml and σ3X=3(5)=15\sigma_{3X} = 3(5) = 15 ml (multiplying a variable by a constant multiplies the standard deviation by that constant).
(c) (1 point) Variances (not standard deviations) add for independent variables; adding standard deviations would overstate the spread, since variability partly cancels, in context the two cups' deviations do not simply pile up.

Markers reward adding variances for the independent sum, scaling the standard deviation by the constant for 3X3X, and explaining why variances (not standard deviations) add.

Related dot points

Sources & how we know this