β Year 12: Statistical Analysis
How do we describe a discrete random variable and summarise its distribution with mean and variance?
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.
Have a quick question? Jump to the Q&A page
What this dot point is asking
NESA wants you to recognise a discrete random variable, check that its probability distribution is valid, compute the expected value and variance from the distribution, and apply the linear transformation rules to .
The answer
Discrete random variables and their distributions
A discrete random variable takes a countable list of values with probabilities . The list of values with their probabilities is the probability distribution of . For it to be valid:
- IMATH_11 for every ,
- IMATH_13 .
The probability that falls in some set is the sum of for the values in that set. For example, if takes integer values from .
Expected value
The expected value (or mean) of is the long-run average value if we repeated the experiment many times. It is the weighted sum
The expected value need not be one of the values can actually take.
Expected value of a function of IMATH_21
For any function ,
The most common case is , which gives
Variance and standard deviation
The variance of measures spread around the mean. It is
which is algebraically equivalent (and usually easier to compute) as
The standard deviation is , with the same units as .
Linear transformations
If for constants and ,
Shifting by shifts the mean but not the spread. Scaling by multiplies the mean by and the standard deviation by .
Worked examples
Checking a distribution and computing the mean
takes values with for some constant . Find , then .
Sum of probabilities: , so .
.
Variance via IMATH_44
With the same , .
, so .
A fair die
is the number rolled on a fair six-sided die. .
.
.
Linear transformation
If has and , then has and .
Common traps
Forgetting to check that probabilities sum to . If a question gives a distribution in terms of a constant, solve first.
Using instead of . The formula is , not .
Squaring inside but not outside. is the square of a single number. is the weighted sum of squares. They are different.
Linear transformation on variance. , not , and the has no effect on variance.
Negative variance. If you get a negative variance, you have a calculation error. Variance is always non-negative.
In one sentence
A discrete random variable is summarised by its probability distribution; its mean is , its variance is , and linear transformations scale the mean by , shift it by , and scale the variance by .
Past exam questions, worked
Real questions from past NESA papers on this dot point, with our answer explainer.
2022 HSC Q244 marksThe discrete random variable $X$ has probability distribution $P(X = 0) = 0.2$, $P(X = 1) = 0.5$, $P(X = 2) = 0.2$, $P(X = 3) = 0.1$. Find $E(X)$ and $\text{Var}(X)$.Show worked answer β
.
For the variance, first compute .
.
Markers reward the explicit weighted sum for , the use of for the variance, and clean arithmetic.
2021 HSC Q253 marksA discrete random variable $X$ has $E(X) = 5$ and $\text{Var}(X) = 4$. Let $Y = 3 X - 2$. Find $E(Y)$ and the standard deviation of $Y$.Show worked answer β
Linearity of expectation: .
Variance scales by the square of the coefficient and is unchanged by adding a constant: .
Standard deviation: .
Markers expect explicit use of and , with the standard deviation as the positive square root.
Related dot points
- 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.
- 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.