Skip to content

9709 · Unit 29 · Paper 6: Probability and Statistics 2

Linear combinations of random variables.

9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Mean and variance of a linear combination

§6.2 · Linear combinations of random variables

A total weight, a difference between two times, a price with a fixed fee added: each is built from random parts. Know the mean and variance of each part and you know them for the whole, without listing a single outcome. One pair runs through this unit: X with mean 18 and variance 4, and Y with mean 11 and variance 9, independent of each other.

1One variable: scale it, then shift it

The mean follows the same rule as the values: E(aX + b) = aE(X) + b. The variance squares the multiplier and ignores the constant: Var(aX + b) = a²Var(X).
X161820L = 2X + 5374145Centre shifts; distances from the centre double.X161820L = 2X + 5374145Centre shifts; distances from the centre double.
Worked example

E(X) = 18 and Var(X) = 4. Find the mean and variance of L = 2X + 5.

  1. Apply the same rule to the mean
    E(L)=2E(X) + 5=2(18) + 5 = 41
  2. Square the multiplier; the 5 adds no spread
    Var(L)=2²Var(X)=4 × 4 = 16
  3. Answer
    E(L) = 41 and Var(L) = 16, so SD(L) = 4
✓Check each value moves 2 times as far from the centre, so squared distances are 4 times as big
  1. J = 5 − X: keep the minus sign in the mean
    E(5 − X)=5 − 18 = −13
  2. Answer
    Var(5 − X) = (−1)² × 4 = 4Reflecting the values keeps every distance the same.
E(5 − X) = 5 − 18 = −13J = 5 − X: keep the minus sign in the mean.Var(5 − X) = (−1)² × 4 = 4Reflecting the values keeps every distance the same.
Adding a constant moves the centre but never adds spread. Var(X + 5) is still 4.

2Two independent variables: square each multiplier

Means add with their signs. For independent variables the variances add, each multiplied by the square of its multiplier. Standard deviations are never added.
Worked example

X and Y are independent, with E(X) = 18, Var(X) = 4, E(Y) = 11, Var(Y) = 9. Find the mean and variance of Z = 2X − Y + 5.

  1. Means: use every sign and the constant
    E(Z)=2E(X) − E(Y) + 5=36 − 11 + 5 = 30
  2. Variances: square both multipliers
    Var(Z)=2²Var(X) + (−1)²Var(Y)=16 + 9 = 25
  3. Answer
    E(Z) = 30 and Var(Z) = 25, so SD(Z) = 5
Z = 2X − Y + 5X → ×2Y → ×(−1)Add the constant 5Random inputs are independent.

3A difference still adds variance

Taking Y away lowers the mean, but it adds its own uncertainty.
  1. The mean follows the minus sign
    E(X − Y)=18 − 11 = 7
  2. Answer
    Var(X − Y) = 4 + 9 = 13(−1)² = 1, so Y’s variance is added.
E(X − Y) = 18 − 11 = 7The mean follows the minus sign.Var(X − Y) = 4 + 9 = 13(−1)² = 1, so Y’s variance is added.
Var(X − Y) is 4 + 9, never 4 − 9. A variance can never be negative.
The mean rule works for any X and Y. The variance rule needs them to be independent: for a dependent pair, the two means and variances are not enough.

4Try it

Your turn

1 E(T) = 12 and Var(T) = 3. Find the mean and variance of 4T − 7.

2 U and V are independent; E(U) = 5, Var(U) = 2, E(V) = 3, Var(V) = 1. Find the mean and variance of 3U − 2V + 1.

3 For the same U and V, find Var(U − V).

  1. 1
    E = 4(12) − 7 = 41; Var = 4² × 3 = 48
  2. 2
    E = 15 − 6 + 1 = 10; Var = 9(2) + 4(1) = 22
  3. 3
    2 + 1 = 3: the variances add
Tick what you can do now
Practise with s26/63 Q6(b) (related transformation step); s26/62 Q2; s26/63 Q6(a)
1 / 6
9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Several draws or one value copied

§6.2 · Linear combinations of random variables

Weigh three bags and add the weights, or weigh one bag and write its weight down three times. Both totals have the same mean, but the first lets the bags balance each other out. Independent draws are written X₁ + X₂ + X₃; one value copied is 3X.

1Three draws against 3X: same mean, different variance

