All revision notes topics

Expectation and variance of discrete random variablesEdexcel International A Level Maths: Revision notes

Section 1

The mean, E(X)

The expectation (mean) of a discrete random variable is the long-run average value, found by weighting each value by its probability: E(X)=∑x P(X=x).E(X)=\sum x\,P(X=x). Example: P(X=0)=0.2P(X=0)=0.2, P(X=1)=0.3P(X=1)=0.3, P(X=2)=0.4P(X=2)=0.4, P(X=3)=0.1P(X=3)=0.1 gives E(X)=0+0.3+0.8+0.3=1.4E(X)=0+0.3+0.8+0.3=1.4. E(X)E(X) need not be a possible value of XX. If XX takes values symmetrically about a centre, the mean is at the centre.

Key termsexpectationmeanlong-run average
Common mistake

Averaging the values of XX without weighting by their probabilities.

Section 2

E(X²) and the variance

E(X2)=∑x2P(X=x)E(X^2)=\sum x^2P(X=x): square each value first, then weight by its probability. The variance measures spread: Var(X)=E(X2)−[E(X)]2.\mathrm{Var}(X)=E(X^2)-[E(X)]^2. The standard deviation is Var(X)\sqrt{\mathrm{Var}(X)}. Variance cannot be negative. Example: with the distribution above, E(X2)=0+0.3+1.6+0.9=2.8E(X^2)=0+0.3+1.6+0.9=2.8, so Var(X)=2.8−1.42=0.84\mathrm{Var}(X)=2.8-1.4^2=0.84. A fully worked layout (a table of xx, P(X=x)P(X=x), xPxP, x2Px^2P) keeps this tidy. If you are given Var(X)\mathrm{Var}(X) and E(X)E(X), rearrange to find E(X2)=Var(X)+[E(X)]2E(X^2)=\mathrm{Var}(X)+[E(X)]^2.

Key termsvariancestandard deviation$E(X^2)$
Common mistake

Writing E(X2)=[E(X)]2E(X^2)=[E(X)]^2. These are equal only when the variance is zero.

Exam tip

A negative variance means an error. Recheck your working.

Section 3

Linear transformations: E(aX+b) and Var(aX+b)

For constants aa and bb: E(aX+b)=aE(X)+b,Var(aX+b)=a2Var(X).E(aX+b)=aE(X)+b,\qquad \mathrm{Var}(aX+b)=a^2\mathrm{Var}(X).

  • The mean is shifted and scaled in the same way as the values.
  • The constant bb has no effect on the spread, because adding a constant moves every value by the same amount.
  • The multiplier aa is squared in the variance. Example: E(W)=10E(W)=10, Var(W)=6\mathrm{Var}(W)=6 and V=3W−4V=3W-4: E(V)=3(10)−4=26E(V)=3(10)-4=26 and Var(V)=9×6=54\mathrm{Var}(V)=9\times6=54. For a negative multiplier, e.g. 5−2X5-2X: Var(5−2X)=(−2)2Var(X)=4Var(X)\mathrm{Var}(5-2X)=(-2)^2\mathrm{Var}(X)=4\mathrm{Var}(X).
Key termslinear transformation
Common mistake

Using aa rather than a2a^2 for the variance, or letting bb affect the variance.

Section 4

Finding unknown probabilities

Often the distribution contains unknowns. Write one equation from ∑p=1\sum p=1 and another from a given mean or variance, then solve the simultaneous equations. Example: P(X=1)=0.1P(X=1)=0.1, P(X=2)=aP(X=2)=a, P(X=3)=0.4P(X=3)=0.4, P(X=4)=bP(X=4)=b with E(X)=2.9E(X)=2.9. From ∑p=1\sum p=1: a+b=0.5a+b=0.5. From E(X)E(X): 0.1+2a+1.2+4b=2.90.1+2a+1.2+4b=2.9, so 2a+4b=1.62a+4b=1.6. Solving gives a=0.2a=0.2, b=0.3b=0.3. Then E(X2)=0.1+0.8+3.6+4.8=9.3E(X^2)=0.1+0.8+3.6+4.8=9.3 and Var(X)=9.3−2.92=0.89\mathrm{Var}(X)=9.3-2.9^2=0.89.

Key termssimultaneous equations
Exam tip

Check your constants by confirming the probabilities add to 1 and the mean agrees with the given value.

Section 5

Interpreting expectation in context

In a game with prize XX and an entry fee ff, the expected net gain is E(X)−fE(X)-f. The game is fair if E(X)=fE(X)=f. A positive expected gain favours the player; a negative one favours the organiser. Example: a die roll pays 8 pounds for a 6, 3 pounds for a 4 or 5, and nothing otherwise: E(X)=73E(X)=\frac73. At a fee of 2 pounds the expected net gain is 13\frac13 pounds, about 33p per game. Remember that E(X)E(X) is a long-run average: any single game gives only 0, 3 or 8.

Key termsexpected net gainfair game
Exam tip

Say 'on average' or 'in the long run' when interpreting an expectation.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Expectation and variance of discrete random variables

  1. The discrete random variable XX has probability distribution P(X=0)=0.2P(X=0)=0.2, P(X=1)=0.3P(X=1)=0.3, P(X=2)=0.4P(X=2)=0.4 and P(X=3)=0.1P(X=3)=0.1.
    Find E(3X+2)E(3X+2).2 marks
  2. The random variable WW has E(W)=10E(W)=10 and Var(W)=6\mathrm{Var}(W)=6. The random variable VV is defined by V=3W−4V=3W-4.
    Find E(W2)E(W^2).2 marks
  3. The discrete random variable XX takes the values 1, 2, 3 and 4 with P(X=1)=0.1P(X=1)=0.1, P(X=2)=aP(X=2)=a, P(X=3)=0.4P(X=3)=0.4 and P(X=4)=bP(X=4)=b, where aa and bb are constants. It is given that E(X)=2.9E(X)=2.9.
    Find the values of aa and bb.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).