Linear Combinations of Random Variables (DP IB Applications & Interpretation (AI)): 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 left parenthesis X right parenthesis equals straight E open parentheses X squared close parentheses minus open square brackets straight E open parentheses X close parentheses close square brackets squared

      • where straight E open parentheses X squared close parentheses equals sum x squared straight P left parenthesis X equals x right parenthesis

    • 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:

X over a equals 1 over a X

Worked Example

X is a random variable such that straight E left parenthesis X right parenthesis equals 5and Var left parenthesis X right parenthesis equals 4.

Find the value of:

(i) straight E left parenthesis 3 X plus 5 right parenthesis

(ii) Var left parenthesis 3 X plus 5 right parenthesis

(iii) Var left parenthesis 2 minus X right parenthesis.

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
     

    Error converting from MathML to accessible text.
     

    • This is given in the exam formula booklet

    • This can be written as straight E invisible function application open parentheses sum a subscript i X subscript i close parentheses equals sum a subscript i straight E invisible function application open parentheses X subscript i close parentheses blank

    • This is true for any random variable 

    Error converting from MathML to accessible text.
     

    • This is given in the exam formula booklet

    • This can be written as Var invisible function application open parentheses sum a subscript i X subscript i close parentheses equals sum a subscript i superscript 2 Var invisible function application open parentheses X subscript i close parentheses

    • 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 

straight E left parenthesis X right parenthesis equals 5  and  Var left parenthesis X right parenthesis equals 3,

straight E left parenthesis Y right parenthesis equals negative 2  and  Var left parenthesis Y right parenthesis equals 4.

Find the value of:

(i) straight E left parenthesis 2 X plus 5 Y right parenthesis,

(ii) Var left parenthesis 2 X plus 5 Y right parenthesis,

(iii) Var left parenthesis 4 X minus Y right parenthesis.

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

You've read 0 of your 5 free revision notes this week

Unlock more, it's free!

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

the (exam) results speak for themselves:

Dan Finlay

Author: Dan Finlay

Expertise: Maths Subject 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: Maths Content Creator

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.