Continuous random variables and PDFs (SACE Stage 2 Mathematical Methods)
“A continuous random variable is described by a probability density function, where probability is the area under the curve found by integration.”
A continuous random variable can take any value in an interval, so probability is described by a probability density function . Probabilities are areas under the curve: . A valid PDF satisfies everywhere and .
Jump to a section
What this dot point is asking
A continuous random variable can take any value in a range - a height, a time, a mass - not just a list of separate values. Because there are infinitely many possible values, the probability of any single exact value is zero, and we describe probability by a density function instead. This is the key conceptual shift from Topic 2: where a discrete variable had a probability attached to each value, a continuous variable has probability spread smoothly across an interval, and you recover any probability by measuring area rather than reading off a table entry.
A function is a probability density function for a continuous random variable if for all and the total area under it is :
Probability is area
The defining idea of Topic 5 is that probability equals area under the curve, computed by integration:
Because a single point has zero width, , and so - strict and inclusive inequalities give the same answer.
has density for and elsewhere. This example finds and then the probability .
Step 1: find using the total-area condition
Every valid PDF must have total area equal to over its full range. Setting the integral of equal to lets us solve for the unknown constant:
Step 2: find as area under the curve
Probability for a continuous variable is the area under the density between the limits. Now that is known, we integrate from to :
Final answer: and .
Mean and variance by integration
The discrete sums become integrals for a continuous variable:
For the density on , this example finds using the integral definition of the mean.
Step 1: set up the mean integral
The mean of a continuous random variable is over the variable's range. Substituting gives the integrand , which we integrate from to :
Step 2: evaluate the integral
Using the power rule, the antiderivative of is . Evaluating between and :
Final answer: .
The median and other percentiles
The median of a continuous variable splits the area in half: it is the value with . More generally, the th percentile is the value with cumulative area below it. For the density on , the median solves , that is , giving . Notice the median is larger than you might first guess: because the density rises toward , more probability sits on the right, pulling the halfway point above the midpoint of the interval. Comparing the mean () with the median () describes the skew of the distribution.
The cumulative distribution function
Just as discrete variables have a running total, a continuous variable has a cumulative distribution function , which gives directly. By the Fundamental Theorem of Calculus, differentiating the CDF returns the density: . This is why probability questions can be answered either by integrating the density between limits or by subtracting two values of the CDF, - whichever the question makes easier.
Common errors
The value is a density, not a probability - it can exceed 1, and only the area under it between limits is a probability. Also, the PDF is zero outside its stated interval, so integrate only over the part of where is non-zero; integrating beyond would wrongly add area that does not exist.
Before computing any probability, confirm (or use) over the variable's range. This both finds unknown constants like and is a quick sanity check that your density is valid.
Why it matters
Probability density functions are the continuous counterpart of the discrete distributions in Topic 2 and the foundation for the normal distribution that follows. The "probability = area = integral" principle ties Topic 5 directly back to the integral calculus of Topic 3.
Exam-style questions
Questions in the style of SACE Board exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
SACE 2022-style5 marksCalculator-assumed. A continuous probability density function is (a constant) defined for . (a) Find the value of . (b) Write an integral expression for the mean and evaluate it.Show worked answer →
(a) A valid PDF has total area , so . The rectangle of width and height gives , so . (2 marks)
(b) The mean is :
So and the mean is . This is a uniform distribution, so the mean sits at the midpoint, a useful check. (3 marks: 1 for the expression, 2 for evaluation.)
SACE 2023-style2 marksCalculator-assumed. The time (in minutes) for a customer to receive an order is modelled by for . Determine the probability that a randomly chosen customer receives their order in less than 5 minutes.Show worked answer →
Probability is the area under the density: .
The antiderivative of is . Evaluate:
So . Marks: one for the integral set-up, one for evaluating .
SACE 2021-style3 marksCalculator-assumed. The lifetime (years) of a component has density for , zero otherwise. Find , then .Show worked answer →
Total area is : , so .
Then .
So and (which is expected by the symmetry of the density about ). Marks: one for the area integral, one for , one for .