Skip to main content

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)E(X) = \sum x P(X = x), the variance Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X) = E(X^2) - [E(X)]^2 and the standard deviation sd(X)=Var(X)\mathrm{sd}(X) = \sqrt{\mathrm{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)E(X) = \sum x P(X = x) that is the long-run average outcome, and a variance Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X) = E(X^2) - [E(X)]^2 that measures spread, with linear transformations following E(aX+b)=aE(X)+bE(aX + b) = a E(X) + b and Var(aX+b)=a2Var(X)\mathrm{Var}(aX + b) = a^2 \mathrm{Var}(X).

Jump to a section
  1. What this dot point is asking
  2. Discrete random variables
  3. Expected value (mean)
  4. Variance and standard deviation
  5. Linear transformations
  6. Cumulative distribution
  7. Examples in context
  8. Try this
  9. Exam-style questions

What this dot point is asking

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 variable XX takes values from a countable set (typically a finite list of integers). Its probability distribution is a table or rule specifying P(X=x)P(X = x) for each possible value xx.

Two conditions every distribution must satisfy:

  1. P(X=x)≥0P(X = x) \geq 0 for all xx.
  2. ∑xP(X=x)=1\sum_{x} P(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.20.2, 0.3, 0.3, 0.2.

xx 1 2 3 4
P(X=x)P(X = x) 0.2 0.3 0.3 0.2

The sum is 1. The variable XX representing the outcome is a discrete random variable.

Expected value (mean)

The expected value of XX is the long-run average outcome if the experiment is repeated many times:

E(X)=μ=∑xx⋅P(X=x)E(X) = \mu = \sum_{x} x \cdot 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.5E(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 XX

For any function gg:

E(g(X))=∑xg(x)⋅P(X=x)E(g(X)) = \sum_{x} g(x) \cdot P(X = x)

The most common application is g(x)=x2g(x) = x^2, giving E(X2)E(X^2), which is needed for variance.

Variance and standard deviation

The variance measures the spread of XX around its mean. The computational formula (memorise this):

Var(X)=E(X2)−[E(X)]2\mathrm{Var}(X) = E(X^2) - [E(X)]^2

The equivalent definition is Var(X)=E ⁣((X−μ)2)\mathrm{Var}(X) = E\!\left((X - \mu)^2\right), but the computational formula is faster.

The standard deviation is the positive square root:

sd(X)=σ=Var(X)\mathrm{sd}(X) = \sigma = \sqrt{\mathrm{Var}(X)}

Standard deviation has the same units as XX 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.3E(X^2) = 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\mathrm{Var}(X) = 7.3 - (2.5)^2 = 7.3 - 6.25 = 1.05. So sd(X)=1.05≈1.025\mathrm{sd}(X) = \sqrt{1.05} \approx 1.025.

Linear transformations

For constants aa and bb:

E(aX+b)=aE(X)+bE(a X + b) = a E(X) + b

Var(aX+b)=a2Var(X)\mathrm{Var}(a X + b) = a^2 \mathrm{Var}(X)

sd(aX+b)=∣a∣⋅sd(X)\mathrm{sd}(a X + b) = |a| \cdot \mathrm{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\$Y where Y=10X−5Y = 10 X - 5 and XX is the spinner above.

E(Y)=10E(X)−5=10(2.5)−5=$20E(Y) = 10 E(X) - 5 = 10(2.5) - 5 = \$20.

Var(Y)=100Var(X)=100(1.05)=105\mathrm{Var}(Y) = 100 \mathrm{Var}(X) = 100(1.05) = 105.

sd(Y)=10⋅1.025≈$10.25\mathrm{sd}(Y) = 10 \cdot 1.025 \approx \$10.25.

Cumulative distribution

The cumulative probability P(X≤x)P(X \leq x) is the sum of P(X=k)P(X = k) for all k≤xk \leq x. Inequalities to watch:

  • P(X<x)=P(X≤x−1)P(X < x) = P(X \leq x - 1) for integer-valued XX.
  • P(X≥x)=1−P(X<x)=1−P(X≤x−1)P(X \geq x) = 1 - P(X < x) = 1 - P(X \leq x - 1).
  • P(a≤X≤b)=P(X≤b)−P(X≤a−1)P(a \leq X \leq b) = P(X \leq b) - P(X \leq a - 1) for integer-valued XX.

Read the inequality direction carefully. Strict versus non-strict matters when XX 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)2E(X)^2 instead of E(X2)E(X^2)
These are different! E(X2)E(X^2) uses each x2x^2 times its probability; [E(X)]2[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)\mathrm{Var}(2X) = 4 \mathrm{Var}(X), not 2Var(X)2 \mathrm{Var}(X).
Forgetting the absolute value in sd(aX+b)=∣a∣⋅sd(X)\mathrm{sd}(aX + b) = |a| \cdot \mathrm{sd}(X)
Standard deviation is always non-negative, so the coefficient is the absolute value of aa.
Off-by-one on cumulative probabilities for integer XX
P(X<3)=P(X≤2)P(X < 3) = P(X \leq 2), not P(X≤3)P(X \leq 3).

Examples in context

Example 1. Expected demand for a cafe. The number of cakes XX sold per hour has distribution P(X=0)=0.1P(X=0)=0.1, P(X=1)=0.3P(X=1)=0.3, P(X=2)=0.4P(X=2)=0.4, P(X=3)=0.2P(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.7E(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.7E(X^2) = 0 + 0.3 + 1.6 + 1.8 = 3.7, the variance is 3.7−1.72=0.813.7 - 1.7^2 = 0.81, so sd(X)=0.9\mathrm{sd}(X) = 0.9.

Example 2. Scaling a payoff. A wholesaler's profit per cake is $4\$4 minus a $1\$1 fixed handling cost per hour, so hourly profit is Y=4X−1Y = 4X - 1 using the XX above. Then E(Y)=4(1.7)−1=$5.80E(Y) = 4(1.7) - 1 = \$5.80 and Var(Y)=42×0.81=12.96\mathrm{Var}(Y) = 4^2 \times 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.2P(X=1)=0.2, P(X=2)=0.5P(X=2)=0.5, P(X=3)=0.3P(X=3)=0.3. Find E(X)E(X). [2 marks]

  • Cue. 1(0.2)+2(0.5)+3(0.3)=0.2+1.0+0.9=2.11(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1.0 + 0.9 = 2.1.

Q2. For the same distribution, find Var(X)\mathrm{Var}(X). [3 marks]

  • Cue. E(X2)=0.2+2.0+2.7=4.9E(X^2) = 0.2 + 2.0 + 2.7 = 4.9; Var(X)=4.9−2.12=4.9−4.41=0.49\mathrm{Var}(X) = 4.9 - 2.1^2 = 4.9 - 4.41 = 0.49.

Q3. Given E(X)=6E(X) = 6 and Var(X)=4\mathrm{Var}(X) = 4, find E(3X+2)E(3X + 2) and Var(3X+2)\mathrm{Var}(3X + 2). [2+2 marks]

  • Cue. E(3X+2)=3(6)+2=20E(3X + 2) = 3(6) + 2 = 20; Var(3X+2)=9×4=36\mathrm{Var}(3X + 2) = 9 \times 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 XX has the probability distribution shown. Find the value of kk, then compute E(X)E(X) and Var(X)\mathrm{Var}(X).<br><br>xx: 0, 1, 2, 3<br>P(X=x)P(X = x): 0.1, 0.3, kk, 0.2
Show worked answer →

Probabilities sum to 1: 0.1+0.3+k+0.2=10.1 + 0.3 + k + 0.2 = 1, so k=0.4k = 0.4.

Expected value: E(X)=0(0.1)+1(0.3)+2(0.4)+3(0.2)=0+0.3+0.8+0.6=1.7E(X) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2) = 0 + 0.3 + 0.8 + 0.6 = 1.7.

E(X2)=0(0.1)+1(0.3)+4(0.4)+9(0.2)=0+0.3+1.6+1.8=3.7E(X^2) = 0(0.1) + 1(0.3) + 4(0.4) + 9(0.2) = 0 + 0.3 + 1.6 + 1.8 = 3.7.

Variance: Var(X)=E(X2)−[E(X)]2=3.7−(1.7)2=3.7−2.89=0.81\mathrm{Var}(X) = E(X^2) - [E(X)]^2 = 3.7 - (1.7)^2 = 3.7 - 2.89 = 0.81.

Markers reward solving for kk, the expected-value sum, E(X2)E(X^2) computation, and the variance formula.

2024 VCAA-style (Exam 1)2 marks
A random variable XX has E(X)=4E(X) = 4 and Var(X)=9\mathrm{Var}(X) = 9. Find E(2X−5)E(2X - 5) and Var(2X−5)\mathrm{Var}(2X - 5).
Show worked answer →

Linearity of expectation: E(aX+b)=aE(X)+bE(aX + b) = a E(X) + b.

E(2X−5)=2(4)−5=3E(2X - 5) = 2(4) - 5 = 3.

Variance under linear transformation: Var(aX+b)=a2Var(X)\mathrm{Var}(aX + b) = a^2 \mathrm{Var}(X) (constants drop out, scaling squares).

Var(2X−5)=4×9=36\mathrm{Var}(2X - 5) = 4 \times 9 = 36.

Markers reward both formulas and correct application of the squared coefficient in the variance.

Practise this

Sources & how we know this

ExamExplained