Skip to main content
Mathematics LibreTexts

5.2: Expected Value

  • Page ID
    91509
  • \( \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}}\)

    Learning Objectives

    Students will be able to:

    • Identify valid probability distributions.
    • Compute the expected value from a probability distribution or an experiment.
    • Understand the implications of the Gamblers' Fallacy and how it related to streaks.

    Probability Distributions

    A probability distribution (probability space) is a sample space paired with the probabilities for each outcome in the sample space. If we toss a fair coin and see which side lands up, there are two outcomes, heads and tails. Since the coin is fair these are equally likely outcomes and have the same probabilities. The probability distribution would be P(heads) = 1/2 and P(tails) = 1/2. This is often written in table form:

    Table \(\PageIndex{1}\): Probability Distribution for a Fair Coin

    Outcome

    Heads

    Tails

    Probability

    1/2

    1/2

    A probability distribution for an experiment is a list of all the possible outcomes and their corresponding probabilities.

    In probability problems when we roll two dice, it is helpful to think of the dice as being different colors. Let’s assume that one die is red and the other die is green. We consider getting a three on the red die and a five on the green die different than getting a five on the red die and a three on the green die. In other words, when we list the outcomes the order matters. The possible outcomes of rolling two dice and looking at the sum are given in Table \(\PageIndex{2}\).

    Table \(\PageIndex{2}\): All Possible Sums of Two Dice

    1+1 = 2

    1+2 = 3

    1+3 = 4

    1+4 = 5

    1+5 = 6

    1+6 = 7

    2+1 = 3

    2+2 = 4

    2+3 = 5

    2+4 = 6

    2+5 = 7

    2+6 = 8

    3+1 = 4

    3+2 = 5

    3+3 = 6

    3+4 = 7

    3+5 = 8

    3+6 = 9

    4+1 = 5

    4+2 = 6

    4+3 = 7

    4+4 = 8

    4+5 = 9

    4+6 = 10

    5+1 = 6

    5+2 = 7

    5+3 = 8

    5+4 = 9

    5+5 = 10

    5+6 = 11

    6+1 = 7

    6+2 = 8

    6+3 = 9

    6+4 = 10

    6+5 = 11

    6+6 = 12

    Table \(\PageIndex{3}\): Probability Distribution for the Sum of Two Fair Dice

    Sum

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    Probability

    5q1oew26zVcxUUqMuVGbYKDi338F6qCJ1KhNsO1XSsmolQKBeobJrotA_nH0V21c9a6eO9uplWj9IAOLxQyBJOAhLQ6B82afoR3ObpXAsavl3zoZA2ZYjTRRjFDMrjkhZmWU6rw

    2hEyTDFvTJ12LeflfJ8rmBFbem4sB1hJndVscBbrO059Gdy6utvtYRGufketLEqZ5KKfFR11KLOlUzz0zPwfOOUKNnhssd8uOWHV2x751-9n3Y2K8cEj-bOAG_9wGk0kbVZ_b8k

    a5D4bOgwWPR7aeWx0rKNQFpquWfT9_QumGlHaWW6B8IWAlxjMt9QnF0FQtOB9A1wrkYoFnKXlS5csRO7t23jmxWvIR2uumH_W4y-SgTSeTNWkn-Z6vFLZIYI2BcQkoAAK_2QOr0

    pPp5Qni-p7fl-lUPMbYnFx-Ip6m1Qq_uBsSCzSkmrPMC4sJBybkZvrs_GspLeq3964wbQw2g5ueoSMAzx7bvmZ0APYlMhx7l22uM7mIQVqnTPuA8xpXOpKW1nhFng68j4SFseaE

    pirvZm9Syn6jynfpiK1fWG03dWq29oKgdb3NUpzQ5wUo6TmtiKfkgZ7rSrmYe-6VYxCmbIBjNhVsWPJ0Sjv_JOXCep37mQm8rwjreWQLVnv40-MviD3-_Nh05KWXWW0GF1BSaQk

    f5nHaOOceP354nilpmeyA1wGvcD5Z_vet0pCEjQ1PPZBincajw5HM5H9MvKvH3_s69EWa3mwH2Z7CxU_6--goI28bV1CaMfYM2LE6TczBem-9Zt_ElJu9vaK1nR3vzQOZYIoOSU

    pirvZm9Syn6jynfpiK1fWG03dWq29oKgdb3NUpzQ5wUo6TmtiKfkgZ7rSrmYe-6VYxCmbIBjNhVsWPJ0Sjv_JOXCep37mQm8rwjreWQLVnv40-MviD3-_Nh05KWXWW0GF1BSaQk

    pPp5Qni-p7fl-lUPMbYnFx-Ip6m1Qq_uBsSCzSkmrPMC4sJBybkZvrs_GspLeq3964wbQw2g5ueoSMAzx7bvmZ0APYlMhx7l22uM7mIQVqnTPuA8xpXOpKW1nhFng68j4SFseaE

    a5D4bOgwWPR7aeWx0rKNQFpquWfT9_QumGlHaWW6B8IWAlxjMt9QnF0FQtOB9A1wrkYoFnKXlS5csRO7t23jmxWvIR2uumH_W4y-SgTSeTNWkn-Z6vFLZIYI2BcQkoAAK_2QOr0

    2hEyTDFvTJ12LeflfJ8rmBFbem4sB1hJndVscBbrO059Gdy6utvtYRGufketLEqZ5KKfFR11KLOlUzz0zPwfOOUKNnhssd8uOWHV2x751-9n3Y2K8cEj-bOAG_9wGk0kbVZ_b8k

    5q1oew26zVcxUUqMuVGbYKDi338F6qCJ1KhNsO1XSsmolQKBeobJrotA_nH0V21c9a6eO9uplWj9IAOLxQyBJOAhLQ6B82afoR3ObpXAsavl3zoZA2ZYjTRRjFDMrjkhZmWU6rw

    Reduced

    Probability

    x19gKE4gpOfT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mAVPVAUoVM

    VtMgttZ8lyDvupDmO01Vj5mkjWpHuXiKqxEflWqQ6aIBxkXUfRPlfOJQOdmksOoBO7GKrtvHfSCIWueZ9NttIphItwwf19d8vSphfY-HhdC8z6gb_audV1MsyZoDX5uXBMbNj2I

    sLPpj2s6YoQyLBAwROp49LFZi1CBV80J0wabFrRv0TQsYCjhzzwfMp_fAbZYbAKrjViiXwxoNSpNXirBftb4gBiVqiPwqZShDgA5Q7S6jR25faCTxqNDKqrqN1nDk2UV0enoYxs

    x19gKE4gpOfTx8b01beBuSGRy2uMd5oH9545COim5Yit8ZQzfEfd8rngPyT0Rtgshs6_aGmybRzOqBKtr_W-RtwLeh4CH1Ji_MH7KM-LmZGLNsxoHF3aUXSU0m7IOEYSu26yRg4

    Example \(\PageIndex{1}\): Valid and Invalid Probability Distributions

    Are the following valid probability distributions?

    Table \(\PageIndex{4}\)

    Outcome

    A

    B

    C

    D

    E

    Probability

    yJB8pUT2H4SPsedRDMZH2BjXWxNr5sorymAUzuxLQCaQMCAakPExbx18HI4fwEjTtVcqcgDJbvNYcfynmo-0tSnfUYLmBmX7nFrKdQ-DXL0SSSIlc-5BLJkikQyX6TvXx2r0N64

    KGxsOSQ9Hls8QyQfXVS4IY1U9d330eQVbndVEsOeckDVWOhTasTd1GIojJA8KtQrPFpn-Ly3RnYV8R0N8wU1pbmnP1d_5dV0EvIQAsqs6JXXZ0MRpthk7qoL257CY6nBmOfQ4bA

    CaKjULkO-OQQurpnu-zCgLV4R6HOfPmlTAZ8qu6VD2SttXZLMOsRkOG_KHDa7yOTcFZFMubSrbIWDG7W8HC5hX1PMWEZ98SRQ24CMbx-QMFJG0GdxcrRyQAG6tL4yr0r1M6poBs

    MzyjLyQlfuwoIxltgHkkcop288RLXkTpnui6FAHuevubxtbhpKhOTiD_IciHB-W_zuDU1P1gJ4ioHghD-CYbIp1NtnrJ1nLGWkry6-YUgEXXu6jqqzlAkaT1ElxtLV7_UBcSpEo

    MzyjLyQlfuwoIxltgHkkcop288RLXkTpnui6FAHuevubxtbhpKhOTiD_IciHB-W_zuDU1P1gJ4ioHghD-CYbIp1NtnrJ1nLGWkry6-YUgEXXu6jqqzlAkaT1ElxtLV7_UBcSpEo

    This is a valid probability distribution. All the probabilities are between zero and one inclusive and the sum of the probabilities is 1.00.

    Table \(\PageIndex{5}\):

    Outcome

    A

    B

    C

    D

    E

    F

    Probability

    0.45

    0.80

    -0.20

    -0.35

    0.10

    0.20

    This is not a valid probability distribution. The sum of the probabilities is 1.00, but some of the probabilities are not between zero and one, inclusive.

    Table \(\PageIndex{6}\):

    Outcome

    A

    B

    C

    D

    Probability

    0.30

    0.20

    0.40

    0.25

    This is not a valid probability distribution. All of the probabilities are between zero and one, inclusive, but the sum of the probabilities is 1.15 not 1.00.

    Would you buy a lottery ticket with the numbers 1, 2, 3, 4, 5? Do you think that a winning ticket with five consecutive numbers is less likely than a winning ticket with the numbers 2, 14, 18, 23 and 32? If you are playing a slot machine in Las Vegas and you have lost the last 10 times, do you keep playing the same machine because you are “due for a win?” Have you ever wondered how a casino can afford to offer meals and rooms at such cheap rates? Should you play a game of chance at a carnival? How much should an organization charge for raffle tickets for their next fund raiser? All of these questions can be answered using probabilities.

    Definition: Expected Value

    Suppose the there are \(n\) outcomes for a given experiment where the values of the outcomes are given by \(x\) where \(x\) can take on the \(n\) values \(x_{1}, x_{2}, x_{3}, \ldots, x_{n}\). If the probability that each of these values occurs is \(p_{1}, p_{2}, p_{3}, \ldots, p_{n}\), respectively, then the expected value of the outcomes is

    \[E(x)=x_{1} p_{1}+x_{2} p_{2}+x_{3} p_{3}+\ldots+x_{n} p_{n} \label{expectedvalue}\]

    The expected value is the average gain or loss of an event if the experiment is repeated many times.

    We can use the probability distribution table to compute the expected value by multiplying each outcome by the probability of that outcome, then adding up the products.

    Example \(\PageIndex{2}\): Expected Value for Raffle Tickets

    Valley View Elementary is trying to raise money to buy tablets for their classrooms. The PTA sells 2000 raffle tickets at $3 each. First prize is a flat-screen TV worth $500. Second prize is an android tablet worth $375. Third prize is an e-reader worth $200. Five $25 gift certificates will also be awarded. What are the expected winnings for a person who buys one ticket?

    Solution

    We need to write out the probability distribution before we find the expected value.

    A total of eight tickets are winners and the other 1992 tickets are losers.

    Table \(\PageIndex{7}\): Probability Distribution for the Valley View Raffle

    Outcome

    Win $500

    Win $375

    Win $200

    Win $25

    Win $0

    Probability

    \(\dfrac{1}{2000}\)

    \(\dfrac{1}{2000}\)

    \(\dfrac{1}{2000}\)

    \(\dfrac{5}{2000}=\dfrac{1}{400}\)

    \(\dfrac{1992}{2000}=\dfrac{249}{250}\)

    Now use the formula for the expected value (Equation \ref{expectedvalue}).

    \[\begin{aligned}
    E &=\$500\left(\dfrac{1}{2000}\right)+ \$375\left(\dfrac{1}{2000}\right)+ \$200\left(\dfrac{1}{2000}\right)+ \$25\left(\dfrac{1}{400}\right)+ \$0\left(\dfrac{249}{250}\right) \\
    &=0.60
    \end{aligned}\]

    It costs $3 to buy a ticket but we only win an average of $0.60 per ticket. That means the expected winnings per ticket are $0.60 - $3 = -$2.40.

    We would expect to lose an average of $2.40 for each ticket bought. This means that the school will earn an average of $2.40 for each ticket bought for a profit of $2.40 ∙ 2000 = $4800.

    In general, if the expected value of a game is negative, it is not a good idea to play the game, since on average you will lose money. It would be better to play a game with a positive expected value (good luck trying to find one!), although keep in mind that even if the average winnings are positive it could be the case that most people lose money and one very fortunate individual wins a great deal of money. If the expected value of a game is 0, we call it a fair game, since neither side has an advantage.

    Not surprisingly, the expected value for casino games is negative for the player, which is positive for the casino. It must be positive or they would go out of business. Players just need to keep in mind that when they play a game repeatedly, their expected value is negative. That is fine so long as you enjoy playing the game and think it is worth the cost. But it would be wrong to expect to come out ahead.

    Example \(\PageIndex{3}\): Expected Value for Profit from a Purchase

    A real estate investor buys a parcel of land for $150,000. He estimates the probability that he can sell it for $200,000 to be 0.40, the probability that he can sell it for $160,000 to be 0.45 and the probability that he can sell it for $125,000 to be 0.15. What is the expected profit for this purchase?

    Solution

    Find the profit for each situation first. $200,000 – $150,000 = $50,000 profit, $160,000 - $150,000 = $10,000 profit, and $125,000 - $150,000 = -$25,000 profit (loss).

    The probability distribution is

    Table \(\PageIndex{8}\): Probability Distribution for a Real Estate Purchase

    Outcome

    $50,000

    $10,000

    -$25,000

    Probability

    0.40

    0.45

    0.15

    \[\begin{aligned}
    E &=50,000(0.40)+10,000(0.45)+(-25,000)(0.15) \\
    &=\$ 20,750
    \end{aligned}\]

    The expected profit from the purchase is $20,750.

    Example \(\PageIndex{4}\): Expected Value for Life Insurance

    The cost of a $50,000 life insurance policy is $150 per year for a person who is 21-years old. Assume the probability that a person will die at age 21 is 0.001. What is the company’s expected profit if the company sells 10,000 policies to 21-year olds?

    Solution

    There are two outcomes. If the person lives the insurance company makes a profit of $150. The probability that the person lives is 1-0.001=0.999. If the person dies the company takes in $150 and pays out $50,000 for a loss of $49,850.

    Table \(\PageIndex{9}\): Probability Distribution for Life Insurance

    Outcome

    $150

    -$49,850

    Probability

    0.999

    0.001

    The expected value for one policy is:

    \[E(x)=(\$ 150)(0.999)+(-\$ 49,850)(0.001)=\$ 149.80 \nonumber\]

    If the company sells 10,000 policies at a profit of $149.80 each, the total expected profit is ATeYyTbY1iZchhC_IHI9ueLcSAJRLW92tO9BpVeesCU7T1bOlfSzXJ8O_N7m20r8XXyi_RR03lLu9DlYAeF-eMO3ext4GbGZoBTB9NKNpnzGiSYpctLb5Bq4HaQvl8Hq6HSC3E0.

    Gamblers’ Fallacy and Streaks

    Often times a gambler on a losing streak will keep betting in the belief that his/her luck must soon change. Consider flipping a fair coin. Each toss of the coin is independent of all the other tosses, meaning the past outcomes do not influence the probability of getting a heads or tails on the next coin toss. Assume the coin has landed heads up the last eight times. Some people erroneously believe that the coin is more likely to land tails up on the next toss. In reality, the coin still has a 50% chance of landing tails up. It does not matter what happened the last eight tosses.

    Definition: Gambler’s Fallacy

    The gambler’s fallacy is the mistaken belief that a streak of losses makes a person due for a streak of wins and vice versa.

    Example \(\PageIndex{5}\): Streaks

    Toss a fair coin seven times and record which side lands up. For example HHTHTTT would represent getting a head on the first, second, and fourth tosses and a tail on the other tosses. Is a streak of all heads less likely than the other possible outcomes?

    Solution

    As we will see in Section 3.5, there are 128 possible ways to toss a coin seven times. Some of the possibilities are \(HHTTHHT\), \(HTHTHTH\), \(HHHHTTT\), and \(HTTHTTH\). Because tossing coins are independent events and the coin is fair each of these 128 possibilities has the same probability.

    \[P(\mathrm{HHTTHHT})=\dfrac{1}{128} \nonumber\]

    \[P(\mathrm{HTHTHTH})=\dfrac{1}{128} \nonumber\]

    etc.

    This also means that the probability of getting all heads is

    \[P(\mathrm{HHHHHHH})=\dfrac{1}{128}. \nonumber\]

    Getting a streak of all heads has exactly the same probability as any other possible outcome.


    This page titled 5.2: Expected Value is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Maxie Inigo, Jennifer Jameson, Kathryn Kozak, Maya Lanzetta, & Kim Sonier via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.