PYQ Vault

HSC Maths · Probability Distributions

Expected Value, Variance and Standard Deviation

The expected value E(X) is the sum of each value of X times its probability; the variance is E(X²) minus the square of E(X), and the standard deviation is its square root.

Why this matters

28 questions, nine of them from board papers, the most of any page: the expected value from a table (MCQs in 2015, 2018 and 2022, a written question in 2020), the mean of a number chosen at random from 1 to 15 (2023), the variance and standard deviation from a table (2018, 2019 and 2024), and the expected value and variance of the number on a die (2026). The textbook rows are the solved examples of 7.3.3, Exercise 7.1 Q.9 to Q.16, Exercise 7.2 Q.10 and Miscellaneous Exercise 7.

Concept 1 of 3: Expected value (mean) of a discrete random variable

If the experiment is repeated many times, the average of the values of X settles near one number: the expected value. Each value pulls the average towards itself in proportion to its probability, so you multiply every value by its probability and add.

Definition

  • E(X)=μ=∑xipi=x1p1+x2p2+…+xnpnE(X) = \mu = \sum x_i p_i = x_1 p_1 + x_2 p_2 + \ldots + x_n p_n.
  • In words: the sum of the products of all possible values of XX by their respective probabilities.
  • Board layout: a table with the columns xix_i, pip_i and xipix_i p_i, and the total of the last column.
  • If the p.m.f. has an unknown constant, find it first from ∑pi=1\sum p_i = 1.
  • E(X)E(X) need not be a possible value of XX; it can be a fraction even when XX takes whole-number values.

Expected value

E(X)=μ=∑i=1nxipiE(X) = \mu = \sum_{i=1}^{n} x_i p_i

Worked example

XX takes the values 0, 1, 2, 3, 4 with probabilities 0.2, 0.3, 0.25, 0.15, 0.1. Find E(X)E(X).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2020 · Q. 13Easy

Example 1 · Probability Distributions · Expected Value and Variance of a Random Variable

Find the expected value of the random variable XX whose probability mass function is:
X = x123
P (X = x)15\frac{1}{5}25\frac{2}{5}25\frac{2}{5}

Dropping the sign of a negative value

A value of −2-2 with probability 0.3 gives xipi=−0.6x_i p_i = -0.6. Writing +0.6+0.6 changes the answer, and an MCQ will offer that wrong answer as an option.

Taking the plain average of the values

E(X)E(X) is not the sum of the values divided by how many there are, unless every value has the same probability. Weight each value by its probability.

Concept 2 of 3: Variance and standard deviation

The mean says where X sits; the variance says how widely it spreads around that mean. It is the probability-weighted average of the squared distances from the mean. The shortcut E(X²) minus the square of E(X) gives the same number with less work, and the standard deviation brings it back to the units of X.

Definition

  • Var(X)=σ2=∑(xi−μ)2pi\text{Var}(X) = \sigma^2 = \sum (x_i - \mu)^2 p_i.
  • Shortcut: Var(X)=∑xi2pi−(∑xipi)2=E(X2)−[E(X)]2\text{Var}(X) = \sum x_i^2 p_i - \left(\sum x_i p_i\right)^2 = E(X^2) - [E(X)]^2.
  • The non-negative number σ=Var(X)\sigma = \sqrt{\text{Var}(X)} is the standard deviation.
  • Board layout: a table with the columns xix_i, pip_i, xipix_i p_i, xi2pix_i^2 p_i and their totals; then E(X)E(X), E(X2)E(X^2), Var(X)\text{Var}(X) and σ\sigma on separate lines.
  • A variance is never negative; a negative answer means an arithmetic slip.

Variance and standard deviation

Var(X)=∑xi2pi−(∑xipi)2,σ=Var(X)\text{Var}(X) = \sum x_i^2 p_i - \left(\sum x_i p_i\right)^2, \qquad \sigma = \sqrt{\text{Var}(X)}

Worked example

