Continuous random variables
Probability density functions: their properties, finding unknown constants, probabilities as areas, the mean and variance by integration, and the median and other percentiles found directly from an area, including densities on an infinite domain.
What the syllabus says
6.3 (Paper 6)
- understand the concept of a continuous random variable, and recall and use properties of a probability density function
- use a probability density function to solve problems involving probabilities, and to calculate the mean and variance of a distribution.
Notes and examples
- For density functions defined over a single interval only; the domain may be infinite, e.g. for .
- Including location of the median or other percentiles of a distribution by direct consideration of an area using the density function.
- Explicit knowledge of the cumulative distribution function is not included.
Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).
Continuous random variables and density functions Paper 6
A continuous random variable can take any value in an interval: a waiting time, a length, a mass. There are infinitely many possible values, so we cannot list probabilities for each one as we do for a discrete variable. Instead the distribution is described by a probability density function (pdf) , and
the area under the graph of between and .
A function can be a pdf only if
- for every , because an area representing a probability cannot be negative;
- the total area under the graph is 1: over the whole interval where is defined.
Outside its stated interval, . Two consequences surprise students. First, for any single value , because a single value has no width and so no area. So and are the same. Second, itself is not a probability: it is a density, probability per unit of , and it may be greater than 1 when the interval is short.
In this syllabus a density is defined by one formula over a single interval. The cumulative distribution function is not required: every probability, median and percentile is found directly from an area.
The density in Worked examples 1 and 2. The shaded area is . The curve is symmetrical about , which is therefore the mean.
Finding an unknown constant Paper 6
A pdf is often given with an unknown constant, such as for . Use the total area: set the integral over the whole interval equal to 1 and solve for . Then check that on the interval, which is why a question may restrict to be positive.
Papers 1 and 3 techniques apply: expand brackets before integrating, write as , and show the limits being substituted. Most pdf questions can be done exactly, with fractions; keep them exact until the final answer.
Worked example 1 Paper 6
The random variable has pdf for , and otherwise. Find (a) the value of , (b) .
(a) .
, so .
(b) .
Answer: (a) (b)
Check yourself Paper 6
The random variable has pdf for , and 0 otherwise. Find the value of .
Answer it in the portal, where your answer is checked as you type →
Densities on an infinite domain Paper 6
The interval may have no upper end. The syllabus example is for . The area is an improper integral, found by letting the upper limit tend to infinity:
because as . So it is a valid pdf, and, for example, .
For a mean or variance on an infinite domain the integral must also have a finite value. With , is finite. A density that falls away too slowly, such as for , has no finite mean, because grows without limit.
The mean and variance Paper 6
For a discrete variable, . For a continuous variable, the sum becomes an integral and the probability becomes :
each integral taken over the interval where is defined. Both formulae are in MF19.
Two checks catch most slips. The mean must lie inside the interval, and a variance must be positive. If the graph of is symmetrical about , then with no integration needed; a question may say "write down" the mean in such a case. Do not forget to subtract : alone is , not the variance.
Worked example 2 Paper 6
For the random variable of Worked example 1, with for , find and .
, as the symmetry predicts.
.
.
Answer: ,
Check yourself Paper 6
The random variable has pdf for , and 0 otherwise. Find .
Answer it in the portal, where your answer is checked as you type →
The median and other percentiles Paper 6
The median splits the area in half: it is the value with
where is the lower end of the interval. In the same way, the lower quartile has area to its left, the upper quartile , and the 90th percentile . Integrate from the lower end to the unknown value, set the result equal to the area you want, and solve.
The equation is often a quadratic or a cubic. It usually has more than one solution, and only one lies inside the interval: give that one, and say why the others are rejected. For a symmetrical density the median equals the mean. When the median is greater than the mean, the distribution has a longer tail to the left (negative skew); when it is less, the tail is to the right.
Worked example 3 (exam style) Paper 6
The time, hours, that a machine runs before it needs adjusting has pdf for , and otherwise. (a) Show that . (b) Find . (c) Find . (d) Find the median of , and comment on its position compared with the mean.
(a) , so .
(b) .
(c) .
(d) , so and (3 s.f.). The negative root is outside the interval.
The median 4.24 is greater than the mean 4: the density rises to the right, so there is a long tail of small values (negative skew).
Answer: (b) (c) 4 (d) 4.24
Check yourself Paper 6
The random variable has pdf for , and 0 otherwise. Find the median of .
Answer it in the portal, where your answer is checked as you type →
Check yourself Paper 6
Which of these functions is a valid probability density function on (and 0 elsewhere)?
Answer it in the portal, where your answer is checked as you type →
Key points
A pdf satisfies and has total area 1; use the total area to find an unknown constant.
, and , so and give the same probability.
and .
A symmetrical density has its mean (and median) at the line of symmetry.
Median: solve and keep the root inside the interval. Other percentiles use other areas.
On an infinite domain, an integral to uses the limit of as , which is 0 for .
Where marks are lost Paper 6
Forgetting to subtract , so giving as the variance.
Integrating over the wrong limits, or using the whole interval when only part is wanted.
Treating as the probability .
Keeping a root of the median equation that lies outside the interval, or not saying why it is rejected.
Slips with negative powers on an infinite domain: .
Rounding fractions early instead of keeping exact values until the end.
Related AS & A Level Mathematics 9709 lessons
Sampling and estimation
Paper 6: Probability & Statistics 2
Read the lesson →6.2Linear combinations of random variables
Paper 6: Probability & Statistics 2
Read the lesson →6.5Hypothesis tests
Paper 6: Probability & Statistics 2
Read the lesson →6.1The Poisson distribution
Paper 6: Probability & Statistics 2
Read the lesson →An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.