AS & A Level · Practice questions · Expectation and related variables

Integrate, or go through the CDF.

Six original Cambridge-style questions on expectation of a function of a continuous random variable and on the distribution of a related variable, with full worked solutions.

Original questions All questions on this page are original work, written in the Cambridge AS & A Level style. They are not from past papers. They test the same concepts and skills the syllabus rewards.
The method

Mean of \(g(X)\): integrate. Distribution of \(g(X)\): use \(F\).

01
Recall
[4 marks]

The random variable \(X\) has pdf \(f(x) = \dfrac{x}{2}\) for \(0 \le x \le 2\) and 0 otherwise.

(a) Find \(E(X)\) and \(\operatorname{Var}(X)\).

(b) Write down \(E(3X - 1)\).

  • (a) \(E(X) = \displaystyle\int_{0}^{2} \tfrac{x^{2}}{2}\,dx = \tfrac{8}{6} = \tfrac{4}{3}\). ✓
  • \(E(X^{2}) = \displaystyle\int_{0}^{2} \tfrac{x^{3}}{2}\,dx = \tfrac{16}{8} = 2\). ✓
  • \(\operatorname{Var}(X) = 2 - \left(\tfrac{4}{3}\right)^{2} = 2 - \tfrac{16}{9} = \tfrac{2}{9}\). ✓
  • (b) \(E(3X - 1) = 3\times\tfrac{4}{3} - 1 = 3\). ✓
02
Calculation
[4 marks]

The random variable \(X\) has pdf \(f(x) = \dfrac{3}{x^{4}}\) for \(x \ge 1\) and 0 otherwise.

Find \(E\!\left(\dfrac{1}{X}\right)\) and \(E(X^{2})\).

  • \[E\!\left(\tfrac{1}{X}\right) = \int_{1}^{\infty} \tfrac{3}{x^{5}}\,dx = \left[-\tfrac{3}{4x^{4}}\right]_{1}^{\infty} = \tfrac{3}{4}\] ✓
  • \[E(X^{2}) = \int_{1}^{\infty} \tfrac{3}{x^{2}}\,dx = \left[-\tfrac{3}{x}\right]_{1}^{\infty} = 3\] ✓
03
Calculation
[3 marks]

The random variable \(X\) is uniformly distributed on \([0, 2]\), so its pdf is \(f(x) = \dfrac{1}{2}\) for \(0 \le x \le 2\).

Find \(E(e^{X})\), giving your answer exactly and to 3 significant figures.

  • \[E(e^{X}) = \int_{0}^{2} \tfrac{1}{2}e^{x}\,dx = \tfrac{1}{2}\big[e^{x}\big]_{0}^{2} = \tfrac{1}{2}\left(e^{2} - 1\right)\] ✓
  • \(= 3.19\) (3 s.f.). Note \(e^{E(X)} = e^{1} = 2.72\) is smaller: \(E(e^{X}) \ne e^{E(X)}\). ✓
04
Analysis
[6 marks]

The random variable \(X\) has CDF \(F(x) = \dfrac{x}{2}\) for \(0 \le x \le 2\). The random variable \(Y\) is defined by \(Y = X^{3}\).

(a) Find the CDF of \(Y\) and hence its pdf, stating the range of values of \(y\).

(b) Find the median of \(Y\).

(c) Find \(E(Y)\) using your pdf, and check it with the general result.

  • (a) \(0 \le x \le 2\) gives \(0 \le y \le 8\). \(G(y) = P\big(X \le y^{1/3}\big) = \tfrac{1}{2}y^{1/3}\). ✓
  • \(g(y) = \tfrac{1}{6}y^{-2/3}\) for \(0 < y \le 8\), 0 otherwise. ✓
  • (b) \(\tfrac{1}{2}m^{1/3} = \tfrac{1}{2}\) gives \(m = 1\) (equally, the median of \(X\) is 1 and \(1^{3} = 1\)). ✓
  • \[\text{(c) } E(Y) = \int_{0}^{8} \tfrac{1}{6}y^{1/3}\,dy = \tfrac{1}{6}\times\tfrac{3}{4}\big[y^{4/3}\big]_{0}^{8} = \tfrac{1}{8}\times 16 = 2\] ✓
  • Check: \(E(X^{3}) = \displaystyle\int_{0}^{2} \tfrac{x^{3}}{2}\,dx = 2\). Note the mean 2 is well above the median 1. ✓