n independent draws add n variances: Var = nσ². One value times n squares the n: Var = n²σ².
Separate independent drawsX116X218X320One possible total: 16 + 18 + 20 = 54S = X₁ + X₂ + X₃One draw copied three timesX202020One possible total: 20 + 20 + 20 = 60C = 3X: the same value each timeSeparate independent drawsX116X218X320One possible total: 16 + 18 + 20 = 54S = X₁ + X₂ + X₃One draw copied three timesX202020One possible total: 20 + 20 + 20 = 60C = 3X: the same value each time
Worked example

X₁, X₂, X₃ are independent, each with mean 18 and variance 4. Find E and Var of S = X₁ + X₂ + X₃.

  1. Each draw brings its own mean
    E(S)=18 + 18 + 18 = 54
  2. Answer
    Var(S) = 4 + 4 + 4 = 12Independent draws: the variances add.
Worked example

X has mean 18 and variance 4. Find E and Var of C = 3X.

  1. The same mean as S
    E(C)=3(18) = 54
  2. Answer
    Var(C) = 3²(4) = 36All three copies move together.
X₁, X₂, X₃ are independent, each with mean 18 and variance 4. Find E and Var of S = X₁ + X₂ + X₃.
E(S) = 18 + 18 + 18 = 54Each draw brings its own mean.Var(S) = 4 + 4 + 4 = 12Independent draws: the variances add.
X has mean 18 and variance 4. Find E and Var of C = 3X.
E(C) = 3(18) = 54The same mean as S.Var(C) = 3²(4) = 36All three copies move together.

2See it on the normal curves

If X ~ N(18, 4), both totals are normal, centred on 54: S ~ N(54, 12) and C ~ N(54, 36). The wider curve puts more area beyond 60.
densityS ~ N(54, 12)4248546066P(S > 60) ≈ 0.04163Same horizontal and density scalesdensityC ~ N(54, 36)4248546066P(C > 60) ≈ 0.1587Same horizontal and density scalesdensityS ~ N(54, 12)4248546066P(S > 60) ≈ 0.04163Same horizontal and density scalesdensityC ~ N(54, 36)4248546066P(C > 60) ≈ 0.1587Same horizontal and density scales
Worked example

Find P(S > 60) for S ~ N(54, 12).

  1. U ~ N(0, 1). Divide by the SD √12, not by 12
    P(S > 60)=P(U > 60−5412)
  2. Answer
    = 1 − Φ(√3) ≈ 0.0416A thin tail: about 4%.
Worked example

Find P(C > 60) for C ~ N(54, 36).

  1. 60 is only one SD above the mean
    P(C > 60)=P(U > 60−546)
  2. Answer
    = 1 − Φ(1) ≈ 0.159Four times as likely.
Find P(S > 60) for S ~ N(54, 12).
P(S > 60) = P(U > 60−5412)U ~ N(0, 1). Divide by the SD √12, not by 12.= 1 − Φ(√3) ≈ 0.0416A thin tail: about 4%.
Find P(C > 60) for C ~ N(54, 36).
P(C > 60) = P(U > 60−546)60 is only one SD above the mean.= 1 − Φ(1) ≈ 0.159Four times as likely.
Both curves have total area 1, so the narrower one stands taller. The normal shapes come from the normal parent; a mean and a variance alone do not make a total normal.

3Try it

Your turn

1 W has mean 6 and variance 1.5. Find the mean and variance of W₁ + W₂ + W₃ + W₄ (independent draws).

2 Find the mean and variance of 4W.

3 W ~ N(6, 1.5). Find P(W₁ + W₂ + W₃ + W₄ > 26).

  1. 1
    mean 24, variance 4 × 1.5 = 6
  2. 2
    mean 24, variance 4² × 1.5 = 24
  3. 3
    total ~ N(24, 6): P(U > 2/√6) = 1 − Φ(0.816) ≈ 0.207
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
Practise with s26/65 Q2 (independent-observation totals); s26/65 Q2 (related normal-total practice)
2 / 6
9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Normal combinations and tail probabilities

§6.2 · Linear combinations of random variables

Add or subtract independent normal variables and the result is normal again. That means any question about a combination is one normal probability: find its mean and variance, name its distribution, then standardise.

1Mean, variance, then the table

Write the distribution down before you standardise: Z ~ N(mean, variance). Then divide by the standard deviation.
Worked example

X ~ N(18, 4) and Y ~ N(11, 9) are independent. Find P(Z > 35) for Z = 2X − Y + 5.

  1. Mean and variance
    E(Z)=2(18) − 11 + 5 = 30Var(Z)=16 + 9 = 25
  2. Name the distribution
    Z ~ N(30, 25), SD=5
  3. Standardise the boundary
    P(Z > 35)=P(U > 35−305)=1 − Φ(1)
  4. Answer
    P(Z > 35) ≈ 0.159
