Free Pearson Edexcel International A-level Mathematics · S2

Continuous densities and distribution functions

What you’ll learn

  • Normalise and integrate a probability density.
  • Find a CDF, moments, median and quartiles.
  • Distinguish density values from probabilities.

Understand the idea

A continuous density f(x)f(x) is non-negative and has total area one. It can exceed one in height: only an area represents probability. A single point has zero probability, so endpoint inclusion does not change a continuous interval probability. Always include the support of the density.

The cumulative distribution function integrates the density from the left edge up to xx. Outside the support it is zero or one, and inside it is continuous and non-decreasing. For a piecewise density, carry forward the area already accumulated from earlier pieces. Differentiate the CDF on a smooth piece to recover the density.

For the mean, integrate xf(x)xf(x); for the second moment, integrate x2f(x)x^2f(x). Quantiles solve F(q)=pF(q)=p. The median cuts the area in half; the mode occurs where the density is largest, possibly at a boundary. These three measures need not coincide.

Key formulae

∫−∞∞f(x) dx=1\int_{-\infty}^{\infty}f(x)\,dx=1

F(x)=∫−∞xf(u) duF(x)=\int_{-\infty}^{x}f(u)\,du

E(X)=∫−∞∞xf(x) dxE(X)=\int_{-\infty}^{\infty}xf(x)\,dx

Var⁡(X)=∫−∞∞x2f(x) dx−[E(X)]2\operatorname{Var}(X)=\int_{-\infty}^{\infty}x^2f(x)\,dx-[E(X)]^2

A density integrates to a cumulative probability

Conditions. Density f(x)=2x on 0<x<1 and zero elsewhere, so F(x)=x² on 0≤x≤1. Only the middle part of the cumulative distribution is plotted.

x / dimensionless; Cumulative probability / dimensionless.

F(0.5)=0.25, so one quarter of the probability lies below 0.5. The increasing density weights larger x more heavily. Outside the support, F remains 0 to the left and 1 to the right.

Open the interactive lesson to view plotted curves and coordinate tables.

Worked example

A density is f(x)=kxf(x)=kx for 0<x<20<x<2 and zero elsewhere. Find kk, the mean and the variance.

  1. Normalisation gives ∫02kx dx=2k=1\int_0^2kx\,dx=2k=1, so k=1/2k=1/2.
  2. E(X)E(X) =∫02x(x/2) dx=\int_0^2x(x/2)\,dx =[x3/6]02=[x^3/6]_0^2 =4/3=4/3.
  3. E(X2)E(X^2) =∫02x2(x/2) dx=\int_0^2x^2(x/2)\,dx =[x4/8]02=[x^4/8]_0^2 =2=2.
  4. The variance is 2−(4/3)2=2/92-(4/3)^2=2/9.

Answer: k=1/2k=1/2, E(X)=4/3E(X)=4/3, Var⁡(X)=2/9\operatorname{Var}(X)=2/9.

Open the interactive lesson to try original questions and recall. Build a revision plan.