Skip to main content
VICMath MethodsSyllabus dot point

How are the distribution, expected value and variance of a discrete random variable defined and computed?

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)}

A focused answer to the VCE Math Methods Unit 3 key-knowledge point on discrete random variables. Probability distributions, expected value, variance and standard deviation, the linearity rule for E(aX+b)E(aX + b), and the standard Paper 1 patterns.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

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

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)=μ=xxP(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.36.25=1.05\mathrm{Var}(X) = 7.3 - (2.5)^2 = 7.3 - 6.25 = 1.05. So sd(X)=1.051.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)=asd(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 \Ywhere where Y = 10 X - 5and and X$ is the spinner above.

E(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.

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

Cumulative distribution

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

  • P(X<x)=P(Xx1)P(X < x) = P(X \leq x - 1) for integer-valued XX.
  • P(Xx)=1P(X<x)=1P(Xx1)P(X \geq x) = 1 - P(X < x) = 1 - P(X \leq x - 1).
  • P(aXb)=P(Xb)P(Xa1)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.

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.71.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 \4minusa minus a \11 fixed handling cost per hour, so hourly profit is Y=4X1Y = 4X - 1 using the XX above. Then E(Y) = 4(1.7) - 1 = \5.80and and \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.92.12=4.94.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 practice questions

Practice questions written in the style of VCAA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

2023 VCAA Paper 14 marksA 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.72.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 Paper 12 marksA random variable XX has E(X)=4E(X) = 4 and Var(X)=9\mathrm{Var}(X) = 9. Find E(2X5)E(2X - 5) and Var(2X5)\mathrm{Var}(2X - 5).
Show worked answer →

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

E(2X5)=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(2X5)=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.

Related dot points