✓Check 35 is one SD above the mean, so about 16% lies beyond it
densityZ ~ N(30, 25)20303540value
The second number in N(30, 25) is the variance. Divide by √25 = 5, not by 25. The variables are continuous, so there is no half-unit correction.

2One multiplier across a bracket

A multiplier outside a bracket acts on every variable inside it. Square it for each variance.
H = X − 2(Y + W)XY + W → ×(−2)Combine signed valuesRandom inputs are independent.
densityH = X − 2(Y + W)−30−150−18value
Worked example

X ~ N(18, 4), Y ~ N(11, 9) and W ~ N(7, 1) are independent. H = X − 2(Y + W). Find P(H > −15).

  1. Mean: weight the whole bracket
    E(H)=18 − 2(11 + 7) = −18
  2. Variance: square the −2 for Y and for W
    Var(H)=4 + (−2)²(9 + 1) = 44
  1. Name the distribution
    H ~ N(−18, 44)
  2. Standardise; −15 is 3 above the mean
    P(H > −15)=1 − Φ(−15+1844)
  3. Answer
    P(H > −15) ≈ 0.326
Y and W are different variables, so Var(Y + W) = 9 + 1. Writing 2Y in place of the bracket would describe one copied value, not two separate ones.

3Try it

Your turn

1 R ~ N(20, 9) and T ~ N(12, 16) are independent. Write down the distribution of R + T.

2 Find P(R + T < 40).

3 Find P(2R − T > 25).

  1. 1
    R + T ~ N(32, 25)
  2. 2
    Φ((40 − 32)/5) = Φ(1.6) ≈ 0.945
  3. 3
    2R − T ~ N(28, 52): 1 − Φ(−3/√52) = Φ(0.416) ≈ 0.661
Tick what you can do now
Practise with s26/62 Q2; s26/63 Q6(b) (related normal-combination probability)
3 / 6
9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Which is bigger? Comparing two random values

§6.2 · Linear combinations of random variables

“Is X bigger than Y?” sounds like a question about two variables. Turn it into a question about one: X > Y is the same event as X − Y > 0. The difference has its own normal distribution, so the answer is one tail area.

1Form the difference, then compare it with zero

Worked example

X ~ N(18, 4) and Y ~ N(11, 9) are independent. Find P(X > Y).

  1. Let D = X − Y; the event is D > 0
    E(D)=18 − 11 = 7Var(D)=4 + 9 = 13
  2. Name the distribution
    D ~ N(7, 13)
  3. Standardise zero
    P(D > 0)=P(U > −713)=Φ(713)
  4. Answer
    P(X > Y) ≈ 0.974
✓Check zero is below the mean 7, so the answer is more than a half
densityD = X − Y ~ N(7, 13)0714value
Keep the event and the difference together. With Y − X, the event becomes Y − X < 0. Changing one without the other gives the opposite comparison.

2Totals of different sizes

Name each observation before you build a total. Two X readings are X₁ + X₂, not 2X.
Worked example

X₁, X₂ ~ N(18, 4) and Y₁, Y₂, Y₃ ~ N(11, 9) are all independent. Find the probability that the two-X total is more than the three-Y total.

  1. Let G be the gap; the event is G > 0
    G=(X₁ + X₂) − (Y₁ + Y₂ + Y₃)
  2. Mean: two 18s, minus three 11s
    E(G)=36 − 33 = 3
  3. Variance: five variances add
    Var(G)=4 + 4 + 9 + 9 + 9 = 35
  4. Standardise zero
    P(G > 0)=Φ(335)
  5. Answer
    P(G > 0) ≈ 0.694
densityG = (X₁ + X₂) − (Y₁ + Y₂ + Y₃)−100153value
Var(2X − 3Y) would be 4(4) + 9(9) = 97, not 35. That is a different random quantity: one X doubled and one Y tripled.

3Try it

Your turn

1 R ~ N(20, 9) and T ~ N(18, 16) are independent. Find P(R > T).

2 Find P(T > R).

3 R₁, R₂ are independent copies of R, and T₁, T₂ of T. Find P(R₁ + R₂ > T₁ + T₂ + 5).

  1. 1
    R − T ~ N(2, 25): Φ(2/5) = Φ(0.4) ≈ 0.655
  2. 2
    1 − 0.655 = 0.345
  3. 3
    R₁ + R₂ − T₁ − T₂ − 5 ~ N(−1, 50): Φ(−1/√50) ≈ 0.444
