Home / A-Level Further Maths 9231 / Topic 4.1 / Revision notes
Download PDFQuestion bank →Topic 4.1 lessons

Continuous random variables

A-Level Further Maths 9231 · Topic 4.1 revision notes

Everything from the 2 lessons of this topic on a few pages: the key idea of each lesson, the diagram to remember, the points to learn and the traps examiners set. Read it, cover it, test yourself.

  1. PDFs, CDFs and percentiles
  2. Expectation and related variables

1PDFs, CDFs and percentiles

Syllabus 4.1

A pdf \(f\) satisfies \(f(x) \ge 0\) everywhere and \(\displaystyle\int f(x)\,dx = 1\) over its whole range. The CDF is \(F(x) = P(X \le x) = \displaystyle\int_{-\infty}^{x} f(t)\,dt\), so \(f(x) = F'(x)\). Then \(P(a < X < b) = F(b) - F(a)\), and the \(p\)th percentile is the value \(q\) with \(F(q) = p\) (the median solves \(F(m) = 0.5\)). The mode is where \(f\) is greatest.

x f(x) 1 2 3 0 ¼ ½ area ½ area ½ f(x) = ¼x f(x) = ½ x F(x) 1 2 3 0 ½ ¾ 1 m = 2 Q₃ = 2.5 ⅛x² ½x − ½ pdf CDF
Fig. 1: the piecewise pdf f(x) = x/4 for 0 ≤ x ≤ 2, f(x) = 1/2 for 2 < x ≤ 3 (left) and its CDF (right). Each piece of the pdf has area 1/2, so F(2) = 1/2 and the median is 2. F rises from 0 to 1, is continuous, is steepest where f is largest, and is flat at 0 and 1 outside the range

Worked example: Find k, then a probability

\(X\) has pdf \(f(x) = k(4x - x^{2})\) for \(0 \le x \le 3\), and \(f(x) = 0\) otherwise. Find \(k\) and \(P(X < 1)\).
  1. \(4x - x^{2} = x(4 - x) \ge 0\) on \(0 \le x \le 3\), so \(f\) is non-negative when \(k > 0\).
  2. \[\int_{0}^{3} (4x - x^{2})\,dx = \Big[2x^{2} - \tfrac{1}{3}x^{3}\Big]_{0}^{3} = 18 - 9 = 9\]
  3. Total area 1: \(9k = 1\), so \(k = \dfrac{1}{9}\).
  4. \[P(X < 1) = \frac{1}{9}\Big[2x^{2} - \tfrac{1}{3}x^{3}\Big]_{0}^{1} = \frac{1}{9}\cdot\frac{5}{3}\]
Answer: \(k = \dfrac{1}{9}\), \(P(X < 1) = \dfrac{5}{27}\)

Area 1, build \(F\), then solve \(F = p\).

  • Check the pdf: every piece non-negative, total area 1 (this finds \(k\)).
  • Build F piece by piece, adding the area already collected so the pieces join; state \(F = 0\) below and \(F = 1\) above the range.
  • Probabilities: \(P(a < X < b) = F(b) - F(a)\), using the correct piece for each value.
  • Percentiles: find \(F\) at the boundaries to choose the piece, solve \(F(q) = p\) and keep the root inside that interval.
  • Mode: the greatest value of \(f\), from \(f'(x) = 0\), an endpoint or a jump; pdf from CDF: \(f = F'\).

Watch out!

Area 1 is not enough. \(f(x) = x - \tfrac{1}{2}\) on \(0 \le x \le 2\) has total area exactly 1, but it is negative for \(0 \le x < \tfrac{1}{2}\), so it is NOT a pdf. Always check the sign of every piece as well as the area.

Do not restart each piece of \(F\) from zero. Integrating \(\tfrac{1}{2}\) on its own gives \(\tfrac{1}{2}x\), and then \(F(3) = \tfrac{3}{2}\): impossible for a probability. Check that adjacent pieces agree at the boundary and that \(F\) equals 1 at the top of the range.

The median solves \(F(m) = 0.5\), NOT \(f(m) = 0.5\): the height of the pdf is not a probability. And when you solve a quadratic for a percentile, reject the root outside the interval of the piece you used, even if it is positive.

2Expectation and related variables

Syllabus 4.1

For a continuous random variable \(X\) with pdf \(f(x)\), the general result is \(E\big(g(X)\big) = \displaystyle\int g(x)\,f(x)\,dx\) over the range of \(X\); in particular \(\operatorname{Var}(X) = E(X^{2}) - [E(X)]^{2}\). For \(Y = g(X)\) with \(g\) increasing, \(G(y) = P(Y \le y) = P\big(X \le g^{-1}(y)\big) = F\big(g^{-1}(y)\big)\); for \(g\) decreasing the inequality flips, so \(G(y) = 1 - F\big(g^{-1}(y)\big)\). Differentiate \(G\) to get the pdf of \(Y\), and always state the new range of \(y\).

x f(x) 1 2 0.5 1 y g(y) 2 4 6 8 0.5 1 median √2 f(x) = x/2, 0 ≤ x ≤ 2 median 2√2 g(y) = (1/6)y^(−1/3), 0 < y ≤ 8 Y = X³
Fig. 1: the pdf of X (left) and the pdf of Y = X^3 (right). The shaded areas are both 0.5: the median of Y is the cube of the median of X, but the shapes are very different

Worked example: Mean, variance and a linear check

\(X\) has pdf \(f(x) = \dfrac{3}{8}x^{2}\) for \(0 \le x \le 2\) and 0 otherwise. Find \(E(X)\), \(\operatorname{Var}(X)\) and \(E(2X + 1)\).
  1. \[E(X) = \int_{0}^{2} \tfrac{3}{8}x^{3}\,dx = \tfrac{3}{8}\left[\tfrac{x^{4}}{4}\right]_{0}^{2} = \tfrac{3}{8}\times 4 = \tfrac{3}{2}\]
  2. \[E(X^{2}) = \int_{0}^{2} \tfrac{3}{8}x^{4}\,dx = \tfrac{3}{8}\times\tfrac{32}{5} = \tfrac{12}{5}\]
  3. \[\operatorname{Var}(X) = \tfrac{12}{5} - \left(\tfrac{3}{2}\right)^{2} = \tfrac{48}{20} - \tfrac{45}{20} = \tfrac{3}{20}\]
  4. \(E(2X + 1) = 2\times\tfrac{3}{2} + 1 = 4\). Integrating \((2x + 1)f(x)\) gives the same 4, a useful check.
Answer: \(E(X) = \frac{3}{2}\), \(\operatorname{Var}(X) = \frac{3}{20}\), \(E(2X + 1) = 4\)

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

  • Expectation: \(E\big(g(X)\big) = \displaystyle\int g(x)f(x)\,dx\) over the range of \(X\); \(\operatorname{Var}(X) = E(X^{2}) - [E(X)]^{2}\).
  • New range: push the ends of the range of \(X\) through \(g\).
  • CDF: rewrite \(P(Y \le y)\) in terms of \(X\); increasing \(g\) gives \(F\big(g^{-1}(y)\big)\), decreasing \(g\) gives \(1 - F\big(g^{-1}(y)\big)\).
  • pdf: differentiate \(G\), state the range, and check it integrates to 1.
  • Median: for monotonic \(g\), the median of \(Y\) is \(g\) of the median of \(X\).

Watch out!

Only LINEAR functions pass through \(E\): \(E(2X + 1) = 2E(X) + 1\), but \(E(X^{2}) \ne [E(X)]^{2}\), \(E(1/X) \ne 1/E(X)\) and \(E(\sqrt{X}) \ne \sqrt{E(X)}\). For anything non-linear, integrate \(g(x)f(x)\).

Do not substitute \(x = y^{1/3}\) into the pdf \(f(x)\): that skips the chain rule factor and the result does not integrate to 1. Go through the CDF, and write the NEW range of \(y\), not the old range of \(x\).

With a decreasing function, \(G(y) = F\big(g^{-1}(y)\big)\) is WRONG: in the first example it gives \(2 - 2y\), which falls as \(y\) rises, so it cannot be a CDF, and its derivative \(-2\) is negative. Flip the inequality: \(G(y) = 1 - F\big(g^{-1}(y)\big)\).

Back to A-Level Further Maths 9231 contents · (c) 2026 TheLucidSTEM · thelucidstem.com