All revision notes topics

Functions of a DRVAQA A-Level Further Maths: Revision notes

Section 1

A function of a discrete random variable

If XX is a DRV and gg is a function, then Y=g(X)Y=g(X) is also a DRV. It takes the values g(xi)g(x_i), with the probability of each value equal to P(X=xi)P(X=x_i) (if two values of xx give the same g(x)g(x), add their probabilities). Examples of gg in this topic: X2X^2, 5X35X^3, 18X−318X^{-3} and 6X−16X^{-1}. A table with rows xx, g(x)g(x) and P(X=x)P(X=x) keeps the working clear.

Key termsfunction of a DRV
Exam tip

Negative powers need x≠0x\ne0. Evaluate each g(x)g(x) in a table first, then multiply by the probability.

Section 2

Expectation of g(X)

E(g(X))=∑g(xi) pi.E\big(g(X)\big)=\sum g(x_i)\,p_i. Apply gg to each value, multiply by its probability and add. You do not need the distribution of g(X)g(X) itself. Example: X=1,2,3X=1,2,3 with probabilities 0.2,0.5,0.30.2,0.5,0.3: E(X2)=0.2+2+2.7=4.9E(X^2)=0.2+2+2.7=4.9 and E(5X3)=5(0.2+4+8.1)=61.5E(5X^3)=5(0.2+4+8.1)=61.5. Constant multiples come out: E(18X−3)=18E(X−3)E(18X^{-3})=18E(X^{-3}).

Key termsE(g(X))
Common mistake

Applying gg to the probabilities, or to the mean. E(X2)≠[E(X)]2E(X^2)\ne[E(X)]^2 and E(1X)≠1E(X)E\left(\frac1X\right)\ne\frac1{E(X)}.

Section 3

Why E(g(X)) is not g(E(X))

In general E(g(X))≠g(E(X))E(g(X))\ne g(E(X)). For g(x)=x2g(x)=x^2, E(X2)=Var(X)+[E(X)]2≥[E(X)]2E(X^2)=\mathrm{Var}(X)+[E(X)]^2\ge[E(X)]^2. Example: X=2,3,4X=2,3,4 with probabilities 0.25,0.5,0.250.25,0.5,0.25: E(X)=3E(X)=3, so [E(X)]2=9[E(X)]^2=9, but E(X2)=1+4.5+4=9.5E(X^2)=1+4.5+4=9.5. The gap is Var(X)=0.5\mathrm{Var}(X)=0.5. The equality E(g(X))=g(E(X))E(g(X))=g(E(X)) holds only when gg is linear, g(x)=ax+bg(x)=ax+b.

Key termslinear function

Section 4

Variance of g(X)

Treat Y=g(X)Y=g(X) as a variable and use Var(Y)=E(Y2)−[E(Y)]2\mathrm{Var}(Y)=E(Y^2)-[E(Y)]^2, where E(Y2)=∑[g(xi)]2piE(Y^2)=\sum[g(x_i)]^2p_i. A constant multiple scales the variance: Var(kg(X))=k2Var(g(X))\mathrm{Var}(kg(X))=k^2\mathrm{Var}(g(X)). Example: X=1,2,4X=1,2,4 with probabilities 0.4,0.4,0.20.4,0.4,0.2. E(X−1)=0.65E(X^{-1})=0.65, E(X−2)=0.5125E(X^{-2})=0.5125, so Var(X−1)=0.5125−0.4225=0.09\mathrm{Var}(X^{-1})=0.5125-0.4225=0.09 and Var(6X−1)=36×0.09=3.24\mathrm{Var}(6X^{-1})=36\times0.09=3.24. For Var(5X3)\mathrm{Var}(5X^3) you need E(X6)E(X^6): Var(5X3)=25[E(X6)−(E(X3))2]\mathrm{Var}(5X^3)=25\left[E(X^6)-(E(X^3))^2\right].

Key termsvariance of g(X)
Common mistake

Squaring only the constant. For Var(5X3)\mathrm{Var}(5X^3) you need E(X6)E(X^6), not E(X3)2E(X^3)^2.

Section 5

Building an answer

  1. Write out the distribution as a table (find unknown constants from ∑p=1\sum p=1).
  2. Add rows for g(x)g(x) and, for variance, [g(x)]2[g(x)]^2.
  3. Compute E(g(X))E(g(X)) and E([g(X)]2)E([g(X)]^2).
  4. Use Var=E(⋅2)−[E(⋅)]2\mathrm{Var}=E(\cdot^2)-[E(\cdot)]^2 and the scaling rules E(aY+b)=aE(Y)+bE(aY+b)=aE(Y)+b, Var(aY+b)=a2Var(Y)\mathrm{Var}(aY+b)=a^2\mathrm{Var}(Y).
  5. Round only at the end. Context questions: the area A=X2A=X^2 of a square tile with random side XX, and a cost C=0.4A+1C=0.4A+1 are functions of XX; find the mean cost by combining the two rules.
Key termstable method
Exam tip

Check variance is positive; a negative value means E(Y2)E(Y^2) or E(Y)E(Y) is wrong.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Functions of a DRV

  1. The discrete random variable XX takes the values 1,2,31,2,3 with P(X=1)=0.2P(X=1)=0.2, P(X=2)=0.5P(X=2)=0.5 and P(X=3)=0.3P(X=3)=0.3.
    Find E(5X3)E(5X^3).2 marks
  2. The discrete random variable XX takes the values 1,2,41,2,4 with P(X=1)=0.4P(X=1)=0.4, P(X=2)=0.4P(X=2)=0.4 and P(X=4)=0.2P(X=4)=0.2.
    Hence find Var(6X−1)\mathrm{Var}(6X^{-1}).2 marks
  3. The discrete random variable XX has probability distribution P(X=x)=x10P(X=x)=\frac{x}{10} for x=1,2,3,4x=1,2,3,4.
    Find E(18X−3)E(18X^{-3}).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).