Skip to content
Cambridge AS & A Level9709

Linear combinations of random variables

Mathematics 9709 Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Linear combinations of random variables notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Linear combinations of random variables notes as text: skim, search, and jump between subtopics.

~14 min read

1. A linear change of one variable

For a constant a and a constant b, the mean of aX + b is found by applying the same change to the mean of X. The constant b moves every value by the same amount, so it shifts the mean and has no effect on the spread.

The spread is scaled by a, so the variance is scaled by a². So Var(aX +b) = a² Var(X) and b is not added to the variance.

The standard deviation of aX + b is |a| times that of X. Always check whether a question gives a variance or a standard deviation before you use it.

E(aX + b) = a E(X) + b

Var(aX + b) = a² Var(X)

Examiner insight

“Many candidates did not calculate Var(X) thinking it was 0.01, rather than 400 × 0.01 × 0.99.” “Another common error was to calculate Var(4X + 2) as 16 × Var(X) + 2.”

Worked example 13 marks

The random variable X has the distribution B(400, 0.01). Find Var(4X + 2).

  1. 1

    Var(X) = 400 × 0.01 × 0.99 = 3.96 [1]

  2. 2

    Var(4X + 2) = 4² × Var(X), with the + 2 dropped [1]

  3. 3

    = 16 × 3.96 = 63.36 [1]

2. Combining independent variables

The mean of a combination is the same combination of the means, and this needs no independence. The variance rule needs independent variables.

Each variance is multiplied by the square of its coefficient, and the results are always added. A minus sign in the combination affects the mean and never the variance: Var(X - Y) = Var(X) + Var(Y).

A total of n separate independent values is not the same as n times one value. X₁ + X₂ + X₃ has variance 3 Var(X). 3X has variance 9 Var(X).

E(aX + bY) = a E(X) + b E(Y)

Var(aX + bY) = a² Var(X) + b² Var(Y)

Var(X₁ + … + Xn) = n Var(X) Var(nX) = n² Var(X)

Examiner insight

“It is important that candidates can correctly distinguish between a sum of normal random variables and a multiple of a normal random variable.” “There were occasional errors seen when calculating the variance (for example subtracting 16 and 9 rather than adding) and some candidates found the wrong probability area (i.e., 1 – 0.579 rather than 0.579).”

Worked example 16 marks

At an entertainment centre, the cost for using a particular video game is 0.40 dollars per minute. The number of minutes for which people use the video game has mean 15 and variance 9.

(a) Find the mean and variance of the amount people pay for using the video game.

Each day, 35 people independently use the video game.

(b) Find the mean and variance of the total amount paid by 35 people.

  1. 1

    (a) mean = 0.40 × 15 = 6 dollars [1]

  2. 2

    variance = 0.40² × 9 [1]

  3. 3

    = 1.44 [1]

  4. 4

    (b) mean = 35 × 6 = 210 dollars [1]

  5. 5

    variance = 35 × 1.44, because the 35 people are independent values, so the factor is 35 and not 35² [1]

  6. 6

    = 50.4 [1]

3. Normal in, normal out

If X has a normal distribution, so does aX + b. If X and Y have independent normal distributions, so does aX + bY. Find its mean and variance with the rules above, then standardise as usual.

In N(μ, σ²) the second number is the variance. Divide by the square root of the variance, which is the standard deviation, when you standardise.

Sketch the curve and say which probability you want, for example P(T < 25.5). Check that a value below the mean gives a probability below 0.5.

aX + bY ∼ N(aμ_X + bμ_Y, a²σ_X² + b²σ_Y²)

z = (x - μ)/σ

Examiner insight

“A common error was giving an answer greater than 0.5 rather than less than 0.5 and this could have been avoided by drawing a diagram.”

Worked example 15 marks

The volumes, in litres, of juice in large and small bottles have the distributions N(5.10, 0.0102) and N(2.51, 0.0036) respectively. Find the probability that the total volume of juice in 3 randomly chosen large bottles and 4 randomly chosen small bottles is less than 25.5 litres.

  1. 1

    let T = L₁ + L₂ + L₃ + S₁ + S₂ + S₃ + S₄. E(T) = 3 × 5.10 + 4 × 2.51 = 25.34 [1]

  2. 2

    Var(T) = 3 × 0.0102 + 4 × 0.0036 = 0.045 [1]

  3. 3

    z = (25.5 - 25.34)/(√(0.045)) = 0.754 [1]

  4. 4

    P(T < 25.5) = Phi(0.754) [1]

  5. 5

    = 0.775 (3 s.f.) [1]

