Mathematical Methods · Units 3 & 4

Discrete Random Variables

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.52.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)\Pr(X=x) for the probability that the variable XX equals a particular value xx.

Two rules make a list a genuine distribution. Every probability sits between 00 and 11, and all the probabilities add to exactly 11, because the variable has to land on something.

∑xPr⁡(X=x)=1\sum_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)=∑xx Pr⁡(X=x)E(X) = \sum_x x\,\Pr(X = x)

Notice that the expected value need not be a value the variable can ever take. A fair die has mean 3.53.5, even though you can never roll a 3.53.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 11, 22 or 55 with probabilities 12\tfrac{1}{2}, 13\tfrac{1}{3} and 16\tfrac{1}{6}. The bars below show each probability, and the dashed line at E(X)=2E(X) = 2 marks where the distribution balances. The value 55 is rare, so it tugs the balance point only a little to the right.

123456 0.10.20.30.40.50.6 Pr=1/2 Pr=1/3 Pr=1/6 x Pr(X = x)
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\operatorname{Var}(X) = E(X^2) - [E(X)]^2

Here E(X2)E(X^2) 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)sd(X) = \sqrt{\operatorname{Var}(X)}

The standard deviation is the more natural measure of spread because it comes back in the same units as XX 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\sqrt{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?
Write the formula for the expected value E(X)E(X) and say what it means.
Write the variance formula for a discrete random variable.
How do you get the standard deviation from the variance, and why does it matter?
Use linearity of expectation: if E(X)=5E(X) = 5, what is E(3X−2)E(3X - 2)?
Recall · The binomial distribution
For X∼Bi(n,p)X \sim \text{Bi}(n, p), what are the mean and variance?
Recall · Continuous random variables
How does the mean formula change for a continuous random variable?

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 XX is given by Pr⁡(X=0)=4k\Pr(X=0)=\dfrac{4}{k}, Pr⁡(X=1)=2k75\Pr(X=1)=\dfrac{2k}{75}, Pr⁡(X=2)=k75\Pr(X=2)=\dfrac{k}{75}, Pr⁡(X=3)=2k\Pr(X=3)=\dfrac{2}{k}, where kk is a positive real number. Show that k=10k = 10 or k=15k = 15.

  1. 1

    All probabilities in a distribution must add to exactly 11. Set the sum equal to 11.

    4k+2k75+k75+2k=1\frac{4}{k} + \frac{2k}{75} + \frac{k}{75} + \frac{2}{k} = 1
  2. 2

    Combine the like terms: the two over kk give 6k\tfrac{6}{k}, and the two over 7575 give 3k75=k25\tfrac{3k}{75}=\tfrac{k}{25}. Then multiply through by 25k25k.

    6k+k25=1  ⟹  150+k2=25k\frac{6}{k} + \frac{k}{25} = 1 \implies 150 + k^2 = 25k
  3. 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=15k^2 - 25k + 150 = 0 \implies (k-10)(k-15) = 0 \implies k = 10 \text{ or } k = 15
Answer
k=10 or k=15k = 10 \text{ 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%10\% check in no luggage, 40%40\% check in exactly one piece, and 50%50\% check in exactly two pieces. The probability a piece is labelled heavy is 0.2340.234, with masses independent. Let WW be the number of pieces labelled heavy checked in by a traveller. Show that Pr⁡(W=2)=0.027\Pr(W = 2) = 0.027 (to three decimal places), then complete the distribution of WW.

  1. 1

    Only travellers who check in two pieces can have W=2W = 2, and both pieces must be heavy. That probability is 0.5×0.23420.5 \times 0.234^2.

    Pr⁡(W=2)=0.5×0.2342=0.02738…≈0.027\Pr(W=2) = 0.5 \times 0.234^2 = 0.02738\ldots \approx 0.027
  2. 2

    W=0W = 0 means no heavy pieces. Combine the no-luggage, one-piece-not-heavy, and two-pieces-both-light cases, using 1−0.234=0.7661 - 0.234 = 0.766.

    Pr⁡(W=0)=0.1+0.4(0.766)+0.5(0.766)2=0.700\Pr(W=0) = 0.1 + 0.4(0.766) + 0.5(0.766)^2 = 0.700
  3. 3

    W=1W = 1 means exactly one heavy piece. The remaining probability is found here, or by 1−0.700−0.0271 - 0.700 - 0.027.

    Pr⁡(W=1)=0.4(0.234)+0.5⋅2(0.234)(0.766)=0.273\Pr(W=1) = 0.4(0.234) + 0.5\cdot 2(0.234)(0.766) = 0.273
Answer
Pr⁡(W=0)=0.700,Pr⁡(W=1)=0.273,Pr⁡(W=2)=0.027\Pr(W=0)=0.700, \quad \Pr(W=1)=0.273, \quad \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 XX has the distribution below, where pp is unknown. Find pp and then E(X)E(X).   x:0,1,2,3\;x: 0,1,2,3 with Pr⁡(X=x):0.1,0.3,p,0.2\Pr(X=x): 0.1, 0.3, p, 0.2.

  1. 1

    All probabilities in a distribution must add to 11. Add the known ones and subtract from 11.

    p=1−(0.1+0.3+0.2)=0.4p = 1 - (0.1 + 0.3 + 0.2) = 0.4
  2. 2

    The mean is each value times its probability, all added up: E(X)=∑x Pr⁡(X=x)E(X) = \sum x\,\Pr(X=x).

    E(X)=0(0.1)+1(0.3)+2(0.4)+3(0.2)E(X) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2)
  3. 3

    Work the arithmetic carefully.

    E(X)=0+0.3+0.8+0.6=1.7E(X) = 0 + 0.3 + 0.8 + 0.6 = 1.7
Answer
p=0.4,E(X)=1.7p = 0.4, \quad E(X) = 1.7
Worked Example 4Variance and standard deviation

A discrete random variable XX takes values 1,2,3,41, 2, 3, 4 with probabilities 0.2,0.3,0.4,0.10.2, 0.3, 0.4, 0.1. Find E(X)E(X), then the variance and the standard deviation of XX.

  1. 1

    First the mean, E(X)=∑x Pr⁡(X=x)E(X) = \sum x\,\Pr(X=x).

    E(X)=1(0.2)+2(0.3)+3(0.4)+4(0.1)=2.4E(X) = 1(0.2) + 2(0.3) + 3(0.4) + 4(0.1) = 2.4
  2. 2

    Now E(X2)E(X^2), 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.6E(X^2) = 1(0.2) + 4(0.3) + 9(0.4) + 16(0.1) = 6.6
  3. 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\operatorname{Var}(X) = E(X^2) - [E(X)]^2 = 6.6 - (2.4)^2 = 0.84
  4. 4

    The standard deviation is the square root of the variance. Do not stop at the variance.

    sd(X)=Var⁡(X)=0.84≈0.917sd(X) = \sqrt{\operatorname{Var}(X)} = \sqrt{0.84} \approx 0.917
Answer
E(X)=2.4,Var⁡(X)=0.84,sd(X)≈0.917E(X) = 2.4, \quad \operatorname{Var}(X) = 0.84, \quad sd(X) \approx 0.917
Worked Example 5A spinner with exact fractions

A spinner lands on 11 with probability 12\tfrac{1}{2}, on 22 with probability 13\tfrac{1}{3} and on 55 with probability 16\tfrac{1}{6}. Let XX be the number it lands on. Find E(X)E(X) and Var⁡(X)\operatorname{Var}(X) exactly.

  1. 1

    Check the probabilities sum to 11: 12+13+16=1\tfrac{1}{2} + \tfrac{1}{3} + \tfrac{1}{6} = 1. Then find the mean.

    E(X)=1(12)+2(13)+5(16)=12+23+56=2E(X) = 1\left(\tfrac{1}{2}\right) + 2\left(\tfrac{1}{3}\right) + 5\left(\tfrac{1}{6}\right) = \tfrac{1}{2} + \tfrac{2}{3} + \tfrac{5}{6} = 2
  2. 2

    Find E(X2)E(X^2) by squaring the values, keeping the probabilities.

    E(X2)=1(12)+4(13)+25(16)=12+43+256=6E(X^2) = 1\left(\tfrac{1}{2}\right) + 4\left(\tfrac{1}{3}\right) + 25\left(\tfrac{1}{6}\right) = \tfrac{1}{2} + \tfrac{4}{3} + \tfrac{25}{6} = 6
  3. 3

    Apply the variance formula.

    Var⁡(X)=E(X2)−[E(X)]2=6−22=2\operatorname{Var}(X) = E(X^2) - [E(X)]^2 = 6 - 2^2 = 2
Answer
E(X)=2,Var⁡(X)=2E(X) = 2, \quad \operatorname{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 XX is given by Pr⁡(X=−1)=k2\Pr(X=-1)=k^2, Pr⁡(X=0)=3k\Pr(X=0)=3k, Pr⁡(X=1)=k\Pr(X=1)=k, Pr⁡(X=2)=−k2−4k+1\Pr(X=2)=-k^2-4k+1. The maximum possible value for the mean of XX is:

1mark

VCAA 2023 Mathematical Methods Exam 2, Section A Q12

Q2.A discrete random variable XX has the distribution below, where kk is a positive real number: Pr⁡(X=0)=2k\Pr(X=0)=2k, Pr⁡(X=1)=3k\Pr(X=1)=3k, Pr⁡(X=2)=5k\Pr(X=2)=5k, Pr⁡(X=3)=3k\Pr(X=3)=3k, Pr⁡(X=4)=2k\Pr(X=4)=2k. Find Pr⁡(X<4∣X>1)\Pr(X < 4 \mid X > 1).

1mark

VCAA 2024 Mathematical Methods Exam 2, Section A Q3

Q3.Four probability mass functions over x=1,2,3,4,5x = 1,2,3,4,5 are given. I has probabilities 0.1,0.4,0.4,0.1,00.1, 0.4, 0.4, 0.1, 0; II has 0.1,0.2,0.3,0.4,00.1, 0.2, 0.3, 0.4, 0; III has 0.45,0.25,0.15,0.15,00.45, 0.25, 0.15, 0.15, 0; IV has 0.2,0.2,0.2,0.2,0.20.2, 0.2, 0.2, 0.2, 0.2. Which pair of these distributions has the same mean?

1mark

VCAA 2025 Mathematical Methods Exam 2, Section A Q18

Q4.A discrete random variable XX takes values 2,4,6,82, 4, 6, 8 with probabilities 0.15,k,0.25,0.30.15, k, 0.25, 0.3. The value of kk is:

1mark
Need a hint?
Every probability in a distribution adds to 11. Subtract the three you are given from 11.

Q5.A discrete random variable XX takes values 0,1,20, 1, 2 with probabilities 0.5,0.3,0.20.5, 0.3, 0.2. The mean E(X)E(X) is:

1mark
Need a hint?
Weight each value by its probability and add. Do not just average the values.

Q6.For a discrete random variable XX, E(X)=2.4E(X) = 2.4 and E(X2)=6.6E(X^2) = 6.6. The variance Var⁡(X)\operatorname{Var}(X) is:

1mark
Need a hint?
Use the formula E(X2)−[E(X)]2E(X^2) - [E(X)]^2. Remember to square the mean before subtracting.

Q7.A discrete random variable XX has variance Var⁡(X)=0.84\operatorname{Var}(X) = 0.84. Correct to three decimal places, the standard deviation of XX is:

1mark
Need a hint?
The standard deviation is the square root of the variance, not the variance itself.

Q8.A discrete random variable XX has mean E(X)=5E(X) = 5. The value of E(3X−2)E(3X - 2) is:

1mark
Need a hint?
Expectation is linear: E(aX+b)=aE(X)+bE(aX + b) = aE(X) + b. Apply both the multiply and the subtract.

Q9.A discrete random variable XX takes the values 0,1,20, 1, 2 with probabilities 14,12,14\tfrac{1}{4}, \tfrac{1}{2}, \tfrac{1}{4}. Find E(X)E(X) and Var⁡(X)\operatorname{Var}(X), giving exact values.

3marks

Work this on paper. The worked solution appears once you submit.

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.