← Unit 3: Further calculus and statistics

QLDMath MethodsSyllabus dot point

Topic 3: Discrete random variables

Define a discrete random variable and its probability distribution, calculate the expected value $E(X)$ and the variance $\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 ($p_i \geq 0$ and $\sum p_i = 1$), the calculation of $E(X)$ and $\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 OpusReviewed by Better Tuition Academy8 min answer

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.

IMATH_9 IMATH_10 IMATH_11 IMATH_12 IMATH_13
IMATH_14 IMATH_15 IMATH_16 IMATH_17 IMATH_18

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

  1. Non-negativity. piβ‰₯0p_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)=ΞΌ=βˆ‘ixi P(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βˆ’ΞΌ)2 P(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)=βˆ‘ixi2 P(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)=a2 Var(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)=1βˆ’pP(X = 1) = p, \qquad P(X = 0) = 1 - p

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

E(X)=p,Var(X)=p(1βˆ’p).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.

Worked examples

Validity check

A student claims the following is a probability distribution: P(X=1)=0.2P(X = 1) = 0.2, P(X=2)=0.5P(X = 2) = 0.5, P(X=3)=0.4P(X = 3) = 0.4. Is it valid?

0.2+0.5+0.4=1.1β‰ 10.2 + 0.5 + 0.4 = 1.1 \neq 1. Not valid; it violates the normalisation condition.

Mean and variance from a table

A discrete random variable XX has P(X=1)=0.4P(X = 1) = 0.4, P(X=2)=0.4P(X = 2) = 0.4, P(X=5)=0.2P(X = 5) = 0.2.

E(X)=1β‹…0.4+2β‹…0.4+5β‹…0.2=0.4+0.8+1.0=2.2E(X) = 1 \cdot 0.4 + 2 \cdot 0.4 + 5 \cdot 0.2 = 0.4 + 0.8 + 1.0 = 2.2.

E(X2)=1β‹…0.4+4β‹…0.4+25β‹…0.2=0.4+1.6+5.0=7.0E(X^2) = 1 \cdot 0.4 + 4 \cdot 0.4 + 25 \cdot 0.2 = 0.4 + 1.6 + 5.0 = 7.0.

Var(X)=7.0βˆ’(2.2)2=7.0βˆ’4.84=2.16\mathrm{Var}(X) = 7.0 - (2.2)^2 = 7.0 - 4.84 = 2.16.

Standard deviation Οƒ=2.16β‰ˆ1.47\sigma = \sqrt{2.16} \approx 1.47.

Linear transformation

If E(X)=2.2E(X) = 2.2 and Var(X)=2.16\mathrm{Var}(X) = 2.16, find E(3X+1)E(3 X + 1) and Var(3X+1)\mathrm{Var}(3 X + 1).

E(3X+1)=3β‹…2.2+1=7.6E(3 X + 1) = 3 \cdot 2.2 + 1 = 7.6.

Var(3X+1)=32β‹…2.16=9β‹…2.16=19.44\mathrm{Var}(3 X + 1) = 3^2 \cdot 2.16 = 9 \cdot 2.16 = 19.44.

Bernoulli with IMATH_60

X∼Bern(0.4)X \sim \mathrm{Bern}(0.4) has E(X)=0.4E(X) = 0.4 and Var(X)=0.4β‹…0.6=0.24\mathrm{Var}(X) = 0.4 \cdot 0.6 = 0.24.

Common traps

Forgetting the normalisation check. A discrete distribution must have probabilities that sum to exactly 1. Forgetting to set this up costs the first mark when QCAA gives an unknown kk.

Confusing E(X2)E(X^2) and [E(X)]2[E(X)]^2. The variance shortcut is E(X2)βˆ’[E(X)]2E(X^2) - [E(X)]^2, where the first term squares each xx before weighting and the second squares after weighting. They are not equal.

Dropping the square on the scale factor. Var(aX+b)=a2 Var(X)\mathrm{Var}(a X + b) = a^2 \, \mathrm{Var}(X), not a Var(X)a \, \mathrm{Var}(X).

Computing standard deviation but stopping at variance. If QCAA asks for standard deviation, take the square root.

Naming Bernoulli when you mean binomial. A Bernoulli is a single trial. A binomial is nn trials. Mixing the two is a frequent IA2 short response error.

Using negative probabilities. A probability cannot be negative. If your algebra produces a negative pp, you have set up the problem wrongly.

In one sentence

A discrete random variable has a probability distribution satisfying piβ‰₯0p_i \geq 0 and βˆ‘pi=1\sum p_i = 1, with mean E(X)=βˆ‘xipiE(X) = \sum x_i p_i and variance Var(X)=E(X2)βˆ’[E(X)]2\mathrm{Var}(X) = E(X^2) - [E(X)]^2, and the Bernoulli distribution Bern(p)\mathrm{Bern}(p) is the single-trial case with E=pE = p and Var=p(1βˆ’p)\mathrm{Var} = p (1 - p).

Past exam questions, worked

Real questions from past QCAA papers on this dot point, with our answer explainer.

2023 QCAA-style P15 marksA discrete random variable $X$ has the probability distribution shown below, where $k$ is a constant. (a) Find the value of $k$. (b) Find $E(X)$. (c) Find $\mathrm{Var}(X)$. | $x$ | 0 | 1 | 2 | 3 | |-----|---|---|---|---| | $P(X = x)$ | $0.1$ | $0.3$ | $k$ | $0.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)=βˆ‘x P(X=x)=0β‹…0.1+1β‹…0.3+2β‹…0.4+3β‹…0.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)=02β‹…0.1+12β‹…0.3+22β‹…0.4+32β‹…0.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.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 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.7$. Let $X = 1$ if the coin lands heads, $X = 0$ if it lands tails. State the distribution of $X$ and find $E(X)$ and $\mathrm{Var}(X)$.
Show worked answer β†’

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

E(X)=p=0.7E(X) = p = 0.7 and Var(X)=p(1βˆ’p)=0.7β‹…0.3=0.21\mathrm{Var}(X) = p (1 - p) = 0.7 \cdot 0.3 = 0.21.

To verify: E(X)=0β‹…0.3+1β‹…0.7=0.7E(X) = 0 \cdot 0.3 + 1 \cdot 0.7 = 0.7 and E(X2)=0β‹…0.3+1β‹…0.7=0.7E(X^2) = 0 \cdot 0.3 + 1 \cdot 0.7 = 0.7, so Var(X)=0.7βˆ’0.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(1βˆ’p)\mathrm{Var} = p (1 - p), and a check by direct calculation. Stating X∼Bern(p)X \sim \mathrm{Bern}(p) in shorthand notation also earns recognition.

Related dot points