How do probability density functions describe continuous random variables, and how do we extract probabilities and summary statistics from them?
Use probability density functions and cumulative distribution functions to find probabilities, medians, modes, means and variances of continuous random variables
A focused answer to the HSC Maths Advanced dot point on continuous random variables. Probability density functions, cumulative distribution functions, computing probabilities by integration, and finding mean, median, mode and variance, with worked examples.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
What this dot point is asking
NESA wants you to work with continuous random variables defined by a probability density function (pdf). You must find unknown constants by enforcing total probability , compute probabilities as definite integrals, build the cumulative distribution function, and find the mean, variance, median and mode using integrals. The thread running through all of it is one picture: the pdf is a curve, and the probability of any interval is the area under that curve, so every task here is an area or an integral.
The answer
Probability density functions
A continuous random variable is described by a probability density function satisfying
- for all (a density cannot be negative),
- (the total area under the curve is ).
In Maths Advanced, is non-zero only on a finite interval called the support, and the total integral is taken over that interval. The value is a density, not a probability: it can exceed , and on its own it tells you nothing until you integrate it over an interval. This is the key shift from the discrete case, where each value carried its own probability .
The most important consequence is that for a continuous random variable, for any single value . A single point has no width, so it has no area, so it has no probability. Probabilities live on intervals only.
Probabilities as integrals
For any interval inside the support, the probability is the area under the density over that interval:
Because single points have zero probability, . The strict and non-strict inequalities give the same value, so you never have to worry about whether the endpoints are included.
Cumulative distribution function
The cumulative distribution function (cdf) accumulates probability from the left:
Useful properties:
- is non-decreasing, with and (and below the support, above it).
- , so once you have every interval probability is a subtraction.
- Where is continuous, : the pdf is the derivative of the cdf, the cdf is the integral of the pdf. They are two views of the same distribution.
Mean, variance, median, mode
The mean (expected value) weights each value by its density and integrates:
The variance integrates the squared deviation from the mean, and is almost always computed via the shortcut on the right:
where . The standard deviation is .
The median splits the area in half:
The mode is the value of where is largest. If is differentiable on the interior of the support, look for a critical point of ; if is monotone on the support, the mode is at the endpoint where is highest.
Why every technique here is an integral
Continuous random variables are where the calculus and statistics strands of Maths Advanced meet. A probability is an integral, the cdf is an integral with a variable upper limit, the mean weights by the density and integrates, and the variance integrates the squared deviation. So the practical skill being tested is your integration: setting up the right definite integral over the support, finding the antiderivative, and evaluating cleanly. The statistics is the interpretation wrapped around the calculus, which is also why this dot point pairs so naturally with the integration techniques from the calculus strand.
The standard problem types
NESA questions on this dot point fall into a small number of recognisable shapes, and naming the type tells you the first move:
- "Find the value of the constant ": enforce over the support.
- "Find ": integrate from to (or use ).
- "Find the mean / expected value": integrate .
- "Find the variance / standard deviation": compute , then use .
- "Find the median": solve .
- "Find the mode": maximise on the support.
Sketching the density
A quick sketch of over its support guides the work. The total area under the curve must be , the median splits that area in half, and the mode sits under the highest point of the curve. For a symmetric density the mean, median and mode coincide at the centre of symmetry, which can save an integral if you spot the symmetry early.
How exam questions ask about continuous random variables
- "Show that " or "find the value of ." Set and solve.
- "Find / ." Integrate over the interval, or use . For a "greater than" question, integrate up to the top of the support (or use ).
- "Find the expected value / mean." Integrate over the support.
- "Find the variance / standard deviation." Find , then , then square-root for .
- "Find the cumulative distribution function." Integrate with a variable upper limit; remember to state below the support and above it.
- "Find the median / mode." Solve for the median; maximise for the mode.
Edge cases worth knowing
- A piecewise density. If is defined in pieces, integrate each piece over its own sub-interval and add. The cdf is then also piecewise, continuous at the joins.
- The mode at an endpoint. When is monotone on the support there is no interior critical point, so the mode is the endpoint where is largest. Do not chase a derivative that never vanishes.
- A density that exceeds . This is fine: is a density, not a probability. On a narrow support the height can be well above while the area stays .
- Spotting symmetry. If is symmetric about a centre , then median immediately, and , saving you an integral.
Exam-style practice questions
Practice questions written in the style of NESA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
2022 HSC Q285 marksA continuous random variable has probability density function for and elsewhere. Find , , and the mean .Show worked answer →
Total probability: , so .
.
Mean: .
Markers reward solving for using the total probability, computing the probability as a definite integral, and using over the support.
2021 HSC Q264 marksA continuous random variable has probability density function for . Find the median of .Show worked answer →
The median satisfies .
.
Set , so and .
Markers expect the median condition stated as a definite integral equal to , the antiderivative, and the cube root taken cleanly.
Practice questions
Original practice questions graded from foundation to exam level, each with a full worked solution. Try them before revealing the solution.
foundation2 marksA continuous random variable has probability density function for and elsewhere. Find .Show worked solution →
The probability is the area under from to , so integrate the density over that interval:
So .
Marker's note: one mark for setting up the definite integral of over , one for the correct value . Integrating over the whole support instead of is the slip to avoid.
foundation2 marksA continuous random variable is uniformly distributed with constant density for and elsewhere. Find , then find .Show worked solution →
Enforce total probability to pin down . The support has width , so
Integrate over for the tail probability.
So and .
Marker's note: one mark for from , one for . For a uniform density every probability is just density times interval width, so no antiderivative is strictly needed.
foundation3 marksThe density on has cumulative distribution function on that interval. Find the median of , giving an exact value and a decimal to two decimal places.Show worked solution →
The median splits the area in half, so set :
Take the positive root (the median lies in the support ):
Marker's note: one mark for stating , one for , one for the exact value (and rounding to ). Rejecting the negative root is expected since must lie in the support.
core4 marksA continuous random variable is uniformly distributed with density for . Find the mean and the variance .Show worked solution →
Mean: integrate over the support.
Variance: build , then use .
So and .
Marker's note: one mark for , one for setting up , one for , one for . The check is the uniform-variance formula ; using instead of is the classic trap.
core4 marksA study guide plots the probability density function of a continuous random variable as a single straight-line segment falling from the point on the vertical axis down to the point on the horizontal axis, with everywhere outside . (a) Confirm the graph shows a valid density. (b) Find . (c) State the mode of .Show worked solution →
Part (a): the region under the line is a triangle, and a valid density encloses total area . The triangle has base (from to ) and height (the value ), so
which confirms the graph is a valid density. Its equation is the line through and , namely
Part (b): is the area under the line from to .
Part (c): the mode is where is largest. The line falls steadily across , so its highest value is at the left endpoint, giving mode .
Marker's note: one mark for confirming area (or reading off the graph), two for the integral setting up and evaluating , one for mode . Reading the line's equation off the two labelled points is the skill being tested; a symmetric guess for the mode misses that this density is not symmetric.
exam5 marksA continuous random variable has probability density function for and elsewhere, where is a constant. (a) Show that . (b) Hence find as an exact value. (c) Find the median of , justifying your answer.Show worked solution →
Part (a): enforce total probability over the support .
Setting gives , as required.
Part (b): integrate the density from to .
Since ,
Part (c): the median solves . The cdf is
Setting this equal to :
This matches the symmetry of about on , which splits the area evenly.
Marker's note: one mark for the integral in (a), one for ; one for the setup and one for in (b); one for solving to reach in (c). Work in radians throughout, since holds only in radian measure.
exam5 marksA continuous random variable models a machine setting with probability density function for and elsewhere. (a) Show that . (b) Explain, using the symmetry of , why the mean of is . (c) Find the variance of .Show worked solution →
Part (a): total probability over . Expand and integrate:
Evaluate at :
Setting gives , as required.
Part (b): is symmetric about . Replacing by leaves unchanged, so the curve is a mirror image about the midpoint of the support. For a symmetric density the mean sits at the centre of symmetry, so .
Part (c): use with . First find :
Evaluate at (using and ):
Then
So .
Marker's note: one mark for the integral in (a), one for ; one for the symmetry argument giving in (b); one for and one for in (c). Spotting the symmetry saves a full mean integral; using (not ) is essential.
