Home / AS & A Level Mathematics 9709 / Linear combinations of random variables
Cambridge International AS & A Level Mathematics 9709 · Probability & Statistics 2

Linear combinations of random variables

The mean and variance of aX+b and of aX+bY, the difference between adding independent copies of a variable and multiplying it by a number, and the facts that linear combinations of independent normal variables are normal and sums of independent Poisson variables are Poisson.

6.2Paper 6: Probability & Statistics 2Free lesson
What the syllabus says

6.2 (Paper 6)

  • use, when solving problems, the results that - E(aX+b)=aE(X)+b and Var(aX+b)=a2Var(X) - E(aX+bY)=aE(X)+bE(Y) - Var(aX+bY)=a2Var(X)+b2Var(Y) for independent X and Y - if X has a normal distribution then so does aX+b - if X and Y have independent normal distributions then aX+bY has a normal distribution - if X and Y have independent Poisson distributions then X+Y has a Poisson distribution.

Notes and examples

  • Proofs of these results are not required.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

Scaling and shifting one variable Paper 6

If X is a random variable and a and b are constants, then
E(aX+b)=aE(X)+bandVar(aX+b)=a2Var(X).
These hold for any distribution, discrete or continuous. Proofs are not required, but the reasons are worth knowing, because they stop the common errors:

  • adding b moves every value by the same amount, so the mean moves by b but the spread does not change: b never appears in the variance;
  • multiplying by a stretches every distance from the mean by a factor a, so the standard deviation is multiplied by |a| and the variance, which is measured in squared units, by a2.

So Var(5−2X)=(−2)2Var(X)=4Var(X): a negative multiplier still increases the variance, and a variance can never be negative.

A familiar use is a change of units. If a temperature C in degrees Celsius has mean 20 and variance 9, then F=1.8C+32 has mean 1.8×20+32=68 and variance 1.82×9=29.16.

Worked example 1 Paper 6

The random variable X has P(X=0)=0.2, P(X=1)=0.5 and P(X=2)=0.3. Find E(5−2X) and Var(5−2X).

  1. E(X)=0×0.2+1×0.5+2×0.3=1.1.

  2. E(X2)=0+0.5+4×0.3=1.7, so Var(X)=1.7−1.12=0.49.

  3. E(5−2X)=5−2×1.1=2.8.

  4. Var(5−2X)=(−2)2×0.49=1.96. The 5 plays no part in the variance.

Answer: E(5−2X)=2.8, Var(5−2X)=1.96

Check yourself Paper 6

E(X)=4 and Var(X)=3. Find Var(2X−7).

Answer it in the portal, where your answer is checked as you type →

Combining two variables Paper 6

For any two random variables X and Y,
E(aX+bY)=aE(X)+bE(Y).
If X and Y are independent, the variances also combine:
Var(aX+bY)=a2Var(X)+b2Var(Y).
The most important special case is the difference. With a=1 and b=−1,
Var(X−Y)=Var(X)+(−1)2Var(Y)=Var(X)+Var(Y).
Variances add even when the variables are subtracted. Think of the uncertainty: if each of two parcel masses is uncertain, their difference is uncertain because of both of them, so it is more variable than either, never less.

Independence matters for the variance result only. For example, the height of a person and the length of their arm are not independent, and the variance of their sum is not the sum of the variances. In context questions, "state an assumption" usually wants independence, said in context.

Adding copies or multiplying by a number Paper 6

There is a real difference between X1+X2+…+Xn and nX:

  • X1+X2+…+Xn is the total of n independent observations, such as the total mass of 12 different packets. Its mean is nμ and its variance is nσ2, because the n variances add.
  • nX is one observation multiplied by n, such as 12 times the mass of a single packet. Its mean is also nμ, but its variance is n2σ2.

The total of 12 different packets varies less than 12 times one packet, because in a total the heavy and light packets partly cancel out. Before writing a variance, decide which situation the question describes: "the total mass of 12 packets" is a sum; "a recipe needs 3 times the mass of one scoop" is a multiple.

Normal and Poisson variables Paper 6

The rules above give the mean and variance of a combination. Two further facts give its distribution:

  • if X is normal, then aX+b is normal;
  • if X and Y are independent and normal, then aX+bY is normal.

So to find a probability about a combination of normal variables, find its mean and variance, then standardise as in Paper 5. A comparison such as "X is greater than Y" is turned into a single variable: P(X>Y)=P(X−Y>0).

