All revision notes topics

Mean and variance of a CRVAQA A-Level Further Maths: Revision notes

Section 1

Mean of a continuous random variable

For a discrete variable E(X)=∑xP(X=x)E(X)=\sum xP(X=x). For a continuous variable the sum becomes an integral over the range of ff: E(X)=∫−∞∞x f(x) dx.E(X)=\int_{-\infty}^{\infty}x\,f(x)\,dx. Only integrate over the interval where ff is non-zero. If ff is symmetric, the mean is the line of symmetry, which saves integration. Example: f(x)=3x28f(x)=\frac{3x^2}{8} on [0,2][0,2] gives E(X)=38∫02x3 dx=38×4=32E(X)=\frac38\int_0^2x^3\,dx=\frac38\times4=\frac32.

Key termsexpectationmean
Common mistake

Integrating f(x)f(x) instead of xf(x)xf(x). That always gives 1, not the mean.

Section 2

Variance and standard deviation

First find E(X2)=∫x2f(x) dxE(X^2)=\int x^2f(x)\,dx. Then Var(X)=E(X2)−[E(X)]2,SD(X)=Var(X).\text{Var}(X)=E(X^2)-[E(X)]^2,\qquad \text{SD}(X)=\sqrt{\text{Var}(X)}. Variance can never be negative; if you get a negative value, you have a mistake in E(X2)E(X^2) or E(X)E(X). Continuing the example: E(X2)=38∫02x4 dx=38×325=125E(X^2)=\frac38\int_0^2x^4\,dx=\frac38\times\frac{32}{5}=\frac{12}{5}, so Var(X)=125−94=320\text{Var}(X)=\frac{12}{5}-\frac94=\frac{3}{20} and SD=0.15≈0.387\text{SD}=\sqrt{0.15}\approx0.387.

Key termsvariancestandard deviation
Common mistake

Forgetting to square E(X)E(X), or subtracting E(X)E(X) rather than [E(X)]2[E(X)]^2.

Section 3

Linear functions of a random variable

For constants aa and bb: E(aX+b)=aE(X)+b,Var(aX+b)=a2 Var(X).E(aX+b)=aE(X)+b,\qquad \text{Var}(aX+b)=a^2\,\text{Var}(X). Adding bb shifts every value, so it changes the mean but not the spread. Multiplying by aa scales the spread by ∣a∣|a|, so the variance is multiplied by a2a^2. A negative aa never gives a negative variance. Example: E(X)=5E(X)=5, Var(X)=4\text{Var}(X)=4. For Y=2−3XY=2-3X: E(Y)=2−15=−13E(Y)=2-15=-13 and Var(Y)=9×4=36\text{Var}(Y)=9\times4=36.

Key termslinear function
Common mistake

Writing Var(aX+b)=a Var(X)+b\text{Var}(aX+b)=a\,\text{Var}(X)+b. The multiplier is squared and the constant disappears.

Section 4

Expectation of a function of X

For any function gg: E(g(X))=∫−∞∞g(x) f(x) dx.E(g(X))=\int_{-\infty}^{\infty}g(x)\,f(x)\,dx. For example E(5X3)=5∫x3f(x) dxE(5X^3)=5\int x^3f(x)\,dx and E(18X−3)=∫18x−3f(x) dxE(18X^{-3})=\int 18x^{-3}f(x)\,dx. You are not allowed to substitute E(X)E(X) into gg: in general E(g(X))≠g(E(X))E(g(X))\ne g(E(X)). To find Var(g(X))\text{Var}(g(X)), use Var(g(X))=E([g(X)]2)−[E(g(X))]2\text{Var}(g(X))=E([g(X)]^2)-[E(g(X))]^2.

Key termsfunction of a random variable
Common mistake

Using E(X2)=[E(X)]2E(X^2)=[E(X)]^2. They differ by exactly Var(X)\text{Var}(X).

Section 5

Worked example: the variance of 6/X

Let f(x)=2x2f(x)=\frac{2}{x^2} on [1,2][1,2]. E(X−1)=∫122x3 dx=[−1x2]12=34E(X^{-1})=\int_1^2\frac{2}{x^3}\,dx=\left[-\frac1{x^2}\right]_1^2=\frac34. E(X−2)=∫122x4 dx=[−23x3]12=712E(X^{-2})=\int_1^2\frac{2}{x^4}\,dx=\left[-\frac{2}{3x^3}\right]_1^2=\frac{7}{12}. Var(X−1)=712−(34)2=148\text{Var}(X^{-1})=\frac{7}{12}-\left(\frac34\right)^2=\frac{1}{48}. Var(6X−1)=36×148=34\text{Var}(6X^{-1})=36\times\frac{1}{48}=\frac34.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Mean and variance of a CRV

  1. The continuous random variable XX has probability density function f(x)=3x28f(x)=\frac{3x^2}{8} for 0≤x≤20\le x\le2, and f(x)=0f(x)=0 otherwise.
    Find Var(X)\text{Var}(X).2 marks
  2. The random variable XX has mean E(X)=5E(X)=5 and variance Var(X)=4\text{Var}(X)=4.
    The random variable Y=2−3XY=2-3X. Find E(Y)E(Y) and Var(Y)\text{Var}(Y).2 marks
  3. The continuous random variable XX has probability density function f(x)=2x2f(x)=\frac{2}{x^2} for 1≤x≤21\le x\le2, and f(x)=0f(x)=0 otherwise.
    Find E(X)E(X).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).