9B

Expected value

The mean or expected value of a discrete random variable, symmetric distributions, fair games and expected gain, and the expected value of a linear function aX + b.

If you rolled a die thousands of times, what would your scores average out to? The expected value answers that question before you roll once. It is how casinos, insurers and game designers decide what to charge.

From data to expected value

Suppose $3$ coins were tossed $200$ times, and the number of heads $x$ came up with frequencies $f$. The mean of the data is $\dfrac{\sum xf}{200}$, which we can split up as $\sum x \times \dfrac{f}{200}$: each value times its relative frequency. Over a huge number of trials those relative frequencies settle down to the probabilities. Replacing them gives the expected value.

Expected value (mean)
$$\mu = E(X) = \sum x \, P(X = x)$$

Multiply each value by its probability, then add. The answer doesn't have to be a value $X$ can actually take: the expected number of heads in three tosses is $1.5$.

Example 1●

Find $E(X)$ for this distribution.

$x$$0$$1$$2$$3$
$P(X = x)$$0.1$$0.3$$0.4$$0.2$
$0 \times 0.1 + 1 \times 0.3 + 2 \times 0.4 + 3 \times 0.2 = 0 + 0.3 + 0.8 + 0.6$
Add a row of x × P(X = x).
$E(X) = 1.7$

Symmetric and uniform distributions

If the column graph is symmetric, the mean is at the centre of symmetry: the high and low values balance each other out. So for three coins, $E(X) = 1.5$ straight away.

A uniform distribution on $1, 2, \ldots, n$ is symmetric, so its mean is the middle value $\dfrac{n + 1}{2}$. For a fair die that gives $\dfrac{7}{2} = 3.5$.

Games and expected gain

In a game, let $X$ be your net gain: what you win minus what you paid. The game is fair if $E(X) = 0$. A negative expected gain means you lose money in the long run.

Example 2●●

A game costs $\$4$ to play. You roll a die: a $6$ wins $\$10$, a $5$ wins $\$3$, and anything else wins nothing. Find the expected gain, and the fair price to play.

$E(\text{winnings}) = 10 \times \tfrac16 + 3 \times \tfrac16 + 0 \times \tfrac46 = \tfrac{13}{6} \approx \$2.17$
Expected winnings: multiply each prize by its probability.
Expected gain $= \tfrac{13}{6} - 4 = -\tfrac{11}{6} \approx -\$1.83$ per game.
Subtract the cost to get the net gain.
Fair price $\approx \$2.17$.
A fair price makes the expected gain 0, so it equals the expected winnings.

Linear changes

If every value of $X$ is multiplied by $a$ and then has $b$ added, the mean does exactly the same thing.

Expected value of aX + b
$$E(aX + b) = aE(X) + b$$
Example 3●

A stall sells $X$ pies an hour, where $E(X) = 17$. Each pie makes $\$3$ profit, and the stall costs $\$20$ an hour. Find the expected hourly profit.

$E(3X - 20) = 3 \times 17 - 20 = \$31$
Profit is P = 3X − 20, a linear function of X.

Your turn

$X$ takes values $2, 4, 6$ with probabilities $0.3$, $0.3$, $0.4$. Find $E(X)$ and $E(10X + 4)$.

Show the working

$E(X) = 0.6 + 1.2 + 2.4 = 4.2$. Then $E(10X + 4) = 10 \times 4.2 + 4 = 46$.

Flashcards
$E(X)$ for a discrete variable
$\sum x\,P(X = x)$
$E(aX + b)$
$aE(X) + b$
A fair game
Expected net gain is $0$.
Mean of a uniform distribution on $1, ldots, n$
$\dfrac{n + 1}{2}$
Practice
  1. $X$ takes values $1, 2, 3$ with probabilities $0.2$, $0.5$, $0.3$. Find $E(X)$.

  2. Find the expected score on a fair eight-sided die numbered $1$ to $8$.

  3. Three fair coins are tossed. Find the expected number of heads.

  4. $E(X) = 3$. Then $E(2X + 5) =$

  5. A game costs $\$2$. You win $\$5$ with probability $0.3$, otherwise nothing. Find the expected net gain per game, in dollars.

  6. Two dice are rolled, and a double wins $\$12$. What is the fair price to play, in dollars?

  7. $X$ takes values $1, 2, 3, 4$ with probabilities $0.1$, $a$, $b$, $0.3$, and $E(X) = 2.7$. Find $a$.

  8. A distribution has a column graph that is symmetric about $x = 5$. Its mean is:

  9. Exam style: an insurer charges $\$250$ for a policy. It pays $\$50\,000$ with probability $0.002$ and $\$5000$ with probability $0.01$, and nothing otherwise. Find the insurer's expected profit per policy, in dollars.

  10. Exam style: $500$ raffle tickets are sold at $\$5$ each. The prizes are $\$1000$, $\$200$ and $\$100$. Find the expected net gain for someone who buys one ticket, in dollars.

Formula sheet