XX takes the values 0, 1, 2 with probabilities 0.3, 0.5, 0.2. Find the variance and standard deviation of XX.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2018 · Q. 6. (B) iii.Easy

Example 2 · Probability Distributions · Expected Value and Variance of a Random Variable

Find the variance and standard deviation of the random variable XX whose probability distribution is given below:
X = x0123
P(x)18\frac{1}{8}38\frac{3}{8}38\frac{3}{8}18\frac{1}{8}

Squaring the probability instead of the value

The column is xi2pix_i^2 p_i: square the value, then multiply by its probability. xipi2x_i p_i^2 is a different number.

Stopping at E(X²)

∑xi2pi\sum x_i^2 p_i is E(X2)E(X^2), not the variance. Subtract [E(X)]2[E(X)]^2 on the next line.

Leaving out the standard deviation

When the question asks for the standard deviation too, write σ=Var(X)\sigma = \sqrt{\text{Var}(X)} with its value. The variance alone loses that mark.

Concept 3 of 3: Mean and variance of a continuous random variable

A continuous random variable is described by a probability density function f(x), whose area over an interval is a probability (the next page teaches it). For its mean, the sum of x times p becomes the integral of x times f(x), just as the textbook turns a sum into an integral for the c.d.f.

Definition

  • E(X)=∫abxf(x) dxE(X) = \int_a^b x f(x)\,dx, where (a,b)(a, b) is the interval on which f(x)f(x) is not zero.
  • E(X2)=∫abx2f(x) dxE(X^2) = \int_a^b x^2 f(x)\,dx, and Var(X)=E(X2)−[E(X)]2\text{Var}(X) = E(X^2) - [E(X)]^2.
  • If f(x)f(x) has a constant in it, find the constant first from ∫abf(x) dx=1\int_a^b f(x)\,dx = 1.
  • Only one textbook exercise (Exercise 7.2 Q.10) asks for this, and no board paper in this bank has asked it.

Mean and variance, continuous case

E(X)=∫abxf(x) dx,Var(X)=∫abx2f(x) dx−[E(X)]2E(X) = \int_a^b x f(x)\,dx, \qquad \text{Var}(X) = \int_a^b x^2 f(x)\,dx - [E(X)]^2

Worked example

XX has p.d.f. f(x)=2xf(x) = 2x for 0<x<10 < x < 1 and =0= 0 otherwise. Find E(X)E(X) and Var(X)\text{Var}(X).
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 7.2 Q.10Hard

Example 3 · Probability Distributions · Expected Value and Variance of a Random Variable

If a r.v. XX has p.d.f., f(x)=cxf(x) = \dfrac{c}{x}, for 1<x<31 < x < 3, c>0c > 0, Find cc, E(X)\mathrm{E}(X) and Var(X)\mathrm{Var}(X).

Adding f(x) values instead of integrating

f(x)f(x) is a height, not the probability of xx. For a continuous variable, E(X)E(X) is an integral of xf(x)x f(x), never a sum.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • Expected value (mean) of a discrete random variable

    Expected value

    E(X)=μ=∑i=1nxipiE(X) = \mu = \sum_{i=1}^{n} x_i p_i
  • Variance and standard deviation

    Variance and standard deviation

    Var(X)=∑xi2pi−(∑xipi)2,σ=Var(X)\text{Var}(X) = \sum x_i^2 p_i - \left(\sum x_i p_i\right)^2, \qquad \sigma = \sqrt{\text{Var}(X)}
  • Mean and variance of a continuous random variable

    Mean and variance, continuous case

    E(X)=∫abxf(x) dx,Var(X)=∫abx2f(x) dx−[E(X)]2E(X) = \int_a^b x f(x)\,dx, \qquad \text{Var}(X) = \int_a^b x^2 f(x)\,dx - [E(X)]^2

Watch out for (6)

Test yourself on Probability Distributions

10 past MH HSC 12 questions from this chapter, timed at 15 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.