Tick what you can do now
Practise with s26/63 Q6(a); s26/65 Q2
4 / 6
9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Adding Poisson counts

§6.2 · Linear combinations of random variables

Two independent streams of events land in the same window: calls on two lines, faults on two machines. Their total count is Poisson again, with the means added. The rule is narrow, though: it holds for a plain sum, not for a copied count or a difference.

1The sum is Poisson: add the means

If A ~ Po(λ) and B ~ Po(μ) are independent, then A + B ~ Po(λ + μ).
Independent A ~ Po(2.4), B ~ Po(1.6)012346810P(S = s)S = A + B ~ Po(4); shaded integers: S < 4Independent A ~ Po(2.4), B ~ Po(1.6)012346810P(S = s)S = A + B ~ Po(4); shaded integers: S < 4
Worked example

A ~ Po(2.4) and B ~ Po(1.6) are independent counts in one window. Find P(A + B = 3) and P(A + B < 4).

  1. Add the means
    S=A + B ~ Po(4)
  2. One value
    P(S=3) = e⁻⁴ 4³/3! ≈ 0.195
  1. “Less than 4” is 0, 1, 2 or 3
    P(S < 4)=e⁻⁴(1 + 4 + 4²/2! + 4³/3!)
  2. Answer
    P(S = 3) ≈ 0.195 and P(S < 4) ≈ 0.433
✓Check these are the four shaded bars; counts are exact, so no continuity correction
Equal mean and variance alone do not prove a count is Poisson. Here it follows from two independent Poisson parts.

2A condition on the total: weigh the pairs

Once the total is fixed, only the pairs on that diagonal are possible, and they are not equally likely. Add the pairs you want, then divide by the probability of the condition.
Condition: A + B = 4B count across; A count down012340××××0.0051×××0.03×2××0.0675××3×0.0675×××40.0253××××All coloured cells: the conditioning event.Violet cells: A ≥ 2 within that event.
Worked example

Find P(A ≥ 2 | A + B = 4).

  1. Pairs with A ≥ 2 and a total of 4
    (2, 2), (3, 1), (4, 0)
  2. Multiply within each pair, then add
    e⁻⁴[(2.4²/2!)(1.6²/2!) + (2.4³/3!)(1.6) + 2.4⁴/4!]=8.7552e⁻⁴
  3. Divide by P(S = 4)
    P(S=4) = e⁻⁴4⁴/4! = (32/3)e⁻⁴8.7552 ÷ (32/3)
  4. Answer
    P(A ≥ 2 | S = 4) = 0.8208
✓Check e⁻⁴ cancels top and bottom
On the diagonal a bigger A forces a smaller B: once the total is fixed, A and B are no longer independent.

3Copies and differences are not Poisson

Means and variances still follow the usual rules. What is lost is the Poisson shape.
Copy A, then add the separate B countA + A = 2ABT = 2A + BThe two copies of A are not independent.
  1. 2A copies one count
    E(2A + B)=2(2.4) + 1.6 = 6.4
  2. Square the 2 for the copied count
    Var(2A + B)=4(2.4) + 1.6 = 11.2
  3. Answer
    2A + B is not PoissonIts mean and variance differ.
E(2A + B) = 2(2.4) + 1.6 = 6.42A copies one count.Var(2A + B) = 4(2.4) + 1.6 = 11.2Square the 2 for the copied count.2A + B is not PoissonIts mean and variance differ.
A − B has mean 0.8 and variance 4, and it can be −1 (A = 0, B = 1). No count is negative, so A − B is not Poisson either.
Two separate A readings are different: A₁ + A₂ + B ~ Po(6.4). The 2 in 2A means a copy, not a second reading.

4Try it

Your turn

1 C ~ Po(1.5) and D ~ Po(2.5) are independent. Find P(C + D = 2).

2 Find P(C + D ≤ 1).

3 Find P(C = 0 | C + D = 2).

4 Is 3C + D a Poisson variable? Give a reason.

  1. 1
    C + D ~ Po(4): e⁻⁴4²/2! ≈ 0.147
  2. 2
    e⁻⁴(1 + 4) ≈ 0.0916
  3. 3
    P(C = 0)P(D = 2)/P(C + D = 2) = (2.5/4)² ≈ 0.391
  4. 4
    no: mean 7 but variance 9(1.5) + 2.5 = 16
