Linear combinations of random variables
🎯What you need to be able to do
- Find the mean and variance of \( aX + b \).
- Find the mean and variance of \( aX + bY \) for independent \(X\) and \(Y\).
- Distinguish \( nX \) from the sum of \(n\) independent observations of \(X\).
- Use the fact that a linear combination of independent normal variables is normal.
- Use the corresponding result for sums of independent Poisson variables.
- Find the mean and variance of a sample mean.
📚The mathematics
One variable, scaled and shifted
Two things to notice. The variance ignores \(b\) entirely — shifting every value by the same amount moves the distribution but does not spread it. And the multiplier is squared, because variance is measured in squared units. Doubling every value quadruples the variance but only doubles the standard deviation.
Two independent variables
The expectation result holds always; the variance result requires independence, and you should say so when you use it.
\( nX \) is not \( X_1 + X_2 + \cdots + X_n \)
This distinction is the one examiners return to. Suppose \( \mathrm{Var}(X) = \sigma^{2} \).
- \( 2X \) means one observation, doubled. Its variance is \( 2^{2}\sigma^{2} = 4\sigma^{2} \).
- \( X_1 + X_2 \) means two independent observations added. Its variance is \( \sigma^{2} + \sigma^{2} = 2\sigma^{2} \).
Both have mean \( 2\mu \), so the mean cannot tell them apart — only the variance can. The sum of two independent observations is less variable than one doubled, because two independent draws partly cancel each other’s deviations, whereas doubling amplifies whatever deviation the single draw had.
Read the context: “the weight of 2 bags” is \( X_1 + X_2 \); “twice the weight of a bag” is \( 2X \).
In general, for \(n\) independent observations,
The sample mean
Since \( \bar{X} = \dfrac{1}{n}\sum X_i \), applying both rules gives
The mean is unchanged but the variance shrinks with \(n\). That is the whole justification for taking larger samples, and it underpins everything in S2 4.
Which distributions survive combination
- Normal: any linear combination of independent normal variables is itself normal. So \( X \sim \mathrm{N}(\mu_1, \sigma_1^{2}) \) and \( Y \sim \mathrm{N}(\mu_2, \sigma_2^{2}) \) independent gives \( X - Y \sim \mathrm{N}\!\left(\mu_1 - \mu_2,\ \sigma_1^{2} + \sigma_2^{2}\right) \). This is what makes probability questions about differences answerable.
- Poisson: the sum of independent Poissons is Poisson, with the parameters added (see S2 1). A difference of Poissons is not Poisson — it can be negative.
- Binomial: not generally preserved. \( \mathrm{B}(n_1, p) + \mathrm{B}(n_2, p) \) is binomial only when \(p\) is the same in both.
✏️Worked example
(a) Both are normal and independent, so the difference is normal:
So \( X - Y \sim \mathrm{N}(20, 25) \) with \( \sigma = 5 \). Then \( z = \dfrac{25 - 20}{5} = 1 \) and
(b) \( \mathrm{E}(3X) = 3(50) = 150 \) and \( \mathrm{Var}(3X) = 3^{2}(16) = 144 \).
(c) \( \mathrm{E}(X_1 + X_2 + X_3) = 3(50) = 150 \), the same as in (b), but
which is exactly one third of 144. Three independent observations are far less variable than one observation tripled, even though they share a mean.
(d) The sum is normal with \( \sigma = \sqrt{48} = 6.928 \), so
📝Practise
Work through these, then reveal the answer.
1. \( \mathrm{E}(X) = 12 \) and \( \mathrm{Var}(X) = 5 \). Find \( \mathrm{E}(3X - 2) \) and \( \mathrm{Var}(3X - 2) \).
2. \(X\) and \(Y\) are independent with \( \mathrm{Var}(X) = 10 \) and \( \mathrm{Var}(Y) = 4 \). Find \( \mathrm{Var}(2X - 3Y) \).
3. \( X \sim \mathrm{N}(20, 9) \). Find the distribution of \( 2X \) and of \( X_1 + X_2 \), and state the standard deviation of each.
4. Independent Poisson variables \( X \sim \mathrm{Po}(2.4) \) and \( Y \sim \mathrm{Po}(3.6) \). State the distribution of \( X + Y \) and find \( \mathrm{P}(X + Y = 4) \). Why can nothing similar be said about \( X - Y \)?
5. An empty box has weight \( \mathrm{N}(250, 25) \) grams and each of 12 items has weight \( \mathrm{N}(40, 4) \) grams, all independent. Find the probability that a full box weighs more than 745 g.
6. A population has \( \mu = 60 \) and \( \sigma^{2} = 100 \). Find the mean and standard deviation of the mean of a random sample of 25, and explain what happens as the sample size increases.
🔗Go deeper — other people’s work
These are external resources, not mine. If one stops working, tell me and everything above it on this page still stands.
- Khan Academy — combining random variables, means and variances
- Seeing Theory (Brown University) — sampling distributions and the shrinking spread of \( \bar{X} \)
- Cambridge examiner reports — the \( nX \) versus \( \sum X_i \) confusion is flagged repeatedly