Statistics & Probability · Grade 12 and undergraduate

Combining Random Variables: Means and Variances of Sums

Quick answer

Totals and differences of random quantities are everywhere: the weight of a box and its contents, the gap between two runners' times. The mean of a sum or difference is the sum or difference of the means. For independent random variables the variances add, for X + Y and for X − Y alike, and the standard deviation is the square root of that sum. A change aX + b scales the standard deviation by |a| and ignores b. Sums and differences of independent normal variables are normal.

What you'll learn

  • Find the mean of a sum, difference or linear change of random variables
  • Find the standard deviation of a sum or difference of independent variables
  • Tell the sum of n independent copies from n times one variable
  • Compute probabilities for sums and differences of normal variables

The rules

For random variables XX and YY and constants aa and bb:

QuantityMeanVariance
aX+baX + baμX+ba\mu_X + ba2σX2a^2\sigma_X^2
X+YX + YμX+μY\mu_X + \mu_YσX2+σY2\sigma_X^2 + \sigma_Y^2 (if independent)
X−YX - YμX−μY\mu_X - \mu_YσX2+σY2\sigma_X^2 + \sigma_Y^2 (if independent)

The mean rules always hold. The variance rules need independence. Standard deviations never add; find the variance, then take the square root.

If XX and YY are independent and normal, X+YX + Y and X−YX - Y are normal too, so z-scores give their probabilities.

Why variances add, even when subtracting

Think of each variable as its mean plus a random error. In X−YX - Y, the errors combine as eX−eYe_X - e_Y. Because eYe_Y is as likely to be positive as negative, subtracting it spreads the result as much as adding it would. Squaring the combined error, the cross term 2eXeY2e_Xe_Y averages to 00 for independent variables, leaving σX2+σY2\sigma_X^2 + \sigma_Y^2 either way. That is the Pythagorean pattern: standard deviations combine like the sides of a right triangle, σ=σX2+σY2\sigma = \sqrt{\sigma_X^2 + \sigma_Y^2}.

Worked examples

Common mistakes

Practice problems

  1. E(X)=10E(X) = 10 and E(Y)=4E(Y) = 4. Find E(X−Y)E(X - Y) and E(3X+2)E(3X + 2).

    Answer

    66 and 3232

    Full solution

    Means pass straight through sums, differences and linear changes.

  2. XX and YY are independent with standard deviations 33 and 44. Find the standard deviations of X+YX + Y and X−YX - Y.

    Answer

    55 and 55

    Full solution

    Both have variance 9+16=259 + 16 = 25.

  3. XX has mean 1010 and standard deviation 33. Find the mean and standard deviation of 2X+52X + 5.

    Answer

    Mean 2525, standard deviation 66

    Full solution

    The +5+5 shifts the mean only; the factor 22 doubles the spread.

  4. Temperatures in Celsius have mean 2020 and SD 55. Find the mean and SD in Fahrenheit, F=1.8C+32F = 1.8C + 32.

    Answer

    Mean 6868°F, SD 99°F

    Full solution

    1.8(20)+32=681.8(20) + 32 = 68 and 1.8(5)=91.8(5) = 9.

  5. Three independent parts each weigh N(50,4)N(50, 4) grams. Find the mean and SD of their total.

    Answer

    Mean 150150 g, SD 43≈6.934\sqrt{3} \approx 6.93 g

    Full solution

    The variance is 3×16=483 \times 16 = 48.

  6. Adults’ weights are N(75,12)N(75, 12) kg. An elevator’s limit is 800800 kg. For 1010 random adults, find the chance the limit is exceeded.

    Answer

    About 0.0940.094

    Full solution

    The total has mean 750750 and SD 1210≈37.912\sqrt{10} \approx 37.9, so z≈1.32z \approx 1.32.

  7. Golfer X scores N(72,3)N(72, 3) and golfer Y scores N(74,4)N(74, 4), independently. Lower is better. Find the chance Y beats X.

    Answer

    About 0.340.34

    Full solution

    X−YX - Y has mean −2-2 and SD 55. Y wins when X−Y>0X - Y > 0: z=0.4z = 0.4, and P(Z>0.4)≈0.345P(Z > 0.4) \approx 0.345.

  8. A student says the SD of X−YX - Y is 8−6=28 - 6 = 2 when σX=8\sigma_X = 8 and σY=6\sigma_Y = 6. Correct it.

    Answer

    1010

    Full solution

    For independent variables, 64+36=10\sqrt{64 + 36} = 10. Subtracting adds uncertainty.

Frequently asked questions

What is the mean of X + Y?

E(X + Y) = E(X) + E(Y), always, whether or not X and Y are independent. Likewise E(X − Y) = E(X) − E(Y).

What is the variance of X + Y?

If X and Y are independent, Var(X + Y) = Var(X) + Var(Y). The standard deviation is the square root of that sum.

Why do variances add for X − Y too?

Subtracting an independent random quantity adds its uncertainty; it cannot cancel it. So Var(X − Y) = Var(X) + Var(Y).

What happens to the mean and SD under aX + b?

The mean becomes aμ + b and the standard deviation becomes |a|σ. Adding b shifts the distribution without changing its spread.

Is X₁ + X₂ the same as 2X?

No. Two independent copies have SD √2 σ, while doubling one value gives 2σ. Independent errors partly offset each other.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSS.MD.A.2Using Probability to Make Decisions(+) Calculate the expected value of a random variable; interpret it as the mean of the probability distribution.