How does a probability density function describe a continuous random variable, and how do we find its mean, variance and median?
Work with continuous random variables defined by a probability density function, finding probabilities, the cumulative distribution function, expectation, variance and median
A focused answer to the H2 Further Mathematics outcome on continuous random variables. The probability density function and its conditions, probabilities as areas, the cumulative distribution function, and the expectation, variance and median by integration.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to handle a continuous random variable defined by a probability density function (pdf): to use the conditions a pdf must satisfy, to find probabilities as areas (integrals), to construct and use the cumulative distribution function, and to compute the expectation, variance and median by integration.
The answer
The probability density function
A continuous random variable is described by a probability density function satisfying
The total area under the density is . The density itself is not a probability; only areas are.
Probabilities as areas
For a continuous variable, the probability of any single value is zero, and a probability over an interval is the area under the density:
Because point probabilities are zero, and give the same answer.
The cumulative distribution function
The cumulative distribution function (cdf) is
It increases from to , and differentiating recovers the density, . The cdf is convenient for probabilities such as .
Expectation and variance
By analogy with the discrete sums, replace summation by integration:
where .
The median and other quantiles
The median splits the area in half:
Other quantiles (quartiles, percentiles) are found the same way with the appropriate cumulative probability.
Examples in context
Example 1. Waiting times. The time until the next event in a random process is a continuous variable with an exponential density; integrating it gives the probability of waiting more than a set time and its mean waiting time, the basis of queueing and reliability models.
Example 2. Measurement error. The error in a physical measurement is modelled by a continuous density; the area within a tolerance band is the probability the measurement is acceptable, and the median and mean summarise the typical error.
Try this
Q1. State the two conditions a probability density function must satisfy. [2 marks]
- Cue. everywhere, and .
Q2. How is the median of a continuous variable defined in terms of the cdf? [1 mark]
- Cue. (the cumulative probability up to is one half).
Q3. Write the expression for of a continuous variable with density . [1 mark]
- Cue. .
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original6 marksA continuous random variable has probability density function for and otherwise. Find and .Show worked answer →
The density must integrate to over its range:
Then $
Markers reward the normalisation integral giving , the probability as an integral from to , and the value .
Original7 marksFor the density on , find and the median .Show worked answer →
Expectation: $
Markers reward the expectation integral , setting the cumulative probability to for the median, and .
Related dot points
- Work with discrete random variables, their probability distributions, expectation, variance, and the expectation and variance of linear functions
A focused answer to the H2 Further Mathematics outcome on discrete random variables. Probability distributions, expectation and variance, the computational formula for variance, and the rules for the expectation and variance of a linear function aX + b.
- Recognise and apply the geometric and negative binomial distributions, including their probabilities, expectations and variances
A focused answer to the H2 Further Mathematics outcome on the geometric and negative binomial distributions. Their probability formulae, when each applies, the expectation and variance of each, and the link to the binomial distribution.
- Compute unbiased estimates of a population mean and variance and construct and interpret confidence intervals for a population mean
A focused answer to the H2 Further Mathematics outcome on estimation. Unbiased estimators of the population mean and variance, the sample variance with its n minus 1 divisor, and constructing and correctly interpreting confidence intervals for a mean.
- Carry out hypothesis tests and analyse Type I and Type II errors and the power of a test
A focused answer to the H2 Further Mathematics outcome on errors in hypothesis testing. Type I and Type II errors, the significance level as the Type I error probability, computing the probability of a Type II error, and the power of a test.