Random Variables
Discrete and continuous random variables (probability distributions, expected value and variance, PDFs and CDFs, the uniform distribution) and the normal distribution with the empirical rule, z-scores and standard normal tables.
Contents
1.What you need to know
Random variables was worth 14 marks on NESA's sample paper for the 2024 syllabus, the second-biggest focus area after Applications of calculus. School trial papers often give it less time than the HSC does, so make sure you practise all three parts.
- Discrete random variables: probability distributions as tables and graphs, the uniform distribution, expected value , variance and standard deviation.
- Continuous random variables: probability density functions (PDFs), cumulative distribution functions (CDFs), the continuous uniform distribution, and the mean and variance by integration.
- The normal distribution: its shape and features, the empirical rule (68–95–99.7), -scores, standard normal tables, and finding or from a probability.
Probability basics from Year 11 (MA11-PD) are assumed.
2.Discrete random variables
A random variable assigns a number to each outcome of a random process. It is discrete if it takes separate values (counts, scores on a die). Its probability distribution lists each value with , often written . The probabilities are all between 0 and 1 and sum to 1. They can be estimated from data using relative frequencies, which also sum to 1.
In a uniform discrete distribution all values are equally likely, like the score on a fair die.
Mean and variance
where and the standard deviation is . The expected value is the long-run average, not necessarily a value can take. The second variance formula is usually quicker.
Worked example 1
The number of goals a junior soccer team scores in a game has this distribution.
| 1 | 2 | 3 | 4 | |
|---|---|---|---|---|
| 0.1 | 0.3 | 0.4 | 0.2 |
The probabilities sum to 1, so this is a valid distribution.
So goals. To draw the distribution, use a column graph with on the horizontal axis and as the column heights.
3.Continuous random variables
A continuous random variable takes any value in an interval (heights, times, masses). Probabilities belong to intervals, not single values, so
and it doesn't matter whether interval endpoints are included: .
The PDF and the CDF
The probability density function is a curve where area means probability:
A function is a valid PDF on its domain if:
- for every in the domain, and
- the total area under it is 1: over the whole domain.
The cumulative distribution function gives the probability up to :
for a PDF on . The CDF is non-decreasing, starts at 0 and finishes at 1. It links to the PDF both ways:
Mode, median and quantiles
The mode is the -value where is largest (use calculus or the graph). The median solves ; other quantiles work the same way, e.g. the 90th percentile solves .
Mean and variance
These are the continuous versions of the discrete formulas, with the sum replaced by an integral. If the integral is outside the course, the syllabus expects you to use technology.
The continuous uniform distribution
If is equally likely to be anywhere in , its PDF is a horizontal line:
Probabilities are rectangle areas, and the mean is the midpoint .
Worked example 2
A continuous random variable has PDF for , and 0 otherwise.
(a) Find . The total area must be 1:
so . (Check: on .) The graph is a triangle, and gives the same answer.
(b) Find the CDF and .
So . Check: .
(c) Find and .
The mean is below the midpoint 1.5 because more of the area is on the left.
(d) Find the median and the mode. The median solves :
Only lies in . The PDF is a decreasing straight line (), so it is largest at the left end: the mode is .
4.The normal distribution
Many naturally occurring measurements (heights, masses, measurement errors, test scores) are approximately normally distributed. We write : mean , standard deviation (so variance ). Its PDF is
Features of the curve:
- bell-shaped and symmetric about , with total area 1;
- mean, median and mode are all equal to ;
- points of inflection at ;
- the tails approach the -axis as but never touch it.
The empirical rule
For any normal distribution, approximately:
- 68% of values lie within 1 standard deviation of the mean;
- 95% within 2 standard deviations;
- 99.7% within 3 standard deviations.
Use symmetry to split these: for example 34% lie between and , and 2.5% lie above . A quick sketch with and marked makes these questions much easier.
z-scores
A -score says how many standard deviations a value is above (positive) or below (negative) the mean:
If then , the standard normal distribution. Use -scores to compare results from different groups (the higher -score is the better relative performance) and, with a table of , to find probabilities. Useful facts from symmetry:
Worked example 3
The battery life of brand A torches is normally distributed with mean 42 hours and standard deviation 3 hours.
(a) Use the empirical rule to estimate the percentage lasting between 39 and 48 hours.
39 is and 48 is . So the percentage is .
(b) Find , given .
so .
(c) Brand B torches have a mean battery life of 40 hours, and 10% of them last longer than 48 hours. Given , find the standard deviation for brand B.
The top 10% starts at , so
Finding works the same way: set up with the known and solve.
5.Common mistakes
- Forgetting to check that probabilities sum to 1 (discrete) or the area is 1 (continuous) before using a distribution.
- Using instead of for the variance.
- Giving the standard deviation when the variance is asked for, or the other way round. In the second number is the variance.
- Integrating over the wrong interval for a CDF, or forgetting the CDF is 0 to the left of the domain and 1 to the right.
- Thinking is for a continuous variable. It is 0; is a density, not a probability.
- Using the empirical rule halves wrongly: 95% within 2 standard deviations means 2.5% in each tail, not 5%.
- Sign errors with negative -scores; a sketch of the shaded area prevents most of these.
6.Exam tips
- Show that is a PDF: state both conditions ( and total area 1) and show the integral.
- Find a probability from a PDF: write the integral with limits before evaluating. For a CDF, write .
- Normal questions: sketch the bell curve, mark the mean and the value(s), shade the required area, then compute . Markers reward correct -scores even if the table lookup goes wrong.
- Justify / compare: in comparison questions, compute both -scores and state which is higher and what that means in context.
- Read the question for which tool it wants: "use the empirical rule" means 68–95–99.7, not the table.
- Give probabilities as decimals or fractions, and percentages only when asked.
7.Links to other topics
- MA11-PD Probability and data: probability rules, relative frequency and data displays are assumed.
- MA12-IC Integral calculus: every continuous probability, CDF, mean and variance is a definite integral.
- MA12-DC Differential calculus: a PDF is the derivative of its CDF.
- MA12-AC Applications of calculus: finding where a PDF is largest, or its points of inflection, uses stationary point tests.
Test yourself
Practise 60 exam-style questions on Random Variables, each with instant marking and a worked solution.
START PRACTISING