Skip to main content

Expected value and variance (SACE Stage 2 Mathematical Methods)

Syllabus dot point

“The expected value is the long-run mean of a discrete random variable; the variance and standard deviation measure how spread out its values are.”

8 min read

Quick answer

The expected value E(X)=μ=∑x P(X=x)E(X)=\mu=\sum x\,P(X=x) is the probability-weighted average of the outcomes. The variance Var⁡(X)=∑(x−μ)2P(X=x)=E(X2)−μ2\operatorname{Var}(X)=\sum (x-\mu)^2 P(X=x)=E(X^2)-\mu^2 measures spread, and the standard deviation is σ=Var⁡(X)\sigma=\sqrt{\operatorname{Var}(X)}.

Jump to a section
  1. What this dot point is asking
  2. Expected value
  3. Variance and standard deviation
  4. Linear transformations
  5. Decision-making with expected value
  6. Common errors
  7. Why it matters
  8. Exam-style questions

What this dot point is asking

The expected value is the average value of XX you would see over very many repetitions - the "centre" of the distribution. The variance and standard deviation measure how far, on average, the outcomes fall from that centre.

Expected value

Expected value (mean)

E(X)=μ=∑all xx P(X=x).E(X)=\mu=\sum_{\text{all }x} x\,P(X=x).

