Continuous random variables: probability density functions, cumulative distributions, mean and variance
“Use probability density functions and cumulative distribution functions to find probabilities, medians, modes, means and variances of continuous random variables”
A continuous random variable is described by a pdf with ; probabilities are areas found by integrating over intervals, the cdf is , and the mean, variance, median and mode are computed by integrals or by solving .
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.
Think about how long the next bus takes to arrive. It could be any time at all, not just a whole number of minutes, so instead of listing chances for each exact time we describe the waiting time with a smooth curve. The height of that curve tells you where waits are bunched up, but the actual chance of waiting is the area beneath the curve over a stretch of time, like measuring the paint on a wall between two marks. Asking for the chance of waiting exactly minutes to the nanosecond gives zero, because a single instant is a line with no width and no area. Everything on this page is really just measuring areas under that curve: to split the wait in half you find where half the area sits, and to find the typical wait you balance the curve like a see-saw.
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.
A continuous random variable is described by a pdf with and . A probability is the area under , found by integrating over the interval, so for any single point. The cdf is , with ; the mean is , the variance is , and the median solves .
This example runs through the full continuous-variable toolkit: first pinning down an unknown constant, then computing the mean and variance, building the cdf, and finally finding the median and mode of a density. Steps 3 and 4 use the density on pictured above.
Finding a constant and a probability
for , elsewhere. Find , then .
A valid density must enclose a total area of , so we integrate over its support and set the result equal to to solve for :
The density is symmetric about , so exactly half the area lies on each side and without further integration.
Computing the mean and variance
For on , the mean weights each value by its density and integrates, while the variance is found most easily via . We therefore need both and :
Subtracting the square of the mean from gives the variance, and its square root the standard deviation:
Cdf from a pdf
For on , the cdf accumulates probability from the left endpoint up to , so we integrate the density with a variable upper limit:
Having a formula for turns any "less than" probability into a single substitution, for example . The diagram below plots this cdf rising from to .
Median and mode
For on , the median is the value that leaves half the area on each side, so we set the cdf equal to and solve (the dashed lines in the diagram above show exactly this):
The mode is where the density is largest. Since increases steadily across , its highest value is at the right endpoint, so the mode is . Note the mean (), median () and mode () are all different here, because the density is not symmetric.
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.
Name the problem type first; it dictates the move. Always integrate over the support only, since outside it contributes nothing. State the median condition as (or ) explicitly before solving. For the variance, build and use , never . When defining a cdf, give the full piecewise definition including below and above the support. A quick sketch of catches sign errors and reveals symmetry.
- 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.
Exam-style questions
Questions in the style of NESA 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.
HSC-style5 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.
HSC-style4 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.