Study Guide

Linear combinations of random variables

CIE A-Level MathematicsΒ· 9709 Unit 4: Probability & Statistics 1 & 2, Section 8Β· 25 min read

1. Linearity of Expectation for Linear Combinationsβ˜…β˜…β˜†β˜†β˜†β± 6 min

πŸ“˜ Definition

Linearity of Expectation

This identity holds for any pair of random variables, no matter if they are dependent or independent, for all real constants a, b, c.

This rule extends naturally to any number of variables. For a sum of random variables with weights , the expected value is . No additional conditions apply, making this one of the most robust identities in probability theory.

πŸ“ Worked Example

Given , , calculate the value of

  1. 1

    Apply linearity of expectation directly, no independence checks required

  2. 2
    E[4Xβˆ’2Y+7]=4E[X]βˆ’2E[Y]+7E[4X - 2Y +7] = 4E[X] - 2E[Y] +7
  3. 3
    =4(5)βˆ’2(3)+7=20βˆ’6+7=21= 4(5) - 2(3) +7 = 20 -6 +7 = 21
βœ“ Quick check

Test your understanding of linearity of expectation:

  1. Which of these values is equal to if , ?

    • 3

    • 5

    • 7

    • 9

    Reveal answer
    3 β€”

    Calculation: 22 + 31 -4 = 4 +3 -4 = 3, no dependence between A and B affects the result.

Exam tip:

CIE exam mark schemes award full 2/3 marks for correct substitution of values into the linearity of expectation formula, no working beyond the final calculation is required unless stated.

2. Variance of Linear Combinationsβ˜…β˜…β˜…β˜†β˜†β± 7 min

Var(aX+bY)=a2Var(X)+b2Var(Y)+2abCov(X,Y)Var(aX + bY) = a^2 Var(X) + b^2 Var(Y) + 2ab \text{Cov}(X,Y)

If X and Y are independent, their covariance , so the formula simplifies to . Note that variance never scales linearly with constants: all coefficients are squared, and the constant offset added to the combination has no impact on variance, as it does not change the spread of the distribution.

πŸ“ Worked Example

Given , , X and Y are independent. Calculate

  1. 1

    Drop the constant offset 10 first, as it does not affect variance

  2. 2

    Square all coefficients, sum the individual variances multiplied by their squared coefficients

  3. 3
    Var(3Xβˆ’2Y)=32Var(X)+(βˆ’2)2Var(Y)Var(3X -2Y) = 3^2 Var(X) + (-2)^2 Var(Y)
  4. 4
    =9βˆ—9+4βˆ—16=81+64=145= 9*9 + 4*16 = 81 + 64 = 145

Exam tip:

You must explicitly state 'X and Y are independent' in your working to justify dropping the covariance term, to avoid losing 1 mark in the exam.

3. Linear Combinations of Independent Normal Variablesβ˜…β˜…β˜…β˜†β˜†β± 6 min

βœ“ Calculator OK

πŸ“˜ Definition

Reproductive Property of Normal Distribution

Any linear combination of independent normally distributed random variables is also normally distributed.

If and and X and Y are independent, then . This property is unique to a small set of common distributions, and is tested frequently in CIE Paper 6 and Paper 7.

πŸ“ Worked Example

The mass of a small apple g, the mass of a banana g. Find the probability that the total mass of 1 apple and 1 banana is less than 300g.

  1. 1

    Define the total mass

  2. 2
    E[T]=120+150=270E[T] = 120 + 150 = 270
  3. 3
    Var(T)=152+202=225+400=625,ΟƒT=25Var(T) = 15^2 + 20^2 = 225 + 400 = 625, \sigma_T = 25
  4. 4

    So

  5. 5
    P(T<300)=Ξ¦(300βˆ’27025)=Ξ¦(1.2)=0.8849P(T < 300) = \Phi\left(\frac{300 - 270}{25}\right) = \Phi(1.2) = 0.8849

4. Distinguishing $aX$ vs $X_1 + X_2 + ... + X_a$β˜…β˜…β˜…β˜…β˜†β± 6 min

This is the single most commonly tested trick in this topic. If you take a single random variable X and multiply it by 2, you get , with variance . If you take two independent copies of X, and , each with the same distribution as X, their sum has variance . These are completely different distributions, and exam questions explicitly test this distinction.

Methods compared

Side by side comparison of the two cases:

Single variable multiplied by 2: $2X$

Every value of X is doubled, so the spread of the distribution is doubled

+ Pros: Simple scaling of the original distribution

βˆ’ Cons: Variables are perfectly correlated, not independent

Sum of 2 independent copies: $X_1 + X_2$

Two separate independent observations from the same distribution, summed

+ Pros: No covariance term, variance adds linearly

βˆ’ Cons: Distribution shape is different from scaled X

πŸ“ Worked Example

Given , find the difference between and where are independent copies of X.

  1. 1
    Var(3X)=32Var(X)=9βˆ—4=36Var(3X) = 3^2 Var(X) = 9 * 4 = 36
  2. 2
    Var(X1+X2+X3)=Var(X)+Var(X)+Var(X)=4+4+4=12Var(X_1 + X_2 + X_3) = Var(X) + Var(X) + Var(X) = 4 + 4 + 4 = 12
  3. 3

    Difference = 36 - 12 = 24

Exam tip:

Read the question wording carefully: 'the total of 3 independent observations' means sum of 3 variables, 'three times the value of a single observation' means 3X.

5. Common Pitfalls

Wrong move:

Calculating as instead of

Why:

Forgetting variance measures squared spread, so scaling a variable by a scales its variance by

Correct move:

Always square the constant coefficient when calculating variance of a scaled variable

Wrong move:

Calculating as

Why:

Treating variance like expectation, where the minus sign carries through

Correct move:

Square the negative coefficient, so for independent variables

Wrong move:

Treating as equivalent to

Why:

Confusing scaling a single variable with summing two independent copies

Correct move:

Check question wording: if it refers to multiple separate observations, sum their variances directly

Wrong move:

Including constant offsets in variance calculations

Why:

Assuming adding a fixed number to a distribution changes its spread

Correct move:

Ignore all constant terms when calculating variance, they only affect the expected value

Wrong move:

Applying the normal reproductive property to dependent variables

Why:

Forgetting the rule only applies to independent normal variables

Correct move:

Explicitly confirm independence is stated in the question before using the simplified variance formula

6. Quick Reference Cheatsheet

Operation

Expectation

Variance (independent variables)

Variance (dependent variables)

7. Frequently Asked

Do I need variables to be independent to calculate the expected value of a linear combination?

No. The linearity of expectation holds for all random variables, regardless of dependence. Independence is only required to simplify the variance calculation to remove covariance terms.

Why is the sum of two normal variables also normal?

The normal distribution is closed under linear transformations, meaning any linear combination of independent normally distributed variables will itself follow a normal distribution, with parameters derived from the sum of individual expectations and variances.

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2023 Β· 7

    Sum of 3 independent test scores

  • 2022 Β· 6

    Difference of two normal variables

  • 2021 Β· 7

    Var(2X) vs Var(X1+X2) comparison

Going deeper

What's Next

Mastering linear combinations of random variables is the critical foundation for sampling distributions, where you will analyze the behaviour of sums and means of large sets of independent observations. This topic also directly supports hypothesis testing for population means, and linear regression analysis, where you will model observed values as linear combinations of parameters and error terms. You will see this concept reused in almost all subsequent Probability & Statistics 2 topics, so ensure you can reliably distinguish between scaled single variables and sums of independent copies to avoid losing easy marks in your exam.