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.
Related dot points
- Define a discrete random variable by its probability distribution, and calculate the expected value, variance and standard deviation
A focused answer to the HSC Maths Advanced dot point on discrete random variables. Probability distributions, expected value, variance, standard deviation, and linear transformations of a discrete random variable, with worked examples.
- Use the normal distribution, z-scores, the empirical rule and the standard normal table to find probabilities and percentiles
A focused answer to the HSC Maths Advanced dot point on the normal distribution. Standardising with z-scores, the 68-95-99.7 empirical rule, computing probabilities as areas under the curve and inverse-normal percentiles, with worked examples and exam traps.
- Construct scatter plots, calculate and interpret Pearson's correlation coefficient, and fit and use the least-squares regression line
A focused answer to the HSC Maths Advanced dot point on bivariate data. Scatter plots, the Pearson correlation coefficient, the least-squares regression line, prediction, and the limits of extrapolation, with worked examples and exam traps.
- Find antiderivatives of standard functions, apply integration by substitution and evaluate definite integrals using the Fundamental Theorem of Calculus
A focused answer to the HSC Maths Advanced dot point on integration. Antiderivatives of standard functions, integration by substitution, definite integrals and the Fundamental Theorem of Calculus, with worked examples.