Tick what you can do now
Practise with m26/62 Q3(a)(i) (related Poisson-sum practice); s26/62 Q4(a); s26/62 Q4(b) (related Poisson-total conditioning)
5 / 6
9709 · Unit 29 · Linear combinations of random variables
Revisionbyexamplicity

Working backwards to a missing value

§6.2 · Linear combinations of random variables

Every rule on these pages can run in reverse. Know the answer, a mean, a variance or a probability, and you can recover the multiplier, scale or rate that produced it. Watch the variance: it squares, so it hides the sign.

1A multiplier from the variance: keep both signs

Solve the variance equation first; the constant does not appear in it. A square has two roots, so carry both into the mean equation.
Worked example

X and Y are independent, E(X) = 18, Var(X) = 4, E(Y) = 11, Var(Y) = 9. For Z = aX − Y + b, E(Z) = 30 and Var(Z) = 25. Find all possible a and b, then the pair with a > 0.

  1. Variance: b drops out
    4a² + 9=25a²=4, so a = 2 or a = −2
  2. Mean, with each signed a
    18a − 11 + b=30b=41 − 18a
  3. Pair them up
    a=2: b = 5a=−2: b = 77
  4. Answer
    a = 2, b = 5 (the condition a > 0 rules out a = −2, b = 77)
✓Check (−2)²(4) + 9 = 25 and −36 − 11 + 77 = 30: without a > 0, both pairs are valid
One square, two signs4a² + 9 = 25 → a² = 4a = +2, b = 5a = −2, b = 77A stated a > 0 selects the left pair.

2A scale from a normal probability

Write the distribution with the unknown in it, then turn the probability into a z-value from the table. A probability below 0.5 gives a negative z.
densityFitted K = c(X + 2Y), c > 030385541.44valuedensityFitted K = c(X + 2Y), c > 030385541.44value
Worked example

X ~ N(18, 4) and Y ~ N(11, 9) are independent. K = c(X + 2Y) with c > 0, and P(K < 38) = 0.30. Find c to 3 significant figures.

  1. Mean and variance in terms of c
    E(K)=c(18 + 22) = 40cVar(K)=c²(4 + 36) = 40c²
  2. c > 0, so SD = c√40
    K ~ N(40c, 40c²)
  1. Table: Φ(z) = 0.30
    z ≈ −0.5244
  2. Standardise 38 and solve
    38−40cc40=qc=3840+q40
  3. Answer
    c ≈ 1.04
✓Check with c unrounded, μ ≈ 41.4356, σ ≈ 6.5515 and Φ((38 − μ)/σ) = 0.3000

3A rate from a Poisson probability

An unknown rate goes into the total as well: A + B ~ Po(2.4 + λ). Write the condition with P(S = 0) = e to the minus the mean, and solve with logs.
Worked example

A ~ Po(2.4) and B ~ Po(λ) are independent, λ > 0, and S = A + B. P(S = 0) = P(A = 0)/5. Find λ, then P(S = 1).

  1. Zero counts
    e−2.4−λ=e−2.45
  2. Cancel e⁻²·⁴ and take logs
    e−λ=15λ=ln(5) ≈ 1.61
  3. Use the total, S ~ Po(2.4 + ln 5)
    P(S=1) = (2.4+ln(5))e−2.4−ln(5)
  4. Answer
    λ = ln 5 ≈ 1.61 and P(S = 1) ≈ 0.0727
✓Check e^(−ln 5) = 1/5, so P(S = 0) = e⁻²·⁴/5 exactly
Independent Poisson componentsA: mean 2.4B: mean λS: mean 2.4 + λP(S = 0) = exp[−(2.4 + λ)]

4Try it

Your turn

1 U has mean 5 and variance 2. aU + b has mean 13 and variance 18, with a > 0. Find a and b.

2 R ~ N(20, 9) and K = cR with c > 0. P(K < 50) = 0.9. Find c to 3 significant figures.

3 C ~ Po(1.5) and D ~ Po(μ) are independent, and P(C + D = 0) = e⁻⁴. Find μ.

  1. 1
    2a² = 18, so a = 3; 3(5) + b = 13, so b = −2
  2. 2
    K ~ N(20c, 9c²); Φ(z) = 0.9 gives z ≈ 1.282; 50 = 20c + 1.282(3c), so c ≈ 2.10
  3. 3
    1.5 + μ = 4, so μ = 2.5
Tick what you can do now
  • not yet? step 1
  • not yet? step 2
  • not yet? step 3
Practise with s26/63 Q6(b) (related inverse-parameter practice); s26/61 Q5(a)(ii)
6 / 6