For Poisson variables: if X∼Po(λ) and Y∼Po(μ) are independent, then
X+Y∼Po(λ+μ).
This is why the rate of a Poisson process can be scaled to a longer interval. Only the sum is Poisson. 2X has mean 2λ but variance 4λ, so it cannot be Poisson; and X−Y can be negative, so it cannot be Poisson either.

Worked example 2 Paper 6

The masses of cups are normally distributed with mean 250 g and standard deviation 8 g. The masses of saucers are normally distributed with mean 180 g and standard deviation 6 g, independently. Find the probability that (a) a randomly chosen cup and saucer have a total mass of more than 450 g, (b) a randomly chosen cup is more than 80 g heavier than a randomly chosen saucer.

  1. (a) T=C+S has mean 250+180=430 and variance 82+62=100, so T∼N(430,100).

  2. P(T>450)=P(Z>450−43010)=1−Φ(2)=1−0.9772=0.0228 (3 s.f.).

  3. (b) D=C−S has mean 250−180=70 and variance 82+62=100: the variances add.

  4. P(D>80)=P(Z>80−7010)=1−Φ(1)=1−0.8413=0.159 (3 s.f.).

Answer: (a) 0.0228 (b) 0.159

Check yourself Paper 6

X∼N(30,4) and Y∼N(25,9) are independent. Find Var(X−Y).

Answer it in the portal, where your answer is checked as you type →

Worked example 3 (exam style) Paper 6

The masses of packets of cereal are normally distributed with mean 500 g and standard deviation 15 g. A carton holds 12 packets, and the empty carton has mass normally distributed with mean 300 g and standard deviation 20 g. All masses are independent. (a) Find the probability that a full carton has a total mass of more than 6350 g. (b) A shopkeeper estimates the mass of a full carton as the empty carton plus 12 times the mass of one packet. Find the probability that this estimate is more than 6350 g. (c) Explain why the answers differ.

  1. (a) W=P1+P2+…+P12+C. Mean =12×500+300=6300. Variance =12×152+202=3100.

  2. P(W>6350)=P(Z>6350−63003100)=P(Z>0.898)=1−0.8154=0.185 (3 s.f.).

  3. (b) V=12P+C. Mean =6300. Variance =122×152+202=32800.

  4. P(V>6350)=P(Z>5032800)=P(Z>0.276)=1−0.6088=0.391 (3 s.f.).

  5. (c) In (a) the 12 packets are different, so heavy and light ones partly cancel and the total varies less (12σ2). In (b) one packet is counted 12 times, so its error is multiplied by 12 and the variance is 144σ2: a large total is much more likely.

Answer: (a) 0.185 (b) 0.391

Worked example 4 Paper 6

Calls arrive at random at two help lines, independently, at average rates of 2.3 per hour and 1.5 per hour. Find the probability that at least 5 calls arrive altogether in a randomly chosen hour.

  1. The total is T∼Po(2.3+1.5)=Po(3.8), as a sum of independent Poisson variables.

  2. P(T⩾5)=1−e−3.8(1+3.8+3.822!+3.833!+3.844!)=1−0.6678=0.332 (3 s.f.).

Answer: 0.332

Check yourself Paper 6

X∼Po(1.2) and Y∼Po(2.3) are independent. Find P(X+Y=2).

Answer it in the portal, where your answer is checked as you type →

Check yourself Paper 6

X∼Po(λ) and Y∼Po(μ) are independent. Which of these random variables has a Poisson distribution?

Answer it in the portal, where your answer is checked as you type →

Key points

  • E(aX+b)=aE(X)+b and Var(aX+b)=a2Var(X).

  • E(aX+bY)=aE(X)+bE(Y); for independent X and Y, Var(aX+bY)=a2Var(X)+b2Var(Y).

  • Variances add for a difference: Var(X−Y)=Var(X)+Var(Y).

  • A sum of n independent copies has variance nσ2; a multiple nX has variance n2σ2.

  • Linear combinations of independent normal variables are normal: find the mean and variance, then standardise. P(X>Y)=P(X−Y>0).

  • The sum of independent Poisson variables is Poisson, with the means added.

Where marks are lost Paper 6

  • Including the constant in the variance, or forgetting to square the multiplier.

  • Subtracting variances for X−Y.

  • Confusing X1+…+Xn (variance nσ2) with nX (variance n2σ2).

  • Adding standard deviations instead of variances.

  • Treating 2X or X−Y as Poisson.

  • Not stating independence, in context, when asked for an assumption.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.