E(X) & Var(X) of Discrete Random Variables (Edexcel A Level Further Maths: Further Statistics 1): Revision Note

Exam code: 9FM0

Mark Curtis

Written by: Mark Curtis

Reviewed by: Dan Finlay

Updated on

E(X) of DRVs

What does E(X) mean and how do I calculate E(X)?

  • E(X) means the expected value or the mean of a random variable X

    • The expected value does not need to be an obtainable value of X

    • For example: the expected value number of times a coin will land on tails when flipped 5 times is 2.5

  • For a discrete random variable, it is calculated by:

    • Multiplying each value of X with its corresponding probability

    • Adding all these terms together

E(X)=xP(X=x)

  • Look out for symmetrical distributions (where the values of X are symmetrical and their probabilities are symmetrical)

    • The mean of these is the same as the median

    • For example: if X can take the values 1, 5, 9 with probabilities 0.3, 0.4, 0.3 respectively then by symmetry the mean is 5

Worked Example

Daphne pays $15 to play a game where she wins a prize of $1, $5, $10 or $100. The random variable W represents the amount she wins and has the probability distribution shown in the following table:

w

1

5

10

100

P(W=w)

0.35

0.5

0.05

0.1

  Calculate the expected value of Daphne's prize.

expected-values-we

Var(X) of DRVs

How do I calculate E(X2)?

  • E(X2) means the expected value or the mean of the random variable X2

  • It is calculated by:

    • Squaring each value of X to get the values of X2

    • Multiplying each value of X2 by its corresponding probability

    • Adding all these terms together

  • It's formula is straight E open parentheses X close parentheses equals sum from blank to blank of x squared P open parentheses X equals x close parentheses

Is E(X²) equal to (E(X))²?

  • No!

  • E(X2) is the mean of the squares of X

  • (E(X))2 is the square of the mean of X

  • For example, if X = 1 or X = -1, both with probabilities of 0.5 then

    • the mean is 0 so (E(X))2 = 02 = 0

    • but the squares of X are 1 and 1, so E(X2)=1

What is Var(X) and how do I calculate Var(X)?

  • Var(X) means the variance of a random variable X

    • How spread out X values are from their mean

      • High Var(X) means more spread out

    • How consistent X values are around their mean

      • High Var(X) means more variability so less consistent

  • For any random variable this can be calculated using the formula

Var(X)=E(X2)(E(X))2

  • This is the mean of the squares of X minus the square of the mean of X

  • Var(X) is always positive

  • The standard deviation of a random variable X is Var(X)

  • An alternative formula is Var(X)=E[(XE(X))2]

    • The expected value of the squares of the distances from the mean

    • This is its formal definition, but less useful in practice

How do I find E(X2) if Var(X) and E(X) are known?

  • Rearrange the formula Var(X)=E(X2)(E(X))2 

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

    • Then substitute in the values for Var(X) and E(X)

Examiner Tips and Tricks

  • Check if your answer makes sense:

    • The mean should fit within the range of the values of X.

    • The variance must be positive.

Worked Example

The discrete random variable X has the probability distribution shown in the following table:

x

2

3

5

7

P(X=x)

0.1

0.3

0.2

0.4

(a) Find the value of E(X).

3-1-2-ex-_-varx-discrete-we-solution_a

(b) Find the value of E(X2).

 

3-1-2-ex-_-varx-discrete-we-solution_b

(c) Find the value of Var(X) .

3-1-2-ex-_-varx-discrete-we-solution_c

E(g(X)) of DRVs

How do I calculate E(g(X))?

  • E(X2) means sum from blank to blank of x to the power of 2 space end exponent straight P open parentheses X equals x close parentheses 

    • The expected value (mean) of X2

    • X2 is a function of X

  • Let g(X) be any function of X

    • Then straight E open parentheses straight g open parentheses X close parentheses close parentheses equals sum from blank to blank of space straight g open parentheses x close parentheses straight P open parentheses X equals x close parentheses

    • Multiply values of g(x) by their corresponding probabilities

  • E(g(X)) does not mean substitute the value of E(X) into g(x)

    • E(g(X))g(E(X))

3-1-2-ex-_-varx-discrete-diagram-2

Worked Example

The random variable X has the following probability distribution.  

x

1

8

27

P(X=x)

0.1

0.3

0.6

Determine which out of E(X3) or E(ln X) is greater.

egx-of-drvs

Unlock more, it's free!

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

the (exam) results speak for themselves:

Build on this topic

Mark Curtis

Author: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.

Dan Finlay

Reviewer: 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.