4. Differences and comparisons

A comparison such as "L is more than twice S" becomes one new variable compared with 0: D = L - 2S and P(D > 0). Subtract the means. Add the variances, with the 2 squared.

"The difference between two values is less than 1" means the gap in either direction: -1 < D < 1. The probability is the area between the two limits, found as Phi(z) - Phi(-z).

The value 0 is usually not at the mean of D, so the area is not 0.5. Sketch the curve to choose the right tail.

L > 2S iff L - 2S > 0

Var(L - 2S) = Var(L) + 4 Var(S)

P(-k < D < k) = 2 Phi(k/σ_D) - 1 when E(D) = 0

Examiner insight

“Many correctly found E(Difference)=0 but commonly errors were made in calculating the variance.” “In order to calculate the probability that the difference in heights between two randomly chosen buildings was less than 1, the height of (Building1 – Building2) < 1 needed to be considered as well as the height of (Building2 – Building1) < 1.”

Worked example 15 marks

The heights of buildings in a large city are normally distributed with mean 18.3 m and standard deviation 2.5 m. Find the probability that the difference between the heights of two randomly chosen buildings in the city is less than 1 m.

  1. 1

    let D = B₁ - B₂. E(D) = 18.3 - 18.3 = 0 [1]

  2. 2

    Var(D) = 2.5² + 2.5² = 2.5² × 2 = 12.5 [1]

  3. 3

    need -1 < D < 1: z = (± 1 - 0)/(√(12.5)) = ± 0.283 [1]

  4. 4

    Phi(0.283) - (1 - Phi(0.283)) = 0.6115 - 0.3885 [1]

  5. 5

    = 0.223 (3 s.f.) [1]

5. Sums of independent Poisson variables

If X and Y have independent Poisson distributions, then X + Y has a Poisson distribution. Its parameter is the sum of the two parameters.

First put every parameter on the same time period or length. Rates per 10 seconds are multiplied by 6 to give a rate per minute. Then add them.

X ∼ Po(λ), Y ∼ Po(μ) implies X + Y ∼ Po(λ + μ)

P(X = r) = e^(-λ) (λ^(r))/(r!)

Examiner insight

“Common errors here were using an incorrect value for λ (often 2.5 rather than 5.1 + 2.5) and omission of the P(3) term or omission of ‘1–….’ in the Poisson expression.”

Worked example 13 marks

A bus station has exactly four entrances. In the morning the numbers of passengers arriving at these entrances during a 10-second period have the independent distributions Po(0.4), Po(0.1), Po(0.2) and Po(0.5). Find the probability that the total number of passengers arriving at the four entrances to the bus station during a randomly chosen 1-minute period in the morning is more than 3.

  1. 1

    per 10 seconds: λ = 0.4 + 0.1 + 0.2 + 0.5 = 1.2. Per minute: λ = 6 × 1.2 = 7.2 [1]

  2. 2

    P(X > 3) = 1 - e^(-7.2)(1 + 7.2 + 7.2²/(2!) + 7.2³/(3!)) [1]

  3. 3

    = 0.928 (3 s.f.) [1]

