Definition 9.0.1 · Expected Value
Expected value is the weighted average of the outcomes: each outcome counts in proportion to how likely it is.
Weighted averages, fair games and the most useful trick in contest probability: linearity of expectation with indicator variables.
In this section you will be able to find expected values as weighted averages, and split hard ones into easy pieces with linearity of expectation.
A 100-dollar casino game pays 500 dollars with chance 5% and 250 dollars with chance 20%. Should you play?
You can’t know what one game pays. But you can find what it pays on average. Weight each prize by its chance and add: that is the expected value.
The real power tool is linearity of expectation. To count something random, split it into small 0-or-1 pieces called indicators. Each piece’s expected value is just its probability. Add them up, even when the pieces depend on each other.
Expected value is the weighted average of the outcomes: each outcome counts in proportion to how likely it is.
The expected value of a random quantity is
where the are the possible values of and is the probability that each one happens.
In words: multiply each value by its probability, then add.
Often you can use symmetry instead of multiplying out every value. For a die roll, instead of evaluating
see that all rolls from 1 to 6 are equally likely. So the expected value is just the average roll: the average of the two middle values, . (See the arithmetic sequences chapter.)
For any random quantities , independent or dependent,
The expected value of a total is the sum of the expected values of its parts.
Think of every possible outcome of the experiment, with probability . Then , so
Nothing here asks whether and are independent. Repeat for terms.
This theorem is super powerful! It lets you find the expected value of each small piece instead of the whole thing at once. The classic move: write the count you want as a sum of indicators (1 if something happens, 0 if not). Each indicator's expected value is just its probability.
Suppose that 7 boys and 13 girls line up in a row. Let be the number of places in the row where a boy and a girl are standing next to each other. For example, for the row GBBGGGBGBGGGBGBGGBGG we have . Find the expected value of .
We will use linearity of expectation. How many places are there where a boy and a girl could be standing next to each other?
Suppose that 7 boys and 13 girls line up in a row. Let be the number of places in the row where a boy and a girl are standing next to each other. For example, for the row GBBGGGBGBGGGBGBGGBGG we have . Find the expected value of .
The book prints Example 9.1 again, word for word. Try it without scrolling up. What is the chance that one particular place holds a boy and a girl?
Five balls are arranged around a circle. Chris chooses two adjacent balls at random and interchanges them. Then Silva does the same, with her choice of adjacent balls to interchange being independent of Chris's. What is the expected number of balls that occupy their original positions after these two successive transpositions?
Give each ball an indicator: if it ends in its own spot. The answer is the expected sum of the 5 indicators. Is every ball equally likely to end at home?
What is the average number of pairs of consecutive integers in a randomly selected subset of 5 distinct integers chosen from the set ? (For example the set has 2 pairs of consecutive integers.)
Give each pair an indicator: if both numbers are chosen. How many such pairs are there in ?
I have a calculator with 4 buttons: , , , . Initially, I randomly press one of the four buttons and from there, I alternate between pressing a number and an operation. If I press the button a total of 100 times, what is the expected value of the output?
We can ignore all the numbers after the first operation button is pressed. Why?
Mark is playing a game at the casino. The game costs . There is a chance he will win and a chance he will win and chance he will win . What is the expected value for the money he will lose?
A player pays to play a game. A die is rolled. If the number on the die is odd, the game is lost. If the number on the die is even, the die is rolled again. In this case the player wins if the second number matches the first and loses otherwise. How much should the player win if the game is fair? (In a fair game the probability of winning times the amount won is what the player should pay.)
Awnik repeatedly plays a game that has a probability of winning of . The outcomes of the games are independent. What is the expected value of the number of games he will play until he has both won and lost at least once?
A school has 100 students and 5 teachers. In the first period, each student is taking one class, and each teacher is teaching one class. The enrollments in the classes are 50, 20, 20, 5, and 5. Let be the average value obtained if a teacher is picked at random and the number of students in their class is noted. Let be the average value obtained if a student was picked at random and the number of students in their class, including the student, is noted. What is ?
In this section you will be able to use linearity, symmetry and geometric series on harder expected value problems.
Three AIME-style problems. Each one looks like a monster sum until you split it with linearity of expectation.
Want every problem from this chapter on one page? Open the problem set.
Let be the set of real numbers that can be represented as repeating decimals of the form where are distinct digits. Find the sum of the elements of .
For each permutation of the integers , form the sum
The average value of all such sums can be written in the form , where and are relatively prime positive integers. Find .
One day, a bishop and a knight were on squares in the same row of an infinite chessboard, when a huge meteor storm occurred, placing a meteor in each square on the chessboard independently and randomly with probability . Neither the bishop nor the knight were hit, but their movement may have been obstructed by the meteors. For what value of is the expected number of valid squares that the bishop can move to (in one move) equal to the expected number of squares that the knight can move to (in one move)?