This course has been archived. The College Board updated AP Statistics for the 2026–27 school year, and the units and topics changed.
Go to the new AP® Statistics
5m left·0%
Reading Time: 5 min
Last Updated: February 25, 2026
Main Ideas: 4
Reading Time: 5 min
Last Updated: February 25, 2026
Main Ideas: 4

Topic 4.9 Notes – Combining Random Variables

Read aloud
You’ll work with linear transformations like Y=a+bXY = a + bX, and with sums or differences like X+YX + Y or X−YX - Y. The goal is to understand how the mean, standard deviation, and shape are affected.

1. Linear Transformations of a Random Variable

A linear transformation has the form
Y=a+bX Y = a + bX

  • a shifts every value (adds/subtracts a constant).
  • b rescales every value (multiplies/divides by a constant).

What Happens to the Distribution

For Y=a+bXY = a + bX:

μY=a+bμX \mu_Y = a + b\mu_X

σY=∣b∣σX \sigma_Y = |b|\sigma_X

Notice two patterns:

  • Adding/subtracting (a) changes the mean only, not the spread.
  • Multiplying/dividing (b) changes both the mean and the standard deviation.
  • The shape stays the same as long as b>0b > 0.
  • If b<0b < 0, the distribution is reflected (like flipping it across a vertical axis).

To see this in action, compare a normal distribution for XX with the transformed variable Y=10+2XY = 10 + 2X:

Effect of Y=10+2XY = 10 + 2X on a normal distribution

The new curve is still bell-shaped, but its center shifts and its spread increases because every value was multiplied by 2 and then shifted up by 10.

Quick Example

Suppose test scores have:

  • μX=70\mu_X = 70
  • σX=8\sigma_X = 8

If a teacher adds 5 points to every score:

  • New mean: 70+5=7570 + 5 = 75
  • New SD: still 88

If instead every score is multiplied by 1.1 (curve scaled):

  • New mean: 1.1(70)=771.1(70) = 77
  • New SD: 1.1(8)=8.81.1(8) = 8.8

Students often think adding 5 changes the SD. It doesn’t. Spread only changes when you multiply or divide.

2. Linear Combinations of Random Variables

Now we combine two random variables.

A linear combination looks like:

aX+bY aX + bY

This includes:

  • Sums X+YX + Y
  • Differences X−YX - Y
  • Weighted combos like 2X+0.5Y2X + 0.5Y

We care about how the mean and variance behave.

3. Means of Sums and Differences

This part is simple and always works, even if the variables are not independent.

μaX+bY=aμX+bμY \mu_{aX + bY} = a\mu_X + b\mu_Y

Special cases

  • If S=X+YS = X + Y, then
    μS=μX+μY\mu_S = \mu_X + \mu_Y
  • If D=X−YD = X - Y, then
    μD=μX−μY\mu_D = \mu_X - \mu_Y

Independence is not required for means.

Example

Let:

  • XX = time (minutes) to finish Part A, μX=30\mu_X = 30
  • YY = time (minutes) to finish Part B, μY=45\mu_Y = 45

If T=X+YT = X + Y, then:

μT=30+45=75 \mu_T = 30 + 45 = 75

In context:
The mean total time to complete both parts is 75 minutes.

Always name the variable and the situation. That wording matters on FRQs.

4. Variance and Standard Deviation of Sums and Differences

This is where independence matters.

Two variables are independent if knowing one gives no information about the distribution of the other.

If XX and YY are independent:

Var(aX+bY)=a2σX2+b2σY2 \text{Var}(aX + bY) = a^2\sigma_X^2 + b^2\sigma_Y^2

Then take the square root for SD.

Special cases

If S=X+YS = X + Y:

σS=σX2+σY2 \sigma_S = \sqrt{\sigma_X^2 + \sigma_Y^2}

If D=X−YD = X - Y:

σD=σX2+σY2 \sigma_D = \sqrt{\sigma_X^2 + \sigma_Y^2}

Notice something important:
You add variances even for subtraction.

Example

Suppose:

  • σX=4\sigma_X = 4
  • σY=3\sigma_Y = 3

If independent:

σX+Y=42+32=16+9=25=5 \sigma_{X+Y} = \sqrt{4^2 + 3^2} = \sqrt{16 + 9} = \sqrt{25} = 5

Students mess this up by:

  • Adding SDs directly (4 + 3 = 7 ❌)
  • Subtracting variances for differences ❌
  • Forgetting to square coefficients in aX+bYaX + bY

If independence is not stated, you cannot assume variances add.

Key Takeaways

For Y=a+bXY = a + bX, the mean becomes a+bμXa + b\mu_X and the SD becomes ∣b∣σX|b|\sigma_X.
Adding a constant changes the mean but leaves the SD alone.
Means of sums and differences always add or subtract normally.
Variances add only when the random variables are independent.
Standard deviations never add directly.
For both sums and differences of independent variables, you add the variances.

AP® is a trademark registered by the College Board, which is not affiliated with, and does not endorse this website.

Notes

1 credit used · 5/5 remaining