7.11: Expected Value
- Page ID
- 129603
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Learning Objectives
After completing this section, you should be able to:
- Calculate the expected value of an experiment.
- Interpret the expected value of an experiment.
- Use expected value to analyze applications.
The casino game roulette has dozens of different bets that can be made. These bets have different probabilities of winning but also have different payouts. In general, the lower the probability of winning a bet is, the more money a player wins for that bet. With so many options, is there one bet that’s “smarter” than the rest? What’s the best play to make at a roulette table? In this section, we’ll develop the tools we need to answer these questions.
Expected Value
Many experiments have numbers associated with their outcomes. Some are easy to define; if you roll 2 dice, the sum of the numbers showing is a good example. In some card games, cards have different point values associated with them; for example, in some forms of the game rummy, aces are worth 15 points; 10s, jacks, queens, and kings are worth 10; and all other cards are worth 5. The outcomes of casino and lottery games are all associated with an amount of money won or lost. These outcome values are used to find the expected value of an experiment: the mean of the values associated with the outcomes that we would observe over a large number of repetitions of the experiment. (See Conditional Probability and the Multiplication Rule for more on means.)
That definition is a little vague; How many is “a large number?” In practice, it depends on the experiment; the number has to be large enough that every outcome would be expected to appear at least a few times. For example, if we’re talking about rolling a standard 6-sided die and we note the number showing, a few dozen replications should be enough that the mean would be representative. Since the probability of each outcome is , we would expect to see each outcome about 8 times over the course of 48 replications. However, if we’re talking about the Powerball lottery, where the probability of winning the jackpot is about , we would need several billion replications to ensure that every outcome appears a few times. Luckily, we can find the theoretical expected value before we even run the experiment the first time.
Expected Value: If represents an outcome of an experiment and represents the value of that outcome, then the expected value of the experiment is:
,where is the “sum,” meaning we add up the results of the formula that follows over all possible outcomes.
Find the expected values of the following experiments.
- Roll a standard 6-sided die and note the number showing.
- Roll two standard 6-sided dice and note the sum of the numbers showing.
- Draw a card from a well-shuffled standard deck of cards and note its rummy value (15 for aces; 10 for tens, jacks, queens, and kings; 5 for everything else).
- Answer
-
- Step 1: Let’s start by writing out the PDF table for this experiment.
Value Probability 1 2 3 4 5 6 Step 2: To find the expected value, we need to find for each possible outcome in the table below.
Value Probability 1 2 3 4 5 6
- Step 1: Let’s start by writing out the PDF table for this experiment.
Step 3: We add all of the values in that last column: . So, the expected value of a single roll of a die is 3.5.
- Back in Example 7.18, we made this table of all of the equally likely outcomes (Figure 7.47):
Figure 7.47 Step 1: Let’s use Figure 7.47 to create the PDF for this experiment, as shown in the following table:Value Probability 2 3 4 5 6 7 8 9 10 11 12 Step 2: We can multiply each row to find as shown in the following table:
Value Probability 2 3 4 5 6 7 8 9 10 11 12 Step 3: We can add the last column to get the expected value:
.So, the expected value is 7.
- Step 1: Let’s make a PDF table for this experiment. There are 3 events that we care about, so let’s use those events in the table below:
Event Probability {A} {10, J, Q, K} {2, 3, 4, 5, 6, 7, 8, 9} Step 2: Let’s add a column to the following table for the values of each event:
Event Probability Value {A} 15 {10, J, Q, K} 10 {2, 3, 4, 5, 6, 7, 8, 9} 5 Step 3: We’ll add the column for the product of the values and probabilities to the table below:
Event Probability Value {A} 15 {10, J, Q, K} 10 {2, 3, 4, 5, 6, 7, 8, 9} 5 Step 4: We’ll find the sum of the last column: . Thus, the expected Rummy value of a randomly selected card is about 7.3.
Find the expected value of the number showing when you roll a special 6-sided die with faces {1, 1, 2, 3, 5, 8}.
Find the expected value of the number of heads showing if you flip a coin 3 times.
You are about to play a game, where you flip a coin 3 times. If all 3 flips result in heads, you win $20. If you get 2 heads, you win $10. If you flip 1 or 0 heads, you win nothing. What is the expected value of your winnings?
Let’s make note of some things we can learn from Example 7.37. First, as Exercises 1 and 3 demonstrate, the expected value of an experiment might not be a value that could come up in the experiment. Remember that the expected value is interpreted as a mean, and the mean of a collection of numbers doesn’t have to actually be one of those numbers.
Second, looking at Exercise 1, the expected value (3.5) was just the mean of the numbers on the faces of the die: . This is no accident! If we break that fraction up using the addition in the numerator, we get , which we can rewrite as . That’s exactly the computation we did to find the expected value! In fact, expected values can always be treated as a special kind of mean called a weighted mean, where the weights are the probabilities associated with each value. When the probabilities are all equal, the weighted mean is just the regular mean.
Interpreting Expected Values
As we noted, the expected value of an experiment is the mean of the values we would observe if we repeated the experiment a large number of times. (This interpretation is due to an important theorem in the theory of probability called the Law of Large Numbers.) Let’s use that to interpret the results of the previous example.
Interpret the expected values of the following experiments.
- Roll a standard 6-sided die and note the number showing.
- Roll 2 standard 6-sided dice and note the sum of the numbers showing.
- Draw a card from a well-shuffled standard deck of cards and note its Rummy value (15 for aces; 10 for tens, jacks, queens, and kings; 5 for everything else).
- Answer
-
- If you roll a standard 6-sided die many times, the mean of the numbers you roll will be around 3.5.
- If you roll a pair of standard 6-sided dice many times, the mean of the sums of the numbers you roll will be about 7.
- If you draw a card from a well-shuffled deck many times, the mean of the Rummy values of the cards would be around 7.3.
Interpret the expected value of the number showing when you roll a special 6-sided die with faces {1, 1, 2, 3, 5, 8}.
Interpret the expected value of the number of heads showing if you flip a coin 3 times.
You are about to play a game where you flip a coin 3 times. If all 3 flips result in heads, you win $20. If you get 2 heads, you win $10. If you flip 1 or 0 heads, you win nothing. Interpret the expected value of your winnings.
The French scholar Blaise Pascal (1623–1662) was among the earliest mathematicians to study probabilities, and was the first to accurately describe and compute expected values. In his book Pensées (Thoughts), he turned the analysis of expected values to his belief in the Christian God. He said that there is no way for people to establish the probability that God exists, but since the “winnings” on a bet that God exists (and that you then lead your life accordingly) are essentially infinite, the expected value of taking that bet is always positive, no matter how unlikely it is that God exists.
Using Expected Value
Now that we know how to find and interpret expected values, we can turn our attention to using them. Suppose someone offers to play a game with you. If you roll a die and get a 6, you get $10. However, if you get a 5 or below, you lose $1. Is this a game you’d want to play? Let’s look at the expected value: The probability of winning is and the probability of losing is , so the expected value is . That means, on average, you’ll come out ahead by about 83 cents every time you play this game. It’s a great deal! On the other hand, if the winnings for rolling a 6 drop to $3, the expected value becomes , meaning you should expect to lose about 33 cents on average for every time you play. Playing that game is not a good idea! In general, this is how casinos and lottery corporations make money: Every game has a negative expected value for the player.
In the 21st century, data analytics tools have revolutionized the way sports are coached and played. One tool in particular is used in football at crucial moments in the game. When a team faces a fourth down (the last possession in a series of four possessions, a fairly common occurrence), the coach faces a decision: Run one play to try to gain a certain number of yards, or kick the ball away to the other team. Here’s the interesting part of the decision: If the team “goes for it” and runs the play and they are successful, then they keep possession of the ball and can continue in their quest to score more points. If they are unsuccessful, then they lose possession of the ball, giving the other team an opportunity to score points. If, instead, the team punts, or kicks the ball away, then the other team gets possession of the ball, but in a worse position for them than if the original team goes for it and fails. To analyze this situation, data analysts have generated empirical probabilities for every fourth down situation, and computed the expected value (in terms of points) for each decision. Coaches frequently use those calculations when they decide which option to take!
In 1654, a French writer and amateur mathematician named Antoine Gombaud (who called himself the Chevalier du Mére) reached out to his gambling buddy Blaise Pascal to answer a question that he’d read about called the “problem of points.” The question goes like this: Suppose you’re playing a game that is scored using points, and the first person to earn 5 points is the winner. The game is interrupted with the score 4 points to 2. If the winner stood to win $100, how should the prize money be divided between the players? Certainly the person who is 1 point away from victory should get more, but how much more?
We have developed tools in this section to answer this question. At its heart, it’s a question about conditional probabilities and expected value. At the time that Pascal first started thinking about it, though, those ideas hadn’t yet been invented. Pascal reached out to a colleague named Pierre de Fermat, and over the course of a couple of months, their correspondence with each other would eventually solve the problem. In the process, they first described conditional probabilities and expected values!
Apart from their work in probability, these men are famous for other work in mathematics (and, in Pascal’s case, philosophy and physics). Fermat is remembered for his work in geometry and in number theory. After his death, the statement of what came to be called “Fermat’s Last Theorem” was discovered scribbled in the margin of a book, with the note that Fermat had discovered a “marvelous proof that this margin is too small to contain.” The theorem says that any equation of the form has no positive integer solutions if . No proof of that theorem was discovered until 1994, when Andrew Wiles used computers and new branches of geometry to finally prove the theorem!
Pascal is remembered for the “arithmetical triangle” that is named for him (though he wasn’t the first person to discover it; see the section on the binomial distribution for more), as well as work in geometry. In physics, Pascal worked on hydrodynamics and air pressure (the SI unit for pressure is named for him), and in philosophy, Pascal advocated for a mathematical approach to philosophical problems.
In the casino game keno, a machine chooses at random 20 numbers between 1 and 80 (inclusive) without replacement. Players try to predict which numbers will be chosen. Players don’t try to guess all 20, though; generally, they’ll try to predict between 1 and 10 of the chosen numbers. The amount won depends on the number of guesses they made and the number of guesses that were correct.
- At one casino, a player can try to guess just 1 number. If that number is among the 20 selected, the player wins $2; otherwise, the player loses $1. What is the expected value?
- At the same casino, if a player makes 2 guesses and they’re both correct, the player wins $14; otherwise, the player loses $1. What is the expected value?
- Players can also make 3 guesses. If 2 of the 3 guesses are correct, the player wins $1. If all 3 guesses are correct, the player wins $42. Otherwise, the player loses $1. What is the expected value?
- Which of these games is the best for the player? Which is the best for the casino?
- Answer
-
- There are 20 winning numbers out of 80, so if we try to guess one of them, the probability of guessing correctly is . The probability of losing is then , and so the expected value is .
- There are winning choices out of total ways to choose 2 numbers. So, the probability of winning is and the probability of losing is . So, the expected value of the game is .
- Step 1: Let’s start with the big prize. There are ways to correctly guess 3 winning numbers out of ways to guess three numbers total. That means the probability of winning the big prize is .
Step 2: Let’s find the probability of the second prize. The denominator is the same: 82,160. Let’s figure out the numerator. To win the second prize, the player must pick 2 of the 20 winning numbers and one of the 60 losing numbers. The number of ways to do that can be found using the Multiplication Rule for Counting: there are ways to pick 2 winning numbers and 60 ways to pick 1 losing number, so there are ways to win the second prize. So, the probability of winning that second prize is .
Step 3: Since the overall probability of winning is , the probability of losing must be . So, the expected value is .
- The bet that’s the best for the player is the one with the highest expected value for the player, which is guessing two numbers. The best one for the casino is the one with the lowest expected value for the player, which is guessing one number.
The casino game craps involves rolling 2 standard 6-sided dice. While the main game involves repeated rolls of the dice, players can also bet on the outcomes of single rolls. Find the expected values of the following three $1 bets. Then decide which bet is the best for the player and which bet is the best for the casino.
Players can bet on the next roll of the dice being a sum of 7. Winners get $4 and losers lose $1.
Players can bet on the next roll of the dice being a sum of 12. Winners get $30 and losers lose $1
Players can bet that the next roll of the dice will be “any craps” (a sum of 2, 3, or 12). Winners get $7 and losers lose $1.
By yourself or with a partner, devise your own lottery scheme. Assume you would have access to one or more machines that choose numbers randomly. What will a lottery draw look like? How many numbers are players choosing from? How many will be drawn? Will they be drawn with replacement or without replacement? What conditions must be met for a player to win first or second (or more!) prize? Once you’ve decided that, decide the payoff structure for winners, and how much the game will cost to play. Try to make the game enticing enough that people will want to play it, but with enough negative expected value that the lottery will make money. Aim for the expected value to be about −0.25 times the cost of playing the game.
Check Your Understanding
You are about to roll a 20-sided die with faces labeled as follows: 5 faces have a 1, 6 faces have a 3, 4 faces have a 5, 3 faces have a 7, and 2 faces have a 9.What is the expected value of the number showing on the die after it’s rolled?
Interpret your answer.
You are about to play a game in which you draw 3 ping-pong balls without replacement from a barrel. The barrel contains 6 green balls and 4 red balls. If all 3 of your selections are green, you win $5. If 2 of the 3 are green, you win $1. If 2 or more of your selections are red, you lose $5.What is the expected value of this game?
Interpret your answer.
Is it advantageous to you to play the game? How do you know?
Section 7.11 Exercises
You roll a standard 6-sided die and win points equal to the square of the number shown.- Give a PDF table for the possible outcomes for the number of yellow balls selected.
- What is the expected number of yellow balls selected?
- Give a PDF table for the possible outcomes for the number of yellow balls selected.
- What is the expected number of yellow balls selected?
- Give a PDF table for the possible outcomes for the number of yellow balls selected.
- What is the expected number of yellow balls selected?
- Give a PDF table for the possible outcomes for the number of yellow balls selected.
- What is the expected number of yellow balls selected?
- Give a PDF table for the possible outcomes for the sum of the numbers on the selected balls.
- What is the expected sum of the numbers on the balls?
- Give a PDF table for the possible outcomes for the sum of the numbers on the selected balls.
- What is the expected sum of the numbers on the balls?
Dollar Amount | Frequency |
---|---|
$25,000 | 1 |
$10,000 | 2 |
$5,000 | 4 |
$2,500 | 8 |
$1,000 | 10 |
$500 | 10 |
$250 | 10 |
$100 | 5 |
Contestants are shown their selected dollar amounts one at a time, in the order selected. After each is revealed, the contestant is given the option of taking that amount of money or throwing it away in favor of the next amount. (You can watch the game being played in the video Playing "Punch a Bunch.") Anita is playing “Punch a Bunch” and gets 2 punches.