All articles
Mathematics
alevel-statistics

Mastering Continuous Random Variables at A-Level

Unlock the essentials of continuous random variables, from understanding probability density functions to calculating expectation and variance for your A-Level maths exams.

Math Instructor AI 22 September 2026 8 min read

Mastering Continuous Random Variables at A-Level

In A-Level statistics, we transition from the discrete world of counting items to the continuous world of measuring quantities. A continuous random variable (CRV) can take any value within a specific interval, such as the exact time a bus arrives or the precise length of a component. Because there are infinitely many possible values, the probability of the variable taking any exact value is zero. Instead, we use a probability density function (PDF) to describe the likelihood of the variable falling within a range.

Understanding how to manipulate these functions is a core requirement for your A-Level maths exams. By mastering the integration techniques required to find probabilities, expected values, and cumulative distributions, you will gain the tools necessary to model real-world phenomena accurately.

The Probability Density Function (PDF)

A probability density function, denoted as $f(x)$, defines the distribution of a continuous random variable $X$. For a function to be a valid PDF, it must satisfy two fundamental conditions:

  1. $f(x) \geq 0$ for all $x$ in the defined range.
  2. The total area under the curve must equal 1: $\int_{-\infty}^{\infty} f(x) , dx = 1$.

To find the probability that $X$ lies between two values $a$ and $b$, we calculate the definite integral of the PDF over that interval: $P(a \leq X \leq b) = \int_{a}^{b} f(x) , dx$.

Worked Example 1: Finding a Constant

Consider a random variable $X$ with the PDF $f(x) = k(1-x)$ for $0 \leq x \leq 1$, and $0$ otherwise. Find the value of $k$.

Step 1: Set the integral of the PDF over the range $[0, 1]$ equal to 1. $$\int_{0}^{1} k(1-x) , dx = 1$$

Step 2: Integrate with respect to $x$. $$k \left[ x - \frac{x^2}{2} \right]_{0}^{1} = 1$$

Step 3: Evaluate the definite integral. $$k \left( (1 - 0.5) - (0 - 0) \right) = 1 \implies k(0.5) = 1 \implies k = 2$$

Expected Value and Variance

Just as with discrete variables, we use the expected value $E(X)$ to find the 'average' or centre of the distribution. For a continuous variable, the sum is replaced by an integral: $$E(X) = \int_{-\infty}^{\infty} x f(x) , dx$$

To find the variance, $Var(X)$, we use the formula $Var(X) = E(X^2) - [E(X)]^2$, where $E(X^2) = \int_{-\infty}^{\infty} x^2 f(x) , dx$.

Worked Example 2: Calculating Expectation

Using the PDF $f(x) = 2(1-x)$ from the previous example, find $E(X)$.

Step 1: Set up the integral for $E(X)$. $$E(X) = \int_{0}^{1} x \cdot 2(1-x) , dx = \int_{0}^{1} (2x - 2x^2) , dx$$

Step 2: Integrate. $$\left[ x^2 - \frac{2x^3}{3} \right]_{0}^{1}$$

Step 3: Evaluate. $$(1 - 2/3) - 0 = 1/3$. Thus, $E(X) = 1/3$.

The Cumulative Distribution Function (CDF)

The cumulative distribution function, $F(x)$, represents the probability that the random variable $X$ is less than or equal to a specific value $x$. Mathematically, $F(x) = P(X \leq x) = \int_{-\infty}^{x} f(t) , dt$.

To find the CDF, you integrate the PDF from the lower bound of the distribution up to $x$. Note that $F(x) = 0$ for values below the range and $F(x) = 1$ for values above the range.

Common Mistakes

  • Forgetting the bounds: Always ensure your integration limits match the range defined in the PDF. If the function is piecewise, you must integrate each section separately.
  • Confusing PDF and CDF: Remember that the PDF $f(x)$ gives the density, while the CDF $F(x)$ gives the accumulated probability. You can find the PDF by differentiating the CDF: $f(x) = \frac{d}{dx}F(x)$.
  • Algebraic errors in integration: A-Level statistics often involves polynomial integration. Double-check your signs and powers when evaluating definite integrals.

Frequently Asked Questions

Why is the probability of a single point zero? Because a continuous variable can take an infinite number of values, the probability of hitting one exact point is infinitesimally small, effectively zero.

How do I know if a function is a valid PDF? Check that it is non-negative across its domain and that the integral over the entire domain equals exactly 1.

Can the PDF be greater than 1? Yes. Unlike probabilities, which must be between 0 and 1, the density $f(x)$ can exceed 1. Only the integral of the density must equal 1.

Conclusion

Continuous random variables are a fundamental pillar of A-Level statistics, bridging the gap between pure calculus and real-world data modelling. By practising these integration techniques, you will be well-prepared for your exams. For a more interactive experience, head over to MathInstructor AI to generate a free, narrated animated lesson on this topic and visualise these concepts in action.

Topics

continuous random variables
pdf cdf
a level statistics
expected value
cumulative distribution
probability density function
alevel-statistics
variance of continuous random variables

Want this explained out loud?

Turn any question into a narrated, animated lesson in seconds.

Try the Studio free