All revision notes topics

Probability density and cumulative distribution functionsEdexcel A-Level Further Maths: Revision notes

Section 1

Continuous random variables and the pdf

A continuous random variable can take any value in an interval. Its probabilities are found as areas under its probability density function (pdf) f(x)\mathrm{f}(x). A pdf must satisfy f(x)≥0\mathrm{f}(x)\geq0 and total area ∫−∞∞f(x) dx=1\int_{-\infty}^{\infty}\mathrm{f}(x)\,\mathrm{d}x=1. At AS, f(x)\mathrm{f}(x) has the form kxnkx^n (nn rational, n≠−1n\neq-1) and may be piecewise, with different expressions on different intervals. A histogram of data with narrow class widths and frequency density on the vertical axis approaches the shape of the pdf, as does a frequency polygon, and the total area is 1 in both cases. Example: f(x)=kx2\mathrm{f}(x)=kx^2 on 0≤x≤30\leq x\leq3: ∫03kx2 dx=9k=1\int_0^3kx^2\,\mathrm{d}x=9k=1, so k=19k=\frac19.

Key termscontinuous random variableprobability density functionpiecewise
Common mistake

Treating f(x)\mathrm{f}(x) as a probability. It is a density, and can exceed 1.

Section 2

Finding probabilities from the pdf

P(a<X≤b)=∫abf(x) dx.\mathrm{P}(a<X\leq b)=\int_a^b\mathrm{f}(x)\,\mathrm{d}x. For a continuous variable P(X=a)=0\mathrm{P}(X=a)=0, so << and ≤\leq give the same answer. For a piecewise pdf, split the integral at each boundary and use the correct expression in each part. Example: f(x)=x6\mathrm{f}(x)=\frac x6 on 0≤x≤20\leq x\leq2 and 13\frac13 on 2<x≤42<x\leq4 gives P(1<X<3)=∫12x6 dx+∫2313 dx=14+13=712\mathrm{P}(1<X<3)=\int_1^2\frac x6\,\mathrm{d}x+\int_2^3\frac13\,\mathrm{d}x=\frac14+\frac13=\frac7{12}.

Exam tip

Sketch the pdf first when it is piecewise, and mark where each piece starts and ends.

Section 3

The cumulative distribution function

The cumulative distribution function (cdf) is F(x0)=P(X≤x0)=∫−∞x0f(x) dx.\mathrm{F}(x_0)=\mathrm{P}(X\leq x_0)=\int_{-\infty}^{x_0}\mathrm{f}(x)\,\mathrm{d}x. Integrate the pdf from the lower end of the range up to xx, using a dummy variable tt inside the integral. State F\mathrm{F} for every region: F(x)=0\mathrm{F}(x)=0 below the range and F(x)=1\mathrm{F}(x)=1 above it. For a piecewise pdf, the cdf in later pieces must include the accumulated probability from earlier pieces. Example: f(x)=x29\mathrm{f}(x)=\frac{x^2}{9} on 0≤x≤30\leq x\leq3 has F(x)=x327\mathrm{F}(x)=\frac{x^3}{27} there.

Key termscumulative distribution function
Common mistake

Forgetting to state F(x)=0\mathrm{F}(x)=0 and F(x)=1\mathrm{F}(x)=1 outside the range.

Section 4

Using the cdf

Since F\mathrm{F} accumulates probability, P(a<X≤b)=F(b)−F(a)\mathrm{P}(a<X\leq b)=\mathrm{F}(b)-\mathrm{F}(a) and P(X>a)=1−F(a)\mathrm{P}(X>a)=1-\mathrm{F}(a). A cdf is non-decreasing and runs from 0 to 1, and it is continuous for a continuous variable. To solve P(X≤q)=p\mathrm{P}(X\leq q)=p, set F(q)=p\mathrm{F}(q)=p and solve for qq. Example: F(x)=x−12\mathrm{F}(x)=\frac{\sqrt x-1}{2} on 1≤x≤91\leq x\leq9: P(X>4)=1−12=12\mathrm{P}(X>4)=1-\frac12=\frac12, and F(q)=0.75\mathrm{F}(q)=0.75 gives q=2.5\sqrt q=2.5, q=6.25q=6.25.

Exam tip

Check that F\mathrm{F} equals 1 at the top of the range; if it does not, an integration error has occurred.

Section 5

Linking f and F

The pdf and cdf are linked by calculus: integrating f\mathrm{f} gives F\mathrm{F}, and differentiating F\mathrm{F} gives f\mathrm{f}: f(x)=dF(x)dx.\mathrm{f}(x)=\frac{\mathrm{d}\mathrm{F}(x)}{\mathrm{d}x}. Example: F(x)=x2−18\mathrm{F}(x)=\frac{x^2-1}{8} on 1≤x≤31\leq x\leq3 gives f(x)=2x8=x4\mathrm{f}(x)=\frac{2x}{8}=\frac x4, and f(x)=0\mathrm{f}(x)=0 outside. Use this when a question gives F\mathrm{F} and asks for f\mathrm{f}, remembering to state the range of xx for which each expression holds.

Common mistake

Differentiating across a boundary: state f\mathrm{f} separately on each piece.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on Probability density and cumulative distribution functions

  1. The continuous random variable XX has probability density function f(x)=kx2\mathrm{f}(x)=kx^2 for 0≤x≤30\leq x\leq3, and f(x)=0\mathrm{f}(x)=0 otherwise, where kk is a constant.
    Find the cumulative distribution function F(x)\mathrm{F}(x) for 0≤x≤30\leq x\leq3.2 marks
  2. The continuous random variable XX has cumulative distribution function F(x)=0\mathrm{F}(x)=0 for x<1x<1, F(x)=x2−18\mathrm{F}(x)=\dfrac{x^2-1}{8} for 1≤x≤31\leq x\leq3, and F(x)=1\mathrm{F}(x)=1 for x>3x>3.
    Find P(1.5<X≤2.5)\mathrm{P}(1.5<X\leq2.5).2 marks
  3. The time XX, in hours, that a customer waits for a delivery has probability density function f(x)=kx\mathrm{f}(x)=kx for 0≤x≤20\leq x\leq2, f(x)=2k\mathrm{f}(x)=2k for 2<x≤42<x\leq4, and f(x)=0\mathrm{f}(x)=0 otherwise, where kk is a constant.
    Show that k=16k=\frac16.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).