You multiply each value by its probability and add the results. The expected value need not be a value the variable can actually take (a die's mean is 3.53.5).

Expected value of a biased spinner

A spinner pays out $1\$1, $2\$2 or $5\$5 with the distribution below.

xx 1 2 5
P(X=x)P(X=x) 0.50.5 0.30.3 0.20.2

Find E(X)E(X).

Step 1: Recall the expected value formula

The expected value is the probability-weighted average of all outcomes. Each value is multiplied by how likely it is, then the products are summed.

E(X)=∑all xx P(X=x).E(X) = \sum_{\text{all }x} x\,P(X=x).

Step 2: Multiply each value by its probability

Work through each outcome in the table.

  • x=1x = 1: contributes 1×0.5=0.51 \times 0.5 = 0.5
  • x=2x = 2: contributes 2×0.3=0.62 \times 0.3 = 0.6
  • x=5x = 5: contributes 5×0.2=1.05 \times 0.2 = 1.0

Step 3: Add the contributions

E(X)=0.5+0.6+1.0=2.1.E(X) = 0.5 + 0.6 + 1.0 = 2.1.

Final answer: The expected payout per spin is $2.10\$2.10.

Variance and standard deviation

Variance is the expected squared distance from the mean. The definition and the much faster computational form are:

Variance and standard deviation

Var⁡(X)=∑(x−μ)2P(X=x)=E(X2)−[E(X)]2,σ=Var⁡(X),\operatorname{Var}(X)=\sum (x-\mu)^2 P(X=x)=E(X^2)-\big[E(X)\big]^2, \qquad \sigma=\sqrt{\operatorname{Var}(X)},

where E(X2)=∑x2 P(X=x)E(X^2)=\sum x^2\,P(X=x).

The shortcut E(X2)−μ2E(X^2)-\mu^2 is almost always quicker than working with (x−μ)2(x-\mu)^2 directly.

Variance using the shortcut formula

For the spinner above (with E(X)=2.1E(X) = 2.1), find Var⁡(X)\operatorname{Var}(X) and the standard deviation σ\sigma.

Step 1: Compute E(X2)E(X^2)

The shortcut formula for variance requires E(X2)E(X^2), which is the expected value of X2X^2. This is calculated the same way as E(X)E(X), but each value is squared before multiplying by its probability.

E(X2)=12(0.5)+22(0.3)+52(0.2)=0.5+1.2+5.0=6.7.E(X^2) = 1^2(0.5) + 2^2(0.3) + 5^2(0.2) = 0.5 + 1.2 + 5.0 = 6.7.

Step 2: Apply the shortcut formula

Variance is the difference between the mean of the squared values and the square of the mean. Using μ=2.1\mu = 2.1 from the previous example:

Var⁡(X)=E(X2)−μ2=6.7−(2.1)2=6.7−4.41=2.29.\operatorname{Var}(X) = E(X^2) - \mu^2 = 6.7 - (2.1)^2 = 6.7 - 4.41 = 2.29.

Step 3: Find the standard deviation

The standard deviation is the square root of the variance, bringing the measure of spread back to the same units as XX.

σ=2.29≈1.51.\sigma = \sqrt{2.29} \approx 1.51.

Final answer: Var⁡(X)=2.29\operatorname{Var}(X) = 2.29 and σ≈1.51\sigma \approx 1.51.

Linear transformations

If you scale and shift a random variable, Y=aX+bY=aX+b, the mean and variance transform predictably:

Transformation rules

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

The constant bb shifts the mean but never affects the spread, and the factor aa scales the variance by a2a^2 (not aa).

For example, if each spin's payout is doubled and a $1\$1 entry fee is subtracted, Y=2X−1Y=2X-1, then E(Y)=2(2.1)−1=3.2E(Y)=2(2.1)-1=3.2 and Var⁡(Y)=22(2.29)=9.16\operatorname{Var}(Y)=2^2(2.29)=9.16.

The reason bb disappears from the variance is intuitive: adding a fixed amount to every outcome slides the whole distribution sideways without changing how spread out the values are. Scaling by aa, on the other hand, stretches the distances from the mean by a factor of aa, and since variance is built from squared distances, those distances get squared too. This is why the standard deviation, which is in the original units, scales by ∣a∣|a| while the variance scales by a2a^2.

Decision-making with expected value

A frequent SACE application is judging whether a game is "fair". A game is fair if the expected net gain is zero once the cost of playing is subtracted. Suppose a game costs $2\$2 to play and pays out according to XX with E(X)=2.1E(X)=2.1. The expected net gain is E(X)−2=0.10E(X)-2=0.10 dollars per play, so the game slightly favours the player. If instead the cost were $2.50\$2.50, the expected net would be −$0.40-\$0.40, so over many plays you would expect to lose forty cents per game. Expected value is the standard tool for these long-run decision questions, and examiners expect you to interpret the sign of the result in context, not just compute it.

Common errors

Squaring or forgetting the square in variance

The most common slip is computing E(X)2E(X)^2 and E(X2)E(X^2) the wrong way around - E(X2)E(X^2) squares each value before weighting, while E(X)2E(X)^2 squares the already-computed mean. Also remember to take the square root for standard deviation, and that a constant added to XX leaves the variance unchanged while a multiplier scales variance by its square.

Lay out a working table

Set up columns for xx, P(X=x)P(X=x), x P(X=x)x\,P(X=x) and x2P(X=x)x^2 P(X=x). The third column sums to E(X)E(X) and the fourth to E(X2)E(X^2), so the variance falls out with one subtraction. This structure is fast and almost slip-proof under exam pressure.

Why it matters

Expected value underpins fair-game and decision questions, while variance and standard deviation describe risk and spread - concepts you reuse for the binomial distribution, the normal distribution in Topic 5, and the sampling distributions in Topic 6.

Exam-style questions

Questions in the style of SACE Board 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.

SACE 2023-style3 marks
Calculator-assumed. A discrete random variable XX takes values −1-1, 00 and 22 with probabilities 0.20.2, 0.70.7 and 0.10.1 respectively, so that E(X)=0E(X) = 0. Calculate the standard deviation of XX.
Show worked answer →

The standard deviation is the square root of the variance. With μ=0\mu = 0, the variance is ∑(x−μ)2P(X=x)\sum (x - \mu)^2 P(X=x):

Var⁡(X)=(−1)2(0.2)+(0)2(0.7)+(2)2(0.1)=0.2+0+0.4=0.6.\operatorname{Var}(X) = (-1)^2(0.2) + (0)^2(0.7) + (2)^2(0.1) = 0.2 + 0 + 0.4 = 0.6.

Standard deviation =0.6≈0.775= \sqrt{0.6} \approx 0.775 (to three significant figures).

Marks: one for the variance set-up, one for evaluating it to 0.60.6, and one for the square root. Forgetting to square root the variance is a common slip.

SACE 2022-style2 marks
Calculator-assumed. The number XX printed on a randomly selected duck takes the values 11, 22, 55 and 1010 with probabilities 0.50.5, 0.20.2, 0.20.2 and 0.10.1, and E(X)=2.9E(X) = 2.9. Calculate the standard deviation of XX.
Show worked answer →

Use Var⁡(X)=E(X2)−[E(X)]2\operatorname{Var}(X) = E(X^2) - [E(X)]^2.

First E(X2)=(1)2(0.5)+(2)2(0.2)+(5)2(0.2)+(10)2(0.1)=0.5+0.8+5+10=16.3E(X^2) = (1)^2(0.5) + (2)^2(0.2) + (5)^2(0.2) + (10)^2(0.1) = 0.5 + 0.8 + 5 + 10 = 16.3.

Then Var⁡(X)=16.3−(2.9)2=16.3−8.41=7.89\operatorname{Var}(X) = 16.3 - (2.9)^2 = 16.3 - 8.41 = 7.89.

Standard deviation =7.89≈2.81= \sqrt{7.89} \approx 2.81 (to three significant figures).

Marks: one for the variance, one for the square root. The large spread reflects the rare but high value of 1010.

SACE 2021-style3 marks
Calculator-assumed. A random variable XX has E(X)=4E(X) = 4 and Var⁡(X)=9\operatorname{Var}(X) = 9. The variable Y=3X−2Y = 3X - 2. Find E(Y)E(Y) and Var⁡(Y)\operatorname{Var}(Y).
Show worked answer →

Apply the linear transformation rules. For Y=aX+bY = aX + b with a=3a = 3, b=−2b = -2:

E(Y)=aE(X)+b=3(4)−2=10.E(Y) = aE(X) + b = 3(4) - 2 = 10.

Var⁡(Y)=a2Var⁡(X)=32(9)=81.\operatorname{Var}(Y) = a^2 \operatorname{Var}(X) = 3^2 (9) = 81.

Marks: one for E(Y)=10E(Y) = 10, one for using a2a^2 (not aa) on the variance, and one for Var⁡(Y)=81\operatorname{Var}(Y) = 81. The constant −2-2 shifts the mean but leaves the spread unchanged.

Practise this

Sources & how we know this

ExamExplained