Resources For Teachers For Tutors For Students & Parents Pricing
Year 12 Maths Advanced (2027) Random variables

Continuous Random Variables (PDF & CDF)

20 practice questions 0 video lessons Theory + worked examples
NSW · Year 12 Mathematics Advanced · Random variables

Continuous random variables are described by a probability density function, where probability is area under the curve, and the cumulative distribution function gives probability up to a value.

Part of the NSW Year 12 Mathematics Advanced course, in the Statistical analysis area of study (Random variables focus area) of the 2024 syllabus. Work through practice questions with fully worked solutions and video lessons, or scroll down for the theory summary and worked examples.

Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A continuous random variable uses a probability density function, where probability is area under the curve. This Year 12 Mathematics Advanced topic (MAV-12-07) covers PDFs and CDFs.

A PDF \(f(x)\) has \(f\ge0\) and \(\int f=1\); \(P(aCDF \(F(x)=P(X\le x)\) gives \(P(a\le X\le b)=F(b)-F(a)\) and \(f=F'\). Since a point has no area, \(P(X=a)=0\).

Probability as areaFor a PDF the probability P(a < X < b) is the shaded area under the curve. xy f(x)
\(P(a
\[f(x)\ge0,\ \int f\,dx=1;\qquad P(a
PDF is non negative and integrates to 1; probability is the integral over the interval

Method

  1. Check \(f\ge0\) and \(\int f=1\) (find a constant if needed).
  2. Probability is the area \(\int_a^b f\,dx\).
  3. CDF: \(P(a\le X\le b)=F(b)-F(a)\).
Example 1 — Uniform
\(X\) is uniform on \([0,4]\), \(f=\dfrac14\). Find \(P(X<1)\).
Solution
\(P(X<1)\)\(=\)\(\tfrac14\times1=0.25\)
Example 2 — By area
\(f(x)=2x\) on \([0,1]\). Find \(P(X<0.5)\).
Solution
\(\int_0^{0.5}2x\,dx\)\(=\)\(0.25\)
Example 3 — Find constant
For what \(k\) is \(f(x)=kx\) a PDF on \([0,2]\)?
Solution
\(2k\)\(=\)\(1\)
\(k\)\(=\)\(0.5\)
Example 4 — CDF
\(F(x)=\dfrac{x}{4}\) on \([0,4]\). Find \(P(1\le X\le 3)\).
Solution
\(F(3)-F(1)\)\(=\)\(\tfrac34-\tfrac14=0.5\)

Common pitfalls

Total area is \(1\).
\(P(X=a)=0\) for a continuous variable.
CDF differentiates to the PDF.

Frequently asked questions

What is a probability density function?

A function f, non-negative with total area 1, where the probability that X lies in an interval is the area under f over that interval.

Why is P(X = a) = 0 for a continuous variable?

Because a single point has no width and hence no area under the density curve.

What is the cumulative distribution function?

F of x equals the probability X is at most x; it is the running area under the PDF.

How are the PDF and CDF related?

The PDF is the derivative of the CDF, and the CDF is the integral of the PDF.