Linear Combinations of Random Variables (DP IB Applications & Interpretation (AI): HL): Revision Note

Dan Finlay

Written by: Dan Finlay

Reviewed by: Roger B

Updated on

Transformation of a single variable

What is Var(X)?

  • Var(X) represents the variance of the random variable X

  • Var(X) can be calculated by the formula

    • Var(X)=E(X2)[E(X)]2

      • where E(X2)=x2P(X=x)

    • You will not be required to use this formula in the exam

What are the formulae for E(aX ± b) and Var(aX ± b)?

  • If a and b are constants then the following formulae are true:

    • E(aX ± b) = aE(X) ± b

    • Var(aX ± b) = a² Var(X)

      • These are given in the exam formula booklet

  • This is the same as linear transformations of data

    • The mean is affected by multiplication and addition/subtraction

    • The variance is affected by multiplication but not addition/subtraction

Examiner Tips and Tricks

Remember that division can be written as a multiplication:

Xa=1aX

Worked Example

X is a random variable such that E(X)=5and Var(X)=4.

Find the value of:

(i) E(3X+5)

(ii) Var(3X+5)

(iii) Var(2X).

Answer:

4-4-2-ib-aa-ai-hl-axb-we-solution

Transformation of multiple variables

What is the mean and variance of aX + bY?

  • Let X and Y be two random variables and let a and b be two constants

  • E(aX + bY) = aE(X) + bE(Y)

    • This is true for any random variables X and Y

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

    • This is true if X and Y are independent

  • E(aX - bY) = aE(X) - bE(Y)

    • This is true for any random variables X and Y

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

    • This is true if X and Y are independent

    • Notice that you still add the two terms together on the right hand side

      • This is because b² is positive even if b is negative

      • Therefore the variances of aX + bY and aX - bY are the same

What is the mean and variance of a linear combination of n random variables?

  • The results for two random variables can be extended to any number of random variables

  • Let X1, X2, ..., Xn be n random variables and a1, a2, ..., an be n constants
     

    E(a1X1±a2X2±...±anXn)=a1E(X1)±a2E(X2)±...±anE(Xn)
     

    • This is given in the exam formula booklet

    • This can be written as E(aiXi)=aiE(Xi) 

    • This is true for any random variable 

    Var(a1X1±a2X2±...±anXn)=a12Var(X1)+a22Var(X2)+...+an2Var(Xn)
     

    • This is given in the exam formula booklet

    • This can be written as Var(aiXi)=ai2Var(Xi)

    • This is true if the random variables are independent

      • Notice that the constants get squared so the terms on the right hand side will always be positive

For a given random variable X, what is the difference between 2X and X1 + X2?

  • 2X means one observation of X is taken and then doubled

  • X1 + X2 means two observations of X are taken and then added together

  • 2X and X1 + X2 have the same expected values

    • E(2X) = 2E(X)

    • E(X1 + X2) = E(X1) + E(X2) = 2E(X)

  • 2X and X1 + X2 have different variances

    • Var(2X) = 2²Var(X) = 4Var(X)

    • Var(X1 + X2) = Var(X1) + Var(X2) = 2Var(X)

  • To see the distinction:

    • Suppose X could take the values 0 and 1

      • 2X could then take the values 0 and 2

      • X1 + X2 could then take the values 0, 1 and 2

  • Questions are likely to describe the variables in context

    • For example: The mass of a carton containing 6 eggs is the mass of the carton plus the mass of the 6 individual eggs

    • This can be modelled by M = C + E1 + E2 + E3 + E4 + E5 + E6 where

      • C is the mass of a carton

      • E is the mass of an egg

    • It is not C + 6E because the masses of the 6 eggs could be different

Examiner Tips and Tricks

In an exam, when dealing with multiple variables ask yourself which of these two cases is true:

  • You are adding together different observations using the same variable: X1X+ ... + Xn

  • You are taking a single observation of a variable and multiplying it by a constant: nX

Worked Example

X and Yare independent random variables such that 

E(X)=5  and  Var(X)=3,

E(Y)=2  and  Var(Y)=4.

Find the value of:

(i) E(2X+5Y),

(ii) Var(2X+5Y),

(iii) Var(4XY).

Answer:

4-6-1-ib-ai-hl-axby-we-solution

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Dan Finlay

Author: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.

Roger B

Reviewer: Roger B

Expertise: Development Editor

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.