β Year 12: Statistical Analysis
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.
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, and find the mean, variance, median and mode using integrals.
The answer
Probability density functions
A continuous random variable is described by a probability density function satisfying
- IMATH_9 for all ,
- IMATH_11 .
In Maths Advanced, is non-zero only on a finite interval called the support, and the total integral is taken over that interval.
For a continuous random variable, for any single value . Probabilities live on intervals only.
Probabilities as integrals
For any interval inside the support,
Because single points have zero probability, . The strict and non-strict inequalities give the same value.
Cumulative distribution function
The cumulative distribution function (cdf) is
Useful properties:
- IMATH_18 is non-decreasing, with and .
- IMATH_21 .
- Where is continuous, .
Mean, variance, median, mode
The mean (expected value) is
The variance is
where . The standard deviation is .
The median splits the distribution in half:
The mode is the value of where is largest. If is differentiable on the interior of the support, the mode is at a critical point of (or at an endpoint if is monotone there).
Worked examples
Finding a constant and a probability
for , elsewhere. Find , then .
, so .
By symmetry of about , .
Computing the mean and variance
For on :
.
.
. So .
Cdf from a pdf
For on , the cdf is
So .
Median and mode
For on , the median solves , so and .
The mode is at , the right endpoint, because is increasing on .
Common traps
Treating . For a continuous random variable, single points have zero probability. The pdf value is a density, not a probability.
Forgetting to enforce total probability. When a pdf has an unknown constant, the first step is always .
Confusing pdf and cdf. is the density (can exceed ), is the cumulative probability (always between and ). where is differentiable.
Integrating over the wrong range. When computing , integrate only over the support. Outside the support, contributes nothing.
Picking an interior critical point that is actually a minimum. The mode is the maximum of . If is monotone, the mode is at an endpoint of the support.
In one sentence
A continuous random variable is described by a pdf with ; probabilities come from integrating over intervals, the cdf is , and the mean, variance, median and mode are computed by integrals or by solving .
Past exam questions, worked
Real questions from past NESA papers on this dot point, with our answer explainer.
2022 HSC Q285 marksA continuous random variable $X$ has probability density function $f(x) = k x$ for $0 \le x \le 4$ and $0$ elsewhere. Find $k$, $P(1 \le X \le 3)$, and the mean $E(X)$.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 $f(x) = \frac{3}{8} x^2$ for $0 \le x \le 2$. Find the median of $X$.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 and inverse-normal percentiles, with worked examples and exam traps.