05
Analysis
[6 marks]

The random variable \(X\) has CDF \(F(x) = \dfrac{x^{4}}{81}\) for \(0 \le x \le 3\). The random variable \(Y = \sqrt{X}\).

(a) Find the pdf of \(Y\) and show that it integrates to 1.

(b) Find the median of \(X\) and hence the median of \(Y\), each to 3 significant figures.

  • (a) \(0 \le x \le 3\) gives \(0 \le y \le \sqrt{3}\). \(G(y) = P\big(X \le y^{2}\big) = \dfrac{y^{8}}{81}\). ✓
  • \(g(y) = \dfrac{8y^{7}}{81}\) for \(0 \le y \le \sqrt{3}\), 0 otherwise. ✓
  • \(\displaystyle\int_{0}^{\sqrt{3}} \tfrac{8y^{7}}{81}\,dy = \left[\tfrac{y^{8}}{81}\right]_{0}^{\sqrt{3}} = \tfrac{81}{81} = 1\). ✓
  • (b) \(\dfrac{m^{4}}{81} = \dfrac{1}{2}\) gives \(m = \left(40.5\right)^{1/4} = 2.52\) (3 s.f.). ✓
  • Median of \(Y\) \(= \sqrt{2.5227\ldots} = 1.59\) (3 s.f.); check \(\dfrac{1.5883^{8}}{81} = 0.500\). ✓
06
Analysis
[7 marks]

The random variable \(X\) has pdf \(f(x) = \dfrac{2x}{3}\) for \(1 \le x \le 2\) and 0 otherwise. The random variable \(Y = \dfrac{1}{X}\).

(a) Find the CDF of \(X\).

(b) Find the CDF of \(Y\) and hence show that the pdf of \(Y\) is \(\dfrac{2}{3y^{3}}\), stating the range of \(y\).

(c) Find \(P(Y > 0.8)\).

(d) Find \(E(Y)\) in two ways.

  • (a) \(F(x) = \displaystyle\int_{1}^{x} \tfrac{2t}{3}\,dt = \dfrac{x^{2} - 1}{3}\) for \(1 \le x \le 2\). ✓
  • (b) \(\tfrac{1}{X}\) is decreasing, so \(\tfrac{1}{2} \le y \le 1\) and \(G(y) = P\!\left(X \ge \tfrac{1}{y}\right) = 1 - F\!\left(\tfrac{1}{y}\right)\). ✓
  • \[G(y) = 1 - \frac{1/y^{2} - 1}{3} = \frac{4}{3} - \frac{1}{3y^{2}}, \quad \tfrac{1}{2} \le y \le 1\] ✓
  • \(g(y) = G'(y) = \dfrac{2}{3y^{3}}\) for \(\tfrac{1}{2} \le y \le 1\), 0 otherwise. ✓
  • (c) \(P(Y > 0.8) = 1 - G(0.8) = 1 - \tfrac{4}{3} + \tfrac{1}{1.92} = \tfrac{3}{16} = 0.1875\) (equally \(P(X < 1.25) = \tfrac{1.5625 - 1}{3}\)). ✓
  • (d) \(\displaystyle\int_{1/2}^{1} \tfrac{2}{3y^{2}}\,dy = \left[-\tfrac{2}{3y}\right]_{1/2}^{1} = -\tfrac{2}{3} + \tfrac{4}{3} = \tfrac{2}{3}\). ✓
  • General result: \(E\!\left(\tfrac{1}{X}\right) = \displaystyle\int_{1}^{2} \tfrac{1}{x}\cdot\tfrac{2x}{3}\,dx = \tfrac{2}{3}\). They agree. ✓

Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.