Skip to main content
QLDMath MethodsSyllabus dot point

Topic 3: Discrete random variables

Define a discrete random variable and its probability distribution, calculate the expected value E(X)E(X) and the variance Var(X)\mathrm{Var}(X) and standard deviation, and recognise the Bernoulli distribution as the single-trial case

A focused answer to the QCE Mathematical Methods Unit 3 dot point on discrete random variables. Covers the probability distribution and its conditions (pi0p_i \geq 0 and pi=1\sum p_i = 1), the calculation of E(X)E(X) and Var(X)\mathrm{Var}(X) from a distribution table, and the Bernoulli distribution as the single-trial case, with QCAA IA2-style worked examples.

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

What this dot point is asking

QCAA wants you to define a discrete random variable, identify and work with its probability distribution, compute the expected value and variance, and recognise the Bernoulli distribution as the simplest case (a single yes or no trial). This dot point underpins all of Topic 3 and feeds directly into the binomial distribution.

The answer

Random variables

A random variable XX assigns a numerical value to each outcome of a probability experiment. A random variable is discrete if its possible values form a countable set (typically a list of integers).

The probability distribution of XX is the list of possible values together with their probabilities, often shown as a table.

xx x1x_1 x2x_2 \ldots xnx_n
P(X=x)P(X = x) p1p_1 p2p_2 \ldots pnp_n

For this to be a valid distribution, the probabilities must satisfy two conditions.

  1. Non-negativity. pi0p_i \geq 0 for every ii.
  2. Normalisation. ipi=1\sum_i p_i = 1.

QCAA Paper 1 questions frequently give a partial distribution with an unknown kk and ask you to use the normalisation condition to solve for kk.

Expected value

The expected value (or mean) of XX is the probability-weighted average of its values:

E(X)=μ=ixiP(X=xi).E(X) = \mu = \sum_i x_i \, P(X = x_i).

Interpretation: the long-run average of XX over many independent repetitions.

For any constants aa and bb:

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

Variance and standard deviation

The variance measures spread around the mean.

Var(X)=σ2=E((Xμ)2)=i(xiμ)2P(X=xi).\mathrm{Var}(X) = \sigma^2 = E\bigl( (X - \mu)^2 \bigr) = \sum_i (x_i - \mu)^2 \, P(X = x_i).

The computational shortcut (the version you should use on Paper 1 and Paper 2) is

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

where E(X2)=ixi2P(X=xi)E(X^2) = \sum_i x_i^2 \, P(X = x_i).

The standard deviation is σ=Var(X)\sigma = \sqrt{\mathrm{Var}(X)}.

For any constants aa and bb:

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

The bb disappears (a shift does not change spread) and the aa squares (a scale multiplies variance by a2a^2).

The Bernoulli distribution

A Bernoulli trial has exactly two outcomes, labelled success (X=1X = 1) and failure (X=0X = 0), with probability pp of success.

P(X=1)=p,P(X=0)=1pP(X = 1) = p, \qquad P(X = 0) = 1 - p

Write XBern(p)X \sim \mathrm{Bern}(p). Then

E(X)=p,Var(X)=p(1p).E(X) = p, \qquad \mathrm{Var}(X) = p (1 - p).

The Bernoulli distribution is the building block of the binomial: a binomial Bin(n,p)\mathrm{Bin}(n, p) is the sum of nn independent Bernoulli trials with the same pp.

Exam-style practice questions

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

2023 QCAA-style P15 marksA discrete random variable XX has the probability distribution shown below, where kk is a constant. (a) Find the value of kk. (b) Find E(X)E(X). (c) Find Var(X)\mathrm{Var}(X). | xx | 0 | 1 | 2 | 3 | |-----|---|---|---|---| | P(X=x)P(X = x) | 0.10.1 | 0.30.3 | kk | 0.20.2 |
Show worked answer →

A 5-mark answer needs the normalisation, the expected value, and the variance.

(a) Probabilities sum to 1: 0.1+0.3+k+0.2=1    k=0.40.1 + 0.3 + k + 0.2 = 1 \implies k = 0.4.

(b) E(X)=xP(X=x)=00.1+10.3+20.4+30.2=0+0.3+0.8+0.6=1.7E(X) = \sum x \, P(X = x) = 0 \cdot 0.1 + 1 \cdot 0.3 + 2 \cdot 0.4 + 3 \cdot 0.2 = 0 + 0.3 + 0.8 + 0.6 = 1.7.

(c) E(X2)=020.1+120.3+220.4+320.2=0+0.3+1.6+1.8=3.7E(X^2) = 0^2 \cdot 0.1 + 1^2 \cdot 0.3 + 2^2 \cdot 0.4 + 3^2 \cdot 0.2 = 0 + 0.3 + 1.6 + 1.8 = 3.7.

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 the normalisation step, the correct E(X)E(X) calculation, use of the shortcut Var(X)=E(X2)[E(X)]2\mathrm{Var}(X) = E(X^2) - [E(X)]^2 (rather than the longer first-principles formula), and a numerical answer to a reasonable number of decimal places.

2022 QCAA-style P23 marksA biased coin lands heads with probability 0.70.7. Let X=1X = 1 if the coin lands heads, X=0X = 0 if it lands tails. State the distribution of XX and find E(X)E(X) and Var(X)\mathrm{Var}(X).
Show worked answer →

XX is a Bernoulli random variable with parameter p=0.7p = 0.7, written XBern(0.7)X \sim \mathrm{Bern}(0.7).

E(X)=p=0.7E(X) = p = 0.7 and Var(X)=p(1p)=0.70.3=0.21\mathrm{Var}(X) = p (1 - p) = 0.7 \cdot 0.3 = 0.21.

To verify: E(X)=00.3+10.7=0.7E(X) = 0 \cdot 0.3 + 1 \cdot 0.7 = 0.7 and E(X2)=00.3+10.7=0.7E(X^2) = 0 \cdot 0.3 + 1 \cdot 0.7 = 0.7, so Var(X)=0.70.49=0.21\mathrm{Var}(X) = 0.7 - 0.49 = 0.21.

Markers reward naming the distribution explicitly (Bernoulli with p=0.7p = 0.7), the standard formulas E=pE = p and Var=p(1p)\mathrm{Var} = p (1 - p), and a check by direct calculation. Stating XBern(p)X \sim \mathrm{Bern}(p) in shorthand notation also earns recognition.

Related dot points