Skip to main content
SingaporeFurther MathsSyllabus dot point

How do we describe a discrete random variable and compute its expectation and variance?

Work with discrete random variables, their probability distributions, expectation, variance, and the expectation and variance of linear functions

A focused answer to the H2 Further Mathematics outcome on discrete random variables. Probability distributions, expectation and variance, the computational formula for variance, and the rules for the expectation and variance of a linear function aX + b.

Generated by Claude Opus 4.811 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. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to describe a discrete random variable through its probability distribution, to compute its expectation (mean) and variance, to use the computational formula for variance, and to apply the rules for the expectation and variance of a linear function aX+baX + b. These are the foundation of all the distribution work that follows.

The answer

The probability distribution

A discrete random variable XX takes a countable set of values, each with a probability P(X=x)\mathrm{P}(X = x). The probabilities must satisfy

P(X=x)0for all x,xP(X=x)=1.\mathrm{P}(X = x) \geq 0 \quad\text{for all } x, \qquad \sum_x \mathrm{P}(X = x) = 1.

The second condition (probabilities sum to 11) is what fixes any unknown constant in the distribution.

Expectation

The expectation (mean) is the probability-weighted average of the values:

E(X)=xxP(X=x).\mathrm{E}(X) = \sum_x x\,\mathrm{P}(X = x).

It is the long-run average value of XX over many repetitions, often denoted μ\mu.

Variance

The variance measures spread about the mean. Its definition is Var(X)=E[(Xμ)2]\operatorname{Var}(X) = \mathrm{E}\big[(X - \mu)^2\big], but the computational formula is almost always easier:

Var(X)=E(X2)[E(X)]2,E(X2)=xx2P(X=x).\operatorname{Var}(X) = \mathrm{E}(X^2) - [\mathrm{E}(X)]^2, \qquad \mathrm{E}(X^2) = \sum_x x^2\,\mathrm{P}(X = x).

The standard deviation is Var(X)\sqrt{\operatorname{Var}(X)}.

Linear functions of X

For constants aa and bb,

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

Expectation is fully linear, but variance scales by a2a^2 and is unaffected by the constant bb, because adding a constant shifts the distribution without changing its spread.

Examples in context

Example 1. Expected value of a game. A gambling or insurance payoff is a discrete random variable; its expectation is the long-run average gain or loss, the figure that decides whether a bet or premium is fair, and the variance measures the risk.

Example 2. Scaling units. Converting a discrete measurement from one unit to another by Y=aX+bY = aX + b rescales the mean by aa and shifts it by bb, but the variance scales by a2a^2, which is why standard deviation (not variance) shares the units of the data.

Try this

Q1. State the computational formula for the variance of a discrete random variable. [1 mark]

  • Cue. Var(X)=E(X2)[E(X)]2\operatorname{Var}(X) = \mathrm{E}(X^2) - [\mathrm{E}(X)]^2.

Q2. If E(X)=5\mathrm{E}(X) = 5, find E(2X+3)\mathrm{E}(2X + 3). [1 mark]

  • Cue. 2(5)+3=132(5) + 3 = 13.

Q3. If Var(X)=4\operatorname{Var}(X) = 4, find Var(3X7)\operatorname{Var}(3X - 7). [1 mark]

  • Cue. 32(4)=363^2(4) = 36 (the 7-7 has no effect).

Exam-style practice questions

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

Original6 marksA discrete random variable XX has P(X=x)=kx\mathrm{P}(X = x) = kx for x=1,2,3,4x = 1, 2, 3, 4. Find kk, then E(X)\mathrm{E}(X) and Var(X)\operatorname{Var}(X).
Show worked answer →

Probabilities sum to 11: kx=k(1+2+3+4)=10k=1\sum kx = k(1 + 2 + 3 + 4) = 10k = 1, so k=0.1k = 0.1.

The distribution is P(X=x)=0.1x\mathrm{P}(X = x) = 0.1x: P(1)=0.1\mathrm{P}(1) = 0.1, P(2)=0.2\mathrm{P}(2) = 0.2, P(3)=0.3\mathrm{P}(3) = 0.3, P(4)=0.4\mathrm{P}(4) = 0.4.

E(X)=xP(X=x)=1(0.1)+2(0.2)+3(0.3)+4(0.4)=0.1+0.4+0.9+1.6=3\mathrm{E}(X) = \sum x\,\mathrm{P}(X = x) = 1(0.1) + 2(0.2) + 3(0.3) + 4(0.4) = 0.1 + 0.4 + 0.9 + 1.6 = 3.

E(X2)=x2P(X=x)=1(0.1)+4(0.2)+9(0.3)+16(0.4)=0.1+0.8+2.7+6.4=10\mathrm{E}(X^2) = \sum x^2\,\mathrm{P}(X = x) = 1(0.1) + 4(0.2) + 9(0.3) + 16(0.4) = 0.1 + 0.8 + 2.7 + 6.4 = 10.

Var(X)=E(X2)[E(X)]2=109=1\operatorname{Var}(X) = \mathrm{E}(X^2) - [\mathrm{E}(X)]^2 = 10 - 9 = 1.

Markers reward finding k=0.1k = 0.1, the expectation 33, E(X2)=10\mathrm{E}(X^2) = 10, and the variance 11 via the computational formula.

Original5 marksA random variable XX has E(X)=4\mathrm{E}(X) = 4 and Var(X)=2\operatorname{Var}(X) = 2. Find E(3X1)\mathrm{E}(3X - 1) and Var(3X1)\operatorname{Var}(3X - 1).
Show worked answer →

For a linear function, expectation is linear: E(aX+b)=aE(X)+b\mathrm{E}(aX + b) = a\,\mathrm{E}(X) + b. So

E(3X1)=3E(X)1=3(4)1=11.\mathrm{E}(3X - 1) = 3\,\mathrm{E}(X) - 1 = 3(4) - 1 = 11.

Variance scales by the square of the multiplier and ignores the constant: Var(aX+b)=a2Var(X)\operatorname{Var}(aX + b) = a^2\operatorname{Var}(X). So
Var(3X1)=32Var(X)=9(2)=18.\operatorname{Var}(3X - 1) = 3^2\operatorname{Var}(X) = 9(2) = 18.

Markers reward the linear expectation rule giving 1111, and the variance rule a2Var(X)a^2\operatorname{Var}(X) (with bb having no effect) giving 1818.

Related dot points