Discrete random variables: VCE Math Methods Unit 3
Syllabus dot point
“Discrete random variables, their probability distributions, the expected value (mean) E(X)=∑xP(X=x), the variance Var(X)=E(X2)−[E(X)]2 and the standard deviation sd(X)=Var(X)”
8 min read ·
Quick answer
A discrete random variable has a probability distribution summing to 1, an expected value E(X)=∑xP(X=x) that is the long-run average outcome, and a variance Var(X)=E(X2)−[E(X)]2 that measures spread, with linear transformations following E(aX+b)=aE(X)+b and Var(aX+b)=a2Var(X).
VCAA wants you to work with discrete random variables, their probability distributions, and the summary statistics (mean, variance, standard deviation) that describe them. These appear in Paper 1 calculations and underpin the binomial distribution.
Discrete random variables
A discrete random variableX takes values from a countable set (typically a finite list of integers). Its probability distribution is a table or rule specifying P(X=x) for each possible value x.
Two conditions every distribution must satisfy:
P(X=x)≥0 for all x.
∑xP(X=x)=1 (the probabilities sum to one).
Solving for an unknown probability often comes down to using condition 2.
Example distribution
A spinner is divided into four unequal sectors numbered 1, 2, 3, 4 with respective probabilities 0.2,0.3,0.3,0.2.
x
1
2
3
4
P(X=x)
0.2
0.3
0.3
0.2
The sum is 1. The variable X representing the outcome is a discrete random variable.
Expected value (mean)
The expected value of X is the long-run average outcome if the experiment is repeated many times:
E(X)=μ=x∑x⋅P(X=x)
It is a weighted average: each possible value is multiplied by its probability.
For the spinner above: E(X)=1(0.2)+2(0.3)+3(0.3)+4(0.2)=0.2+0.6+0.9+0.8=2.5.
Expected value of a function of X
For any function g:
E(g(X))=x∑g(x)⋅P(X=x)
The most common application is g(x)=x2, giving E(X2), which is needed for variance.
Variance and standard deviation
The variance measures the spread of X around its mean. The computational formula (memorise this):
Var(X)=E(X2)−[E(X)]2
The equivalent definition is Var(X)=E((X−μ)2), but the computational formula is faster.
The standard deviation is the positive square root:
sd(X)=σ=Var(X)
Standard deviation has the same units as X itself, which makes it easier to interpret than variance.
For the spinner: E(X2)=1(0.2)+4(0.3)+9(0.3)+16(0.2)=0.2+1.2+2.7+3.2=7.3.
Var(X)=7.3−(2.5)2=7.3−6.25=1.05. So sd(X)=1.05≈1.025.
Linear transformations
For constants a and b:
E(aX+b)=aE(X)+b
Var(aX+b)=a2Var(X)
sd(aX+b)=∣a∣⋅sd(X)
Key insight: an added constant shifts the mean but not the variance. A multiplicative constant scales the mean linearly and the variance by the square.
Worked example
A game pays $Y where Y=10X−5 and X is the spinner above.
E(Y)=10E(X)−5=10(2.5)−5=$20.
Var(Y)=100Var(X)=100(1.05)=105.
sd(Y)=10⋅1.025≈$10.25.
Cumulative distribution
The cumulative probability P(X≤x) is the sum of P(X=k) for all k≤x. Inequalities to watch:
P(X<x)=P(X≤x−1) for integer-valued X.
P(X≥x)=1−P(X<x)=1−P(X≤x−1).
P(a≤X≤b)=P(X≤b)−P(X≤a−1) for integer-valued X.
Read the inequality direction carefully. Strict versus non-strict matters when X takes the boundary value with positive probability.
Common Paper 1 traps
Forgetting that probabilities must sum to 1
Solving for an unknown probability in a distribution table almost always starts by setting the sum equal to 1.
Computing E(X)2 instead of E(X2)
These are different! E(X2) uses each x2 times its probability; [E(X)]2 squares the already-computed mean. Variance is the difference between them.
Adding instead of multiplying for variance under scaling
Var(2X)=4Var(X), not 2Var(X).
Forgetting the absolute value in sd(aX+b)=∣a∣⋅sd(X)
Standard deviation is always non-negative, so the coefficient is the absolute value of a.
Off-by-one on cumulative probabilities for integer X
P(X<3)=P(X≤2), not P(X≤3).
Examples in context
Example 1. Expected demand for a cafe. The number of cakes X sold per hour has distribution P(X=0)=0.1, P(X=1)=0.3, P(X=2)=0.4, P(X=3)=0.2. The expected sales are E(X)=0(0.1)+1(0.3)+2(0.4)+3(0.2)=0.3+0.8+0.6=1.7 cakes per hour. With E(X2)=0+0.3+1.6+1.8=3.7, the variance is 3.7−1.72=0.81, so sd(X)=0.9.
Example 2. Scaling a payoff. A wholesaler's profit per cake is $4 minus a $1 fixed handling cost per hour, so hourly profit is Y=4X−1 using the X above. Then E(Y)=4(1.7)−1=$5.80 and Var(Y)=42×0.81=12.96, illustrating that the constant shifts the mean but not the variance.
Try this
Q1. A variable has P(X=1)=0.2, P(X=2)=0.5, P(X=3)=0.3. Find E(X). [2 marks]
Cue.1(0.2)+2(0.5)+3(0.3)=0.2+1.0+0.9=2.1.
Q2. For the same distribution, find Var(X). [3 marks]
Q3. Given E(X)=6 and Var(X)=4, find E(3X+2) and Var(3X+2). [2+2 marks]
Cue.E(3X+2)=3(6)+2=20; Var(3X+2)=9×4=36.
Exam-style questions
Questions in the style of VCAA exam questions on this dot point, each with a worked answer. They are written by ExamExplained unless tagged "Past paper"; the year shows the paper a question is modelled on.
2023 VCAA-style (Exam 1)4 marks
A discrete random variable X has the probability distribution shown. Find the value of k, then compute E(X) and Var(X).<br><br>x: 0, 1, 2, 3<br>P(X=x): 0.1, 0.3, k, 0.2
Show worked answer →
Probabilities sum to 1: 0.1+0.3+k+0.2=1, so k=0.4.