Lesson 3 of 8 · 16 min
Expected value
Calculate the mean of a discrete random variable as a probability-weighted average, interpret it as a long-run average, and use it to judge games and decisions.
What you will be able to do
- Calculate from a probability function.
- Interpret as the long-run average of over many repetitions.
- Use to find unknown probabilities and to decide whether a game is fair.
A school fete runs a game: roll a fair die, win $10 for a six, $2 for a four or a five, and nothing otherwise. Over one roll you can't predict what you'll win. Over 600 rolls you can: about 100 sixes, 200 fours or fives and 300 others, so the total paid out is about
or per roll. That long-run average is the expected value.
Divide each count by 600 and the calculation becomes "each value times its probability, added up":
Key idea
Expected value
The mean or expected value of a discrete random variable is
where is the probability of the value . It is a weighted average: each value counts in proportion to how likely it is.
If the bars were weights on a see-saw, the mean is where it would balance. Find the marked mean, then check it with .
Worked example
Calculate an expected value from a table
The number of goals, , that a netball goal shooter scores in a quarter has this probability function. Calculate and interpret it.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0.1 | 0.3 | 0.35 | 0.15 | 0.1 |
Step 1: Check the table is valid
, and each probability is between 0 and 1.
Step 2: Multiply each value by its probability
Step 3: Add the products
Step 4: Interpret
Over many quarters, the goal shooter scores an average of 1.85 goals per quarter. No single quarter has 1.85 goals; it is a long-run average.
Try it yourself first, then check the working one step at a time.
Answer
: in the long run the goal shooter averages 1.85 goals a quarter.
Method
Check that the probabilities add to 1.
Multiply each value by its probability.
Add the products, and interpret the result as a long-run average.
Watch out for
Averaging the values 0 to 4 to get 2, ignoring the probabilities.
Rounding the mean to a whole number.
Let be the score on a fair six-sided die. Find .
Note
The mean need not be a possible value
You can never roll 3.5, and no family has 2.4 children. describes the centre of the distribution, the average over many repetitions, not a value you expect on any one trial. Leave it as an exact fraction or decimal; don't round it to a whole number.
For a uniform random variable the weights are equal, so the mean is the ordinary average of the values, which sits in the middle by symmetry. For a non-uniform one you must weight.
The random variable has this probability function, and . Find and .
| 1 | 2 | 3 | |
|---|---|---|---|
| 0.3 |
Expected value is how games, insurance and investments are judged. If is a player's gain (winnings minus the cost of playing), then is the average gain per game. The game is fair when ; when the player loses money in the long run and the organiser profits.
Worked example
Is the fete game fair?
At a school fete it costs $3 to roll a fair die. A six wins $10, a four or a five wins $2, and any other score wins nothing. (The $3 is not returned.)
(a) Let be the player's gain in dollars (prize minus cost). Determine the probability function of .
(b) Determine and interpret it.
(c) Determine the cost to play that would make the game fair.
Step 1: List the gains
A six gives ; a four or five gives ; a one, two or three gives .
Step 2: Write the probability function
Step 3: Calculate the expected gain
Step 4: Interpret
On average a player loses about 67 cents per game, so the fete makes about 67 cents per game in the long run.
Step 5: Find the fair cost
The expected prize is . The game is fair when the cost equals the expected prize, .
Gain = prize − cost, so , which is 0 exactly when the cost is the expected prize.
Try it yourself first, then check the working one step at a time.
Answer
, a loss of about 67 cents per game on average. The game would be fair if it cost .
Method
Define the gain as prize minus cost, and list its values.
Find the probability of each value.
Calculate .
Fair means : the cost equals the expected prize.
Watch out for
Using the prizes instead of the gains, then forgetting to subtract the cost.
Subtracting the cost only from the winning outcomes.
Common mistake
Averaging the values
The plain average of the values, , is not unless the values are equally likely. Always multiply each value by its probability.
Extension: scaling and shifting a random variable
If every value of is multiplied by and then has added, every value in the weighted average changes the same way, so
For example, if a stall sells drinks an hour with , earns $4 a drink and pays $20 an hour to run, its hourly profit is , with mean . You can always get the same answer by writing out the probability function of the new variable and using .
Exam tip
Show the sum
Write the products before you add them, e.g. . A marker can award the method even if one product is wrong.
Summary
: multiply each value by its probability and add.
is the long-run average of and the balance point of its graph. It need not be a possible value.
For a uniform random variable, is the ordinary average of the values.
With unknowns, use and the given mean as two equations.
A game is fair when the expected gain is 0.
Finished the lesson?
Try the 2 quick checks above and the lesson completes itself, or mark it complete now.