Instant PDF download, name-and-email checkout. Complete Book Bundle: every Economics, Statistics, Mathematics and Econometrics book
Statistics

Combining Random Variables: Mean and Standard Deviation of Sums and Differences

Learn how to combine random variables: means add or subtract, variances always add for independent variables. Worked examples, chart and exam practice.

In 30 seconds
  • When you add or subtract random variables, the means behave simply: \(E(X \pm Y) = E(X) \pm E(Y)\).
  • Spread does not behave simply. For independent variables the variances add, for sums and for differences alike, so \(\sigma_{X \pm Y} = \sqrt{\sigma_X^2 + \sigma_Y^2}\).
  • Standard deviations never add directly. Adding them overstates the spread and gives the wrong probabilities.
  • The case answer: a student whose walk and bus ride add to a mean of 36 minutes, with SD 5.39 minutes, is late for a 46-minute window only about 3% of the time, not the 8% you get by adding SDs.
  • Exam point: write the variance line first, state “independent”, and only then take the square root. Mark schemes typically credit that working.

The case: will Sara make her 9:00 lecture?

Sara is a first-year student. Every morning she walks from her flat to the bus stop and then takes the bus to campus. She has timed both parts of the journey for a full term. (The figures are illustrative.)

  • The walk to the stop, including the wait for the bus, takes on average 12 minutes, with a standard deviation of 2 minutes.
  • The bus ride takes on average 24 minutes, with a standard deviation of 5 minutes, because traffic varies a lot.

Her first lecture starts at 9:00. She leaves home at 8:14, which gives her a 46-minute window. Both parts of the trip are roughly normal, and a slow walk does not make the bus slower, so the two times are independent.

Sara wants one number: how often will she be late? To answer that she needs the distribution of her total journey time, \(T = W + B\). The mean is easy. The standard deviation is where most people go wrong, and the size of the error matters. One method says she is late about 1 day in 13. The correct method says about 1 day in 32. Over a semester of 60 lectures that is the difference between roughly 5 late arrivals and roughly 2.

The concept: combining random variables

A random variable is a number whose value depends on chance: the time of a bus ride, the weight of a bag of rice, the score on a test. Very often the quantity we care about is not one random variable but a combination of several. A total journey is a walk plus a ride. A profit is revenue minus cost. A gap between two runners is one time minus another. A week of sales is seven days added together.

So we need rules that turn the means and standard deviations of the parts into the mean and standard deviation of the whole. There are only two rules to learn, but they work in very different ways.[1]

The first rule is about centre. Means combine exactly as the variables do. If you add the variables, add the means. If you subtract, subtract. This works whether or not the variables are independent.

The second rule is about spread. Here the natural quantity is the variance, not the standard deviation. When the variables are independent, their variances add. They add for a sum, and, surprisingly to most students, they also add for a difference. Subtracting a random quantity does not cancel uncertainty. It brings in more.

Key termLinear combination of random variables: a new random variable built by multiplying random variables by constants and adding the results, such as \(X + Y\), \(X – Y\), \(3X + 2\) or \(X_1 + X_2 + \dots + X_n\). Its mean depends only on the means of the parts. Its variance also depends on whether the parts are independent.
\[ E(aX + bY) = aE(X) + bE(Y), \qquad \operatorname{Var}(aX + bY) = a^2\operatorname{Var}(X) + b^2\operatorname{Var}(Y) \ \ \text{(}X, Y\text{ independent)} \]

Here \(X\) and \(Y\) are random variables and \(a\) and \(b\) are fixed numbers. \(E(\cdot)\) is the expected value, or long-run mean. \(\operatorname{Var}(\cdot)\) is the variance, the square of the standard deviation \(\sigma\). Put \(a = b = 1\) and you get a sum: \(\operatorname{Var}(X + Y) = \sigma_X^2 + \sigma_Y^2\). Put \(a = 1, b = -1\) and you get a difference. Because \(b^2 = (-1)^2 = 1\), the variance is again \(\sigma_X^2 + \sigma_Y^2\). The constants are squared in the variance rule because variance is measured in squared units. If you double every value, the spread in squared units goes up by a factor of four.

Statistics Made Simple textbook coverStatistics Made Simple explains combining random variables with worked examples, diagrams and tables.Get the textbook · $12

Why this method fits the case

Sara’s total time is a sum of two random parts, and she knows the mean and SD of each part. That is exactly the input the rules need. The rules also need independence for the variance step, and the case gives us a good reason to believe it: how long she waits at the stop has nothing to do with how bad the traffic is once she is on board.

The rules give the mean and SD of the total. To turn those into a probability we need a shape. A useful fact helps here: if \(X\) and \(Y\) are independent and each is normally distributed, then any linear combination \(aX + bY\) is also normal. Since both parts of Sara’s trip are roughly normal, \(T\) is roughly normal too, and we can use a z-score.[2]

