How do we describe a discrete random variable and compute its expectation and variance?
Construct probability distributions for discrete random variables and compute the expectation and variance, including for functions of the variable
A focused answer to the H2 Mathematics outcome on discrete random variables. Building a probability distribution, the expectation and variance formulae, and the effect of linear transformations on mean and variance.
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 construct a probability distribution for a discrete random variable, verify it, and compute the expectation (mean) and variance, including for linear functions of the variable.
The answer
A discrete probability distribution
A discrete random variable takes a countable set of values, each with a probability . A valid distribution satisfies:
The total-probability condition is often used to find an unknown constant.
Expectation
The expectation (mean) is the long-run average value:
For a function, ; in particular .
Variance
The variance measures spread:
This computational form is almost always easier than the definition . The standard deviation is .
Linear transformations
For constants and :
Adding a constant shifts the mean but leaves the spread unchanged; scaling by multiplies the variance by .
Why the computational variance formula works
The form is not a separate definition but an algebraic rearrangement of . Expanding the square gives , and since , the last two terms combine to , leaving . Knowing this derivation explains why you must compute separately and why it is almost always less work than summing term by term, especially when is not a whole number.
Setting up a distribution from a scenario
Many H2 questions describe a situation and ask you to build the distribution table before computing anything. The routine is: list every value the variable can take, find the probability of each from the scenario (using counting or basic probability), tabulate them, and check the probabilities sum to . For the number of heads in two coin tosses, the values are with probabilities . Constructing the table correctly is the foundation everything else rests on, because a single wrong probability throws off both the expectation and the variance that follow.
Examples in context
Example 1. Expected winnings. A game paying out according to a die roll has an expected value computed as ; comparing it to the stake tells a player whether the game is favourable in the long run.
Example 2. Insurance pricing. An insurer sets premiums above the expected claim and uses the variance to gauge risk, the everyday actuarial use of expectation and variance.
Try this
Q1. A variable has , . Find . [1 mark]
- Cue. .
Q2. Given , find . [2 marks]
- Cue. .
Q3. Given , find . [2 marks]
- 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.
Original5 marksA discrete random variable has for . Find , then .Show worked answer →
Probabilities sum to : , so .
.
Markers reward using the total probability to find , the expectation formula, and the value .
Original5 marksFor a discrete random variable with and , find , then and .Show worked answer →
.
.
(adding a constant does not change variance).
Markers reward the variance formula, the linear expectation rule, and squaring the multiplier for the variance while ignoring the added constant.
Related dot points
- Model situations with the binomial and Poisson distributions, state the conditions for each, and compute probabilities, means and variances
A focused answer to the H2 Mathematics outcome on the binomial and Poisson distributions. The conditions for each model, their probability functions, means and variances, and choosing the right model.
- Use the probability rules for the complement, union and intersection of events, and apply Venn diagrams and tree diagrams to combined events
A focused answer to the H2 Mathematics outcome on probability rules. The complement, addition and multiplication rules, mutually exclusive events, and using Venn and tree diagrams for combined events.
- Model continuous data with the normal distribution, standardise to the Z-distribution to find probabilities, and find values from given probabilities
A focused answer to the H2 Mathematics outcome on the normal distribution. The bell curve and its parameters, standardising to Z, finding probabilities and inverse problems, and combining normal variables.
- Calculate conditional probabilities, test for independence, and apply the conditional probability formula and the law of total probability
A focused answer to the H2 Mathematics outcome on conditional probability. The conditional formula, testing independence, the law of total probability, and reasoning with given information.