Recap

  • E(aX + b) = aE(X) + b and Var(aX + b) = a²Var(X). The constant b does not change the variance.
  • E(aX + bY) = aE(X) + bE(Y). For independent X and Y, Var(aX + bY) = a²Var(X) + b²Var(Y).
  • Variances add, even for X − Y. A sum of n independent values has variance nVar(X). nX has variance n²Var(X).
  • A linear combination of independent normal variables is normal: find the mean and variance, then standardise.
  • A comparison becomes one variable against 0, such as L − 2S > 0. A difference less than k means −k < D < k.
  • Independent Poisson variables: X + Y is Poisson with parameter λ + μ, after matching the time periods.
  • Sketch the curve, state the probability you want and check it against 0.5.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. E(X) = 7 and Var(X) = 4. Find E(3X + 5) and Var(3X + 5).2 marks
    Answer
    1. E(3X + 5) = 3 × 7 + 5 = 26 [1].
    2. Var(3X + 5) = 3² × 4 = 36 [1].

    Trap: Adding 5 to the variance, or multiplying it by 3 instead of 9.

  2. A temperature C in degrees Celsius has mean 20 and standard deviation 3. It is converted to degrees Fahrenheit using F = 1.8C + 32. Find the mean and standard deviation of F.3 marks
    Answer
    1. E(F) = 1.8 × 20 + 32 = 68 [1].
    2. Var(C) = 9, so Var(F) = 1.8² × 9 = 29.16 [1].
    3. Standard deviation = 1.8 × 3 = 5.4 [1].

    Trap: The 32 shifts the mean only: the standard deviation is 5.4, not 37.4, and it is scaled by 1.8 and not by 1.8².

  3. X and Y are independent, with E(X) = 10, Var(X) = 3, E(Y) = 4 and Var(Y) = 2. Find E(X - 2Y) and Var(X - 2Y).3 marks
    Answer
    1. E(X - 2Y) = 10 - 2 × 4 = 2 [1].
    2. Var(X - 2Y) = 3 + 2² × 2 [1].
    3. = 3 + 8 = 11 [1].

    Trap: Writing 3 - 4 × 2 = -5. A variance is never negative: variances add, and the 2 is squared.

  4. A café sells a cake for 3 dollars. The number of cakes sold on a day has mean 80 and variance 25, and the numbers on different days are independent. Find the mean and variance of the money taken from cakes over 6 days.4 marks
    Answer
    1. Money on one day has mean 3 × 80 = 240 [1] and variance 3² × 25 = 225 [1].
    2. Over 6 independent days the mean is 6 × 240 = 1440 [1].
    3. The variance is 6 × 225 = 1350 [1].

    Trap: Using 6² × 225. Six separate days are a sum of six values, not one day multiplied by 6.

  5. A taxi fare is 2.50 dollars plus 0.80 dollars for each minute of the journey. The journey time T minutes has the distribution N(20, 16). Find the probability that a fare is more than 22 dollars.4 marks
    Answer
    1. F = 2.5 + 0.8T, so E(F) = 2.5 + 0.8 × 20 = 18.5 [1].
    2. Var(F) = 0.8² × 16 = 10.24, so the standard deviation is 3.2 [1].
    3. z = (22 - 18.5)/3.2 = 1.094 [1].
    4. P(F > 22) = 1 - Phi(1.094) = 0.137 [1].

    Trap: Using 0.8 × 16 for the variance, or dividing by the variance instead of its square root.

  6. X ∼ N(50, 9) and Y ∼ N(44, 16) are independent. State the distribution of X - Y and find P(X < Y).4 marks
    Answer
    1. E(X - Y) = 50 - 44 = 6 [1].
    2. Var(X - Y) = 9 + 16 = 25, so X - Y ∼ N(6, 25) [1].
    3. P(X - Y < 0): z = (0 - 6)/(√25) = -1.2 [1].
    4. Phi(-1.2) = 1 - Phi(1.2) = 0.115 (3 s.f.) [1].

    Trap: Dividing by 25 instead of √25 = 5, or taking the variance as 9 - 16.

  7. The masses of large crates are normally distributed with mean 24 kg and variance 4. The masses of small crates are normally distributed with mean 9 kg and variance 1. The masses are independent. Find the probability that 2 randomly chosen large crates and 3 randomly chosen small crates have a total mass of more than 80 kg.5 marks
    Answer
    1. Mean = 2 × 24 + 3 × 9 = 75 [1].
    2. Variance = 2 × 4 + 3 × 1 = 11 [1].
    3. z = (80 - 75)/(√11) = 1.508 [1].
    4. P(T > 80) = 1 - Phi(1.508) [1].
    5. = 0.0658 [1].

    Trap: Treating 2 large crates as 2L and using 2² × 4 + 3² × 1 = 25, which gives z = 1 and 0.159.

  8. The lengths of bolts are normally distributed with mean 80 mm and standard deviation 0.3 mm. Two bolts are chosen at random. Find the probability that their lengths differ by more than 0.5 mm.6 marks
    Answer
    1. Let D = B₁ - B₂. E(D) = 0 [1].
    2. Var(D) = 0.3² + 0.3² = 0.18 [1], so the standard deviation is 0.4243 [1].
    3. Differ by more than 0.5 means D > 0.5 or D < -0.5 [1].
    4. P(D > 0.5) = 1 - Phi(0.5/0.4243) = 1 - Phi(1.179) = 0.1193 [1].
    5. The two tails are equal, so the probability is 2 × 0.1193 = 0.239 [1].

    Trap: Finding one tail only (0.119) and missing that the first bolt may be the shorter one.

  9. A lighthouse radio receives ship messages at a mean rate of 0.6 per 10 minutes and weather messages at a mean rate of 2.4 per hour. The two kinds of message arrive independently and each has a Poisson distribution. (a) Find the probability that more than 3 messages in total arrive in a 30-minute period. (b) Find the probability that exactly 2 messages arrive in a 30-minute period and both are ship messages.5 marks
    Answer
    1. (a)
    2. In 30 minutes: ship λ = 3 × 0.6 = 1.8, weather λ = 0.5 × 2.4 = 1.2, total λ = 1.8 + 1.2 = 3 [1].
    3. P(X > 3) = 1 - e⁻³(1 + 3 + 3²/(2!) + 3³/(3!)) = 1 - 13e⁻³ [1].
    4. = 0.353 (3 s.f.) [1].
    5. (b)
    6. P(S = 2) × P(W = 0) = e^(-1.8) 1.8²/(2!) × e^(-1.2) [1].
    7. = 1.62e⁻³ = 0.0807 (3 s.f.) [1].

    Trap: Using only one rate, or rates on different time periods, then leaving out the P(3) term or the '1 −'; in (b), using the total Po(3) loses the condition that both messages are ship messages.

  10. The mass of a loaf is normally distributed with mean 450 g and variance 100. The mass of a jar of jam is normally distributed with mean 280 g and variance 64. A gift pack holds 2 loaves, 1 jar of jam and a box of fixed mass m g. All masses are independent. (a) 99% of gift packs have a mass of less than 1260 g. Find m. (b) Find the probability that a randomly chosen loaf has a mass of more than 1.5 times the mass of a randomly chosen jar.8 marks
    Answer
    1. (a)
    2. Mean = 2 × 450 + 280 + m = 1180 + m [1]. The box adds to the mean only.
    3. Variance = 2 × 100 + 64 = 264 [1].
    4. (1260 - (1180 + m))/(√(264)) = 2.326 [1].
    5. 80 - m = 2.326 × 16.25 = 37.79, so m = 42.2 [1].
    6. (b)
    7. Let D = L - 1.5J. E(D) = 450 - 1.5 × 280 = 30 and Var(D) = 100 + 1.5² × 64 = 244 [1].
    8. z = (0 - 30)/(√(244)) = -1.921 [1].
    9. P(D > 0) = Phi(1.921) [1].
    10. = 0.973 [1].

    Trap: Adding the box to the variance, using 2² × 100 for two loaves, and using 1.5 × 64 instead of 1.5² × 64.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