When is this not the right tool?

  • When the parts are dependent. If the walk and the bus were both slowed by the same heavy rain, they would be positively correlated. Then \(\operatorname{Var}(X + Y) = \sigma_X^2 + \sigma_Y^2 + 2\operatorname{Cov}(X, Y)\), and the simple rule understates the spread. Height and weight, or a student’s maths and physics marks, are classic dependent pairs.
  • When you need a probability but the shape is unknown and far from normal. The mean and SD rules still hold, but a z-score will not give an accurate probability. With many parts, the central limit theorem often rescues you; with two very skewed parts it may not.
  • When the combination is not linear. Products and ratios, such as price times quantity when both are random, need other methods.

Setting it up

Write down every quantity before you calculate. This habit alone prevents most errors.

QuantitySymbolMean (min)SD (min)Variance (min²)
Walk and wait\(W\)1224
Bus ride\(B\)24525
Total journey\(T = W + B\)36\(\sqrt{29} \approx 5.39\)29
Time window—46 minutes (fixed, not random)

Notice the extra column. Converting each SD into a variance before you combine anything makes the right method almost automatic: you add the column of variances and take one square root at the end.

Solving it

Worked example

Sara’s walk \(W\) has mean 12 min and SD 2 min; her bus ride \(B\) has mean 24 min and SD 5 min. Both are normal and independent. She allows 46 minutes. Find the probability that she is late.

Step 1Mean of the total: \(E(T) = E(W) + E(B) = 12 + 24 = 36\) minutes.
Step 2Variance of the total, using independence: \(\operatorname{Var}(T) = 2^2 + 5^2 = 4 + 25 = 29\).
Step 3Standard deviation: \(\sigma_T = \sqrt{29} \approx 5.385\) minutes.
Step 4Shape: a sum of independent normal variables is normal, so \(T \sim N(36, 29)\).
Step 5Standardise: \(z = (46 – 36)/5.385 \approx 1.86\). Then \(P(T > 46) = P(Z > 1.86) \approx 0.0314\).

Sara is late on about 3.1% of mornings, roughly 2 lectures in a 60-lecture semester.

Now a difference. Differences turn up whenever two random amounts compete: a filling against a container, a deadline against a finishing time, one runner against another.

Worked example

A café machine pours drinks into cups. The volume poured, \(F\), is normal with mean 230 ml and SD 20 ml. The usable capacity of a cup, \(C\), is normal with mean 250 ml and SD 2 ml, independent of \(F\). A cup overflows if \(F > C\). (The figures are illustrative.) Find the probability that a cup overflows.

Step 1Rewrite the event with one random variable: \(F > C\) is the same as \(D = C – F < 0\).
Step 2Mean: \(E(D) = 250 – 230 = 20\) ml.
Step 3Variance: \(\operatorname{Var}(D) = 2^2 + 20^2 = 4 + 400 = 404\). The variances add even though we subtract.
Step 4SD: \(\sigma_D = \sqrt{404} \approx 20.10\) ml, and \(D\) is normal.
Step 5\(P(D < 0) = P\left(Z < \dfrac{0 – 20}{20.10}\right) = P(Z < -0.995) \approx 0.160\).

About 16% of cups overflow. Almost all of the problem comes from the machine (SD 20), not the cups (SD 2).

The third example shows the difference between adding several separate values and multiplying one value by a constant. These look alike on paper but behave very differently.

Worked example

A market stall’s daily takings \(X\) are normal with mean $300 and SD $15, and days are independent. (The figures are illustrative.) (a) Find the mean and SD of the total takings over 6 days. (b) Find the probability that the 6-day total exceeds $1,850. (c) Compare with the random variable \(6X\).

Step 1The 6-day total is \(S = X_1 + X_2 + \dots + X_6\), six separate independent days. Mean: \(6 \times 300 = 1800\).
Step 2Variance: \(6 \times 15^2 = 1350\), so \(\sigma_S = 15\sqrt{6} \approx 36.74\).
Step 3\(P(S > 1850) = P\left(Z > \dfrac{50}{36.74}\right) = P(Z > 1.36) \approx 0.087\).
Step 4By contrast, \(6X\) means one day’s takings multiplied by six. Its SD is \(6 \times 15 = 90\), and \(P(6X > 1850) = P(Z > 0.56) \approx 0.29\).

Summing six independent days gives SD 36.74, far less than 90, because good and bad days partly cancel out.

Statistics Made Simple Practice Questions coverMake combining random variables automatic with the Practice Questions book: 1,569 questions, all fully worked.Get 1,569 questions · $9

What the answer tells us

Sara’s total journey has a mean of 36 minutes and a standard deviation of about 5.4 minutes. Her 46-minute window is just under two standard deviations above the mean, so she is late on about 3% of days. That is the honest answer, and it is useful: it tells her how much “insurance” her 10-minute buffer is buying.

Reasonableness check. The total SD must be at least as large as the larger part (5 minutes) and no larger than the sum of the parts (7 minutes). Our answer, 5.39, sits between those limits and is close to 5. That makes sense: the bus is by far the more variable part, so it dominates. The walk adds only a little extra uncertainty. This is the “Pythagoras” picture of spread: the SDs combine like the two shorter sides of a right-angled triangle, and here the sides are 2 and 5.

Why adding SDs is wrong. If you add the SDs you get 7 minutes, and \(P(T > 46) = P(Z > 1.43) \approx 0.076\). That more than doubles the true risk. Adding SDs assumes the walk is always slow on exactly the days the bus is slow, which is the opposite of independence. In reality, a slow walk is often offset by a quick ride, so the total varies less than the parts suggest. Figure 1 shows the two curves.

Distribution of Sara’s total journey time probability density
Correct: SD = √29 ≈ 5.39 minWrong: SD = 2 + 5 = 7 min46-minute window
0.000.020.040.060.0815202530354045505560Total journey time T (minutes)46 min: lecture startsSD 5.39 (correct)SD 7 (adding SDs)
Figure 1. Both curves are centred at 36 minutes. The correct curve is narrower, so much less of its area lies beyond 46 minutes (about 3.1% against 7.6%). Illustrative figures.

Sensitivity. How much does the buffer matter? With a 40-minute window Sara would be late about 23% of the time. With 44 minutes, about 7%. With 48 minutes, about 1.3%. If she wants to be late on no more than 5% of days, she needs a window of at least \(36 + 1.645 \times 5.39 \approx 44.9\) minutes. For 1%, she needs about 48.5 minutes. The other lever is the variability itself. If she switched to a train with ride SD 2 minutes and the same mean, the total SD would fall to \(\sqrt{8} \approx 2.83\), and a 46-minute window would make lateness very rare. Cutting the biggest source of variance helps far more than trimming the smallest.

Common mistakeSubtracting the variances for a difference. Students write \(\operatorname{Var}(C – F) = 20^2 – 2^2 = 396\), or even get a negative variance. A variance can never be negative, and subtracting a random amount adds uncertainty. The coefficient \(-1\) is squared to \(+1\), so variances always add for independent variables.
Common mistakeConfusing \(X_1 + X_2 + \dots + X_n\) with \(nX\). The first is the total of \(n\) independent observations, with variance \(n\sigma^2\). The second is a single observation scaled up, with variance \(n^2\sigma^2\). Ask yourself: are there \(n\) separate random outcomes, or one outcome multiplied?
Exam tipShow the variance line explicitly, for example “\(\operatorname{Var}(T) = 4 + 25 = 29\), since \(W\) and \(B\) are independent”. Combining random variables appears in both AP Statistics and Cambridge AS & A Level Mathematics, and mark schemes typically credit the variance working and the independence statement.[3][4] If a question asks you to state an assumption, independence is almost always the one they want. Our statistics guide lists the related topics in teaching order.

If you want a full chapter on random variables, with more diagrams and tables, the Statistics Made Simple textbook builds the rules step by step from expected value to linear combinations. For drill, the Statistics Made Simple Practice Questions book has graded sums-and-differences problems with full working.

Statistics Made Simple bundle coverMaster random variables and the normal model with both Statistics Made Simple books for $16.Both books · $16

Practice questions

Try each question before opening the worked answer. Use \(z\) tables or a calculator for normal probabilities.

EasyQ1. \(X\) has mean 10 and SD 3; \(Y\) has mean 6 and SD 4. They are independent. Find the mean and SD of \(X + Y\) and of \(X – Y\). Show worked answer
\(E(X + Y) = 10 + 6 = 16\); \(E(X – Y) = 10 – 6 = 4\).
\(\operatorname{Var}(X + Y) = \operatorname{Var}(X – Y) = 9 + 16 = 25\).
Both SDs are \(\sqrt{25} = 5\).
EasyQ2. A fair six-sided die has mean 3.5 and variance \(35/12\). Two dice are rolled. Find the mean and SD of the total score, and the SD of twice the score on one die. Show worked answer
Total: mean \(3.5 + 3.5 = 7\); variance \(35/12 + 35/12 = 35/6 \approx 5.833\); SD \(\approx 2.42\).
Twice one die: variance \(2^2 \times 35/12 = 35/3\); SD \(\approx 3.42\).
The total of two dice varies less than double one die.
MediumQ3. Bolt diameters \(B\) are normal with mean 10.00 mm and SD 0.03 mm. Hole diameters \(H\) are normal with mean 10.10 mm and SD 0.04 mm, independent of \(B\). A bolt fits if it is narrower than the hole. Find the probability that a randomly chosen bolt does not fit a randomly chosen hole. Show worked answer
Let \(D = H – B\). \(E(D) = 10.10 – 10.00 = 0.10\) mm.
\(\operatorname{Var}(D) = 0.03^2 + 0.04^2 = 0.0025\), so \(\sigma_D = 0.05\) mm.
\(P(D < 0) = P(Z < -0.10/0.05) = P(Z < -2) \approx 0.0228\).
About 2.3% of pairs do not fit.
MediumQ4. Ali’s 1,500 m times \(A\) are normal with mean 300 s and SD 20 s. Bilal’s times \(B\) are normal with mean 330 s and SD 5 s. Their times are independent. Find the probability that Bilal beats Ali in a race. Show worked answer
Bilal wins if \(B < A\), i.e. \(A – B > 0\).
\(E(A – B) = 300 – 330 = -30\) s; \(\operatorname{Var}(A – B) = 400 + 25 = 425\); SD \(\approx 20.62\) s.
\(P(A – B > 0) = P(Z > 30/20.62) = P(Z > 1.455) \approx 0.073\).
Bilal wins about 7% of races, mainly because Ali is so inconsistent.
ExamQ5. The mass of a packet of biscuits is normal with mean 500 g and SD 12 g. A carton holds 8 packets, chosen at random. (a) Find the mean and SD of the total mass of the 8 packets. [3] (b) Find the probability that the total mass exceeds 4,050 g. [2] (c) State one assumption you have made. [1] Show worked answer
(a) \(E = 8 \times 500 = 4000\) g [B1]. \(\operatorname{Var} = 8 \times 12^2 = 1152\) [M1], SD \(= \sqrt{1152} \approx 33.9\) g [A1].
(b) \(z = (4050 – 4000)/33.94 \approx 1.47\) [M1]; \(P(Z > 1.47) \approx 0.0708\) [A1].
(c) The masses of the 8 packets are independent [B1].
Note: using \(8^2 \times 12^2\) (treating it as \(8X\)) scores M0.

Frequently asked questions

Why do variances add but standard deviations do not?

Variance is built from squared deviations, and for independent variables the cross-term (the covariance) is zero. That leaves a clean sum of squares. Standard deviation is the square root of that sum, and the square root of a sum is not the sum of square roots. It is the same reason a right-angled triangle with sides 3 and 4 has a hypotenuse of 5, not 7.

Do the rules for the mean need independence?

No. \(E(X + Y) = E(X) + E(Y)\) is always true, whatever the relationship between \(X\) and \(Y\). Only the variance rule needs independence, or more precisely zero correlation. If the variables are correlated, you add \(2\operatorname{Cov}(X, Y)\) for a sum and subtract it for a difference.

Is the sum of two normal random variables always normal?

If they are independent and each is normal, yes: any linear combination is normal. If the parts are not normal, the sum is generally not exactly normal, although sums of many independent parts tend towards a normal shape by the central limit theorem.

How is this connected to the standard error of a mean?

Directly. The sample mean is \((X_1 + \dots + X_n)/n\). The sum has variance \(n\sigma^2\), and dividing by \(n\) multiplies the variance by \(1/n^2\). So the variance of the mean is \(\sigma^2/n\) and its SD is \(\sigma/\sqrt{n}\). The same rule that answered Sara’s question is the foundation of every confidence interval you will meet later.[1]

References

  1. Illowsky, B. and Dean, S. (2023) Introductory Statistics 2e. Houston, TX: OpenStax. https://openstax.org/details/books/introductory-statistics-2e
  2. Starnes, D. S. and Tabor, J. The Practice of Statistics. New York: W. H. Freeman.
  3. Cambridge International. Cambridge International AS & A Level Mathematics 9709: Syllabus for examination in 2026 and 2027. https://www.cambridgeinternational.org/programmes-and-qualifications/cambridge-international-as-and-a-level-mathematics-9709/
  4. College Board. AP Statistics Course and Exam Description. New York: College Board.
Statistics Made Simple Complete Bundle cover showing both the textbook and practice book
This topic has a full chapter in Statistics Made Simple, with 1,569 worked practice questions in the bundle.Statistics Made Simple Complete Bundle — Textbook + 1,569 Practice Questions
Get it for $16
E

The EconTutorials team writes clear, exam-focused lessons in economics and statistics for A-Level, IB, AP and university students, with more than 13 years of classroom teaching behind every guide and book in the Made Simple series.