Understand discrete random variables the easy way, with plain English intuition, probability distributions, expected value, variance and standard deviation, worked examples and an auto marked practice test. VCE Maths Methods Units 3 and 4.
Learn
Imagine you are running a game stall at the school fair. Players pay a few dollars, spin a wheel, and win whatever number it lands on. You cannot know what the next spin will give, but if a thousand people play today you can predict your takings almost to the dollar. A discrete random variable is just a tidy way of describing that uncertain number, and the tools below let you pin down what to expect on average and how wildly the results bounce around.
What a discrete random variable actually is
A random variable is a number whose value depends on chance. The word discrete means it can only land on separate, countable values, like the score on a die, the number of heads in three coin tosses, or how many emails arrive before lunch. You can list every possible value with a gap between them. There is no halfway value of 2.5 heads.
To describe the variable completely you write down a probability distribution: every value it can take, paired with the chance of each. We usually write Pr(X=x) for the probability that the variable X equals a particular value x.
Two rules make a list a genuine distribution. Every probability sits between 0 and 1, and all the probabilities add to exactly 1, because the variable has to land on something.
x∑Pr(X=x)=1
Expected value, the long run average
The expected value, also called the mean, answers a simple question. If you repeated the experiment forever, what number would the results average out to? You find it by weighting each value by how likely it is, then adding everything up.
E(X)=x∑xPr(X=x)
Notice that the expected value need not be a value the variable can ever take. A fair die has mean 3.5, even though you can never roll a 3.5. The mean is a balance point, not a prediction of any single spin. The trap to avoid is averaging the values and ignoring the probabilities. A value that almost never happens should barely move the mean, and the probabilities are what make that happen.
Picture the spinner from the worked examples, which lands on 1, 2 or 5 with probabilities 21, 31 and 61. The bars below show each probability, and the dashed line at E(X)=2 marks where the distribution balances. The value 5 is rare, so it tugs the balance point only a little to the right.
The spinner's probability distribution as separate points, with the dashed line at the mean E(X) = 2 showing where the distribution balances.
Spread, the part students drop marks on
Two games can share the same mean yet feel completely different. One pays close to the average every time, the other swings between a big loss and a big win. Variance and standard deviation measure that spread.
The cleanest way to compute variance is the average of the squares minus the square of the average.
Var(X)=E(X2)−[E(X)]2
Here E(X2) means you square each value, then weight by the original probabilities and add. It is not the same as squaring the mean, and mixing those two up is a classic error. Once you have the variance, the standard deviation is just its square root.
sd(X)=Var(X)
The standard deviation is the more natural measure of spread because it comes back in the same units as X itself. Variance is measured in those units squared, which is why we take the root at the end.
The mistake that costs the most marks
Examiner reports say the same thing year after year. Students correctly grind out the variance, then write that as the final answer when the question asked for the standard deviation. The fix is a single habit. Read the command word, and if it says standard deviation, take the square root of your variance before you stop.
A second habit saves the rest. When the question gives exact fractions, keep them exact and do not round early, especially on a tech free paper. An answer of 0.84 left as a decimal that has been rounded too soon can lose the mark that a clean exact form would have kept.
Lock it in with active recall
Cover the answer and say each one out loud before you flip. Rate yourself honestly — the cards you find hard come back sooner, the ones you know are spaced further out.
Active recall
Answer from memory first, then flip. Rate yourself and each card returns on a spaced schedule (1 → 3 → 7 → 16 days).
What two rules make a list of values a genuine probability distribution?
Every probability is between 0 and 1, and they all add to exactly 1: ∑xPr(X=x)=1.
Write the formula for the expected valueE(X) and say what it means.
E(X)=∑xxPr(X=x) — the long-run average, found by weighting each value by its probability. It need not be a value X can take.
Write the variance formula for a discrete random variable.
Var(X)=E(X2)−[E(X)]2 — the mean of the squares minus the square of the mean.
How do you get the standard deviation from the variance, and why does it matter?
sd(X)=Var(X). It returns to the units of X, and forgetting the square root is the most common exam slip.
Use linearity of expectation: if E(X)=5, what is E(3X−2)?
E(aX+b)=aE(X)+b, so E(3X−2)=3(5)−2=13.
Recall · The binomial distribution
For X∼Bi(n,p), what are the mean and variance?
Mean E(X)=np and variance Var(X)=np(1−p). The binomial is a special discrete random variable.
Recall · Continuous random variables
How does the mean formula change for a continuous random variable?
The sum becomes an integral: E(X)=∫−∞∞xf(x)dx. The variance formula E(X2)−[E(X)]2 stays the same.
See these tools in action in the Worked Examples tab, then test yourself in Try It.
Worked examples
Worked Example 1Showing a value of k from a distribution, from a real exam
The probability distribution for the discrete random variable X is given by Pr(X=0)=k4, Pr(X=1)=752k, Pr(X=2)=75k, Pr(X=3)=k2, where k is a positive real number. Show that k=10 or k=15.
1
All probabilities in a distribution must add to exactly 1. Set the sum equal to 1.
k4+752k+75k+k2=1
2
Combine the like terms: the two over k give k6, and the two over 75 give 753k=25k. Then multiply through by 25k.
k6+25k=1⟹150+k2=25k
3
Rearrange into a quadratic and factorise. Show each line, since this is a 'show that' question.
k2−25k+150=0⟹(k−10)(k−15)=0⟹k=10 or k=15
Answer
k=10 or k=15
VCAA 2025 Mathematical Methods Exam 1, Q4a
Worked Example 2Building a probability distribution table, from a real exam
Of travellers flying from an airport, 10% check in no luggage, 40% check in exactly one piece, and 50% check in exactly two pieces. The probability a piece is labelled heavy is 0.234, with masses independent. Let W be the number of pieces labelled heavy checked in by a traveller. Show that Pr(W=2)=0.027 (to three decimal places), then complete the distribution of W.
1
Only travellers who check in two pieces can have W=2, and both pieces must be heavy. That probability is 0.5×0.2342.
Pr(W=2)=0.5×0.2342=0.02738…≈0.027
2
W=0 means no heavy pieces. Combine the no-luggage, one-piece-not-heavy, and two-pieces-both-light cases, using 1−0.234=0.766.
Pr(W=0)=0.1+0.4(0.766)+0.5(0.766)2=0.700
3
W=1 means exactly one heavy piece. The remaining probability is found here, or by 1−0.700−0.027.
Pr(W=1)=0.4(0.234)+0.5⋅2(0.234)(0.766)=0.273
Answer
Pr(W=0)=0.700,Pr(W=1)=0.273,Pr(W=2)=0.027
VCAA 2024 Mathematical Methods Exam 2, Section B Q4c
Worked Example 3Finding a missing probability and the mean
The discrete random variable X has the distribution below, where p is unknown. Find p and then E(X). x:0,1,2,3 with Pr(X=x):0.1,0.3,p,0.2.
1
All probabilities in a distribution must add to 1. Add the known ones and subtract from 1.
p=1−(0.1+0.3+0.2)=0.4
2
The mean is each value times its probability, all added up: E(X)=∑xPr(X=x).
E(X)=0(0.1)+1(0.3)+2(0.4)+3(0.2)
3
Work the arithmetic carefully.
E(X)=0+0.3+0.8+0.6=1.7
Answer
p=0.4,E(X)=1.7
Worked Example 4Variance and standard deviation
A discrete random variable X takes values 1,2,3,4 with probabilities 0.2,0.3,0.4,0.1. Find E(X), then the variance and the standard deviation of X.
1
First the mean, E(X)=∑xPr(X=x).
E(X)=1(0.2)+2(0.3)+3(0.4)+4(0.1)=2.4
2
Now E(X2), where you square each value but keep the same probabilities.
E(X2)=1(0.2)+4(0.3)+9(0.4)+16(0.1)=6.6
3
Variance is the average of the squares minus the square of the average.
Var(X)=E(X2)−[E(X)]2=6.6−(2.4)2=0.84
4
The standard deviation is the square root of the variance. Do not stop at the variance.
sd(X)=Var(X)=0.84≈0.917
Answer
E(X)=2.4,Var(X)=0.84,sd(X)≈0.917
Worked Example 5A spinner with exact fractions
A spinner lands on 1 with probability 21, on 2 with probability 31 and on 5 with probability 61. Let X be the number it lands on. Find E(X) and Var(X) exactly.
1
Check the probabilities sum to 1: 21+31+61=1. Then find the mean.
E(X)=1(21)+2(31)+5(61)=21+32+65=2
2
Find E(X2) by squaring the values, keeping the probabilities.
E(X2)=1(21)+4(31)+25(61)=21+34+625=6
3
Apply the variance formula.
Var(X)=E(X2)−[E(X)]2=6−22=2
Answer
E(X)=2,Var(X)=2
Practice questions
Practice test
Try it yourself
9 questions, 11 marks
Choose your answers, then submit to see your score and the full worked solutions.
Multiple choice is marked for you, just like Exam 2 Section A.
Q1.The probability mass function for the discrete random variable X is given by Pr(X=−1)=k2, Pr(X=0)=3k, Pr(X=1)=k, Pr(X=2)=−k2−4k+1. The maximum possible value for the mean of X is:
1mark
Show worked solution
Every probability must be non-negative. From 3k≥0 we need k≥0, and from
−k2−4k+1≥0 we get 0≤k≤5−2. The mean is
E(X)=−k2+0+k+2(−k2−4k+1)=−3k2−7k+2, which is strictly
decreasing on [0,5−2], so it is maximised at k=0, giving E(X)=2.
VCAA 2023 Mathematical Methods Exam 2, Section A Q12
Q2.A discrete random variable X has the distribution below, where k is a positive real number: Pr(X=0)=2k, Pr(X=1)=3k, Pr(X=2)=5k, Pr(X=3)=3k, Pr(X=4)=2k. Find Pr(X<4∣X>1).
1mark
Show worked solution
The probabilities sum to 1, so 15k=1. Conditioning on X>1 (the cases
X=2,3,4) gives a total of 5k+3k+2k=10k. Among these, the cases with
X<4 are X=2,3, totalling 5k+3k=8k. Hence
Pr(X<4∣X>1)=10k8k=54.
VCAA 2024 Mathematical Methods Exam 2, Section A Q3
Q3.Four probability mass functions over x=1,2,3,4,5 are given. I has probabilities 0.1,0.4,0.4,0.1,0; II has 0.1,0.2,0.3,0.4,0; III has 0.45,0.25,0.15,0.15,0; IV has 0.2,0.2,0.2,0.2,0.2. Which pair of these distributions has the same mean?
1mark
Show worked solution
Compute each mean using E(X)=∑xp(x). Distribution II gives
1(0.1)+2(0.2)+3(0.3)+4(0.4)=3. Distribution IV is uniform on 1 to 5,
so its mean is 51+2+3+4+5=3. Distributions I and III both have means
at most 2.5, so the matching pair is II and IV.
VCAA 2025 Mathematical Methods Exam 2, Section A Q18
Q4.A discrete random variable X takes values 2,4,6,8 with probabilities 0.15,k,0.25,0.3. The value of k is:
1mark
Need a hint?
Every probability in a distribution adds to 1. Subtract the three you are given from 1.
Show worked solution
The probabilities must sum to 1, so k=1−(0.15+0.25+0.3)=0.3. Option C, 0.70, is the total of the three given probabilities, which is the most common slip.
Q5.A discrete random variable X takes values 0,1,2 with probabilities 0.5,0.3,0.2. The mean E(X) is:
1mark
Need a hint?
Weight each value by its probability and add. Do not just average the values.
Show worked solution
E(X)=0(0.5)+1(0.3)+2(0.2)=0.7. Option D, 1, comes from averaging the three values 0,1,2 and ignoring the probabilities.
Q6.For a discrete random variable X, E(X)=2.4 and E(X2)=6.6. The variance Var(X) is:
1mark
Need a hint?
Use the formula E(X2)−[E(X)]2. Remember to square the mean before subtracting.
Show worked solution
Var(X)=E(X2)−[E(X)]2=6.6−(2.4)2=6.6−5.76=0.84. Option B, 4.2, forgets to square the mean and computes 6.6−2.4.
Q7.A discrete random variable X has variance Var(X)=0.84. Correct to three decimal places, the standard deviation of X is:
1mark
Need a hint?
The standard deviation is the square root of the variance, not the variance itself.
Show worked solution
The standard deviation is Var(X)=0.84≈0.917. Option C leaves the answer as the variance, the single most common error in exam reports. Always take the square root.
Q8.A discrete random variable X has mean E(X)=5. The value of E(3X−2) is:
1mark
Need a hint?
Expectation is linear: E(aX+b)=aE(X)+b. Apply both the multiply and the subtract.
Show worked solution
Expectation is linear, so E(3X−2)=3E(X)−2=3(5)−2=13. Option B, 15, multiplies by 3 but forgets to subtract the 2.
Q9.A discrete random variable X takes the values 0,1,2 with probabilities 41,21,41. Find E(X) and Var(X), giving exact values.
3marks
Work this on paper. The worked solution appears once you submit.
Show worked solution
Mean: E(X)=0(41)+1(21)+2(41)=1.
Squares: E(X2)=0(41)+1(21)+4(41)=23.
Variance: Var(X)=E(X2)−[E(X)]2=23−12=21.
Frequently asked questions
What makes a random variable discrete rather than continuous?
A discrete random variable can only take separate, countable values that you can list one by one, like the score on a die or the number of heads in three tosses. There are no in between values, so you never get something like 2.5 heads.
Why is the expected value sometimes a number the variable can never be?
The expected value is a long run average, a balance point for the whole distribution, not a prediction of any single result. A fair die has a mean of 3.5 even though no single roll can ever land on 3.5.
What is the difference between variance and standard deviation?
Both measure how spread out the values are. Variance is the average of the squares minus the square of the average, but it comes out in squared units. The standard deviation is the square root of the variance, so it returns to the same units as the variable and is the more natural measure of spread.