Var(4X + 2) = 16 × Var(X) + 2Var(4X + 2) = 16 × Var(X)
Var(X − Y) = Var(X) − Var(Y)Var(X − Y) = Var(X) + Var(Y)
Var of 3 bottles added together = 3² × 0.0102Var of 3 bottles added together = 3 × 0.0102: a sum is not a multiple
Var(L − 2S) = Var(L) + 2 × Var(S)Var(L − 2S) = Var(L) + 4 × Var(S)
λ = 2.5 onlyλ = 5.1 + 2.5, the sum of the parameters

Frequently asked questions

How do I find the mean and variance of aX + b?
E(aX + b) = aE(X) + b, and Var(aX + b) = a²Var(X). The constant b shifts the mean but has no effect on the variance. For example, Var(4X + 2) = 16 × Var(X), with the +2 dropped, so for B(400, 0.01) the variance is 16 × 3.96 = 63.36.
How do I find the variance of a combination of independent variables?
Multiply each variance by the square of its coefficient and add the results: Var(aX + bY) = a²Var(X) + b²Var(Y). A minus sign affects the mean and never the variance, so Var(X − Y) = Var(X) + Var(Y). Variances add even for a difference.
What is the variance of a total of several independent values?
A sum of n separate independent values has variance n Var(X), so X1 + X2 + X3 has variance 3 Var(X). Multiplying by a constant is different: 3X has variance 9 Var(X). A sum is not the same as a multiple.
How do I find the probability that the difference between two values is less than 1?
Let D be the difference. Subtract the means and add the variances, so E(D) = 0 and Var(D) = 12.5 in the building example. For −1 < D < 1 the z-values are ±0.283, and the probability is 0.223. Check the gap in either direction.
How do I find a probability for a linear combination of independent normal variables?
A linear combination of independent normal variables is normal. Find its mean from the means and its variance from the variance rule, then standardise. For T with mean 25.34 and variance 0.045, z = 0.754 and P(T < 25.5) = 0.775. Sketch the curve to check the tail.
What is a common mistake when finding the variance of a difference?
Students often subtract the variances, writing Var(X − Y) = Var(X) − Var(Y), or add 2 times Var(S) in place of squaring the coefficient. The variances add, and the coefficient is squared, so Var(L − 2S) = Var(L) + 4Var(S).

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters