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.
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$.
Find $E(X)$ for this distribution.
| $x$ | $0$ | $1$ | $2$ | $3$ |
|---|---|---|---|---|
| $P(X = x)$ | $0.1$ | $0.3$ | $0.4$ | $0.2$ |
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.
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.
Linear changes
If every value of $X$ is multiplied by $a$ and then has $b$ added, the mean does exactly the same thing.
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.
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$.
$X$ takes values $1, 2, 3$ with probabilities $0.2$, $0.5$, $0.3$. Find $E(X)$.
$1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1 + 0.9 = 2.1$.
Find the expected score on a fair eight-sided die numbered $1$ to $8$.
Uniform, so the mean is the middle: $\dfrac{1 + 8}{2} = 4.5$.
Three fair coins are tossed. Find the expected number of heads.
The distribution $\tfrac18, \tfrac38, \tfrac38, \tfrac18$ is symmetric about $1.5$. Or: $0 + \tfrac38 + \tfrac68 + \tfrac38 = \tfrac{12}{8} = 1.5$.
$E(X) = 3$. Then $E(2X + 5) =$
$E(2X + 5) = 2E(X) + 5 = 6 + 5 = 11$.
A game costs $\$2$. You win $\$5$ with probability $0.3$, otherwise nothing. Find the expected net gain per game, in dollars.
Expected winnings $= 5 \times 0.3 = 1.5$. Net gain $= 1.5 - 2 = -0.5$.
Two dice are rolled, and a double wins $\$12$. What is the fair price to play, in dollars?
$P(\text{double}) = \tfrac{6}{36} = \tfrac16$. Expected winnings $= 12 \times \tfrac16 = 2$, so a fair price is $\$2$.
$X$ takes values $1, 2, 3, 4$ with probabilities $0.1$, $a$, $b$, $0.3$, and $E(X) = 2.7$. Find $a$.
Sum: $a + b = 0.6$. Mean: $0.1 + 2a + 3b + 1.2 = 2.7$, so $2a + 3b = 1.4$. Substitute $b = 0.6 - a$: $2a + 1.8 - 3a = 1.4$, so $a = 0.4$ (and $b = 0.2$).
A distribution has a column graph that is symmetric about $x = 5$. Its mean is:
Values the same distance above and below $5$ have equal probabilities, so they balance and the mean is $5$.
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.
Expected payout $= 50\,000 \times 0.002 + 5000 \times 0.01 = 100 + 50 = 150$. Expected profit $= 250 - 150 = 100$.
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.
Expected winnings $= \dfrac{1000 + 200 + 100}{500} = \dfrac{1300}{500} = 2.6$. Net gain $= 2.6 - 5 = -2.4$.
Coaching Centre