Expected Value: Definition, Method and Examples

MathPublished

Expected Value: Definition, Method, and Examples

Expected value is the probability-weighted average of the possible values for discrete random variables. To calculate it, multiply each possible value by its probability and add the products together. It describes the long-run average of a random experiment, rather than a guaranteed result in a single trial.

What is expected value?

Expected value, also known as the mean of a random variable or the expectation, is the long-term expected outcome of a random experiment repeated many times. It represents the center of probability distributions and is often denoted as E(X)E(X).


To find the expected value, you calculate a probability weighted average. Instead of weighting every outcome equally, you weight each outcome by its exact probability of occurring.


The expected value does not have to be an actual possible outcome.


For example, when rolling a standard fair six-sided die, the possible outcomes are 1,2,3,4,5,1, 2, 3, 4, 5, and 66. Each outcome has a probability of 16\dfrac{1}{6}. The expected value is 3.53.5, even though rolling a 3.53.5 is physically impossible.

A number line from 1 to 6 with uniform weights at each integer and a fulcrum balancing exactly at 3.5.

Build a value-probability table

A structured value-probability table organizes the data required to calculate expected value. It pairs every possible outcome of an event with its corresponding probability.


To build the table, follow these steps:

  1. List every possible numerical outcome as a value xx.
  2. Determine the probability P(x)P(x) for each outcome.
  3. Verify that the sum of all probabilities exactly equals 11.

For example, consider a game where a spinner has a 12\dfrac{1}{2} chance of landing on 00, a 14\dfrac{1}{4} chance of landing on 22, and a 14\dfrac{1}{4} chance of landing on 66.

A table displaying the outcomes 0, 2, and 6 alongside their respective probabilities of one half, one fourth, and one fourth.

The table format prevents missed outcomes and helps organize the multiplication steps that follow.

Multiply values by probabilities

The next step is multiplying each value xx by its corresponding probability P(x)P(x). This product represents the specific contribution of that outcome to the total expected value.


Using the spinner example from the previous table, create a new column for the expected value probability product x⋅P(x)x \cdot P(x):

  • 0⋅12=00 \cdot \dfrac{1}{2} = 0
  • 2⋅14=24=0.52 \cdot \dfrac{1}{4} = \dfrac{2}{4} = 0.5
  • 6⋅14=64=1.56 \cdot \dfrac{1}{4} = \dfrac{6}{4} = 1.5

These products represent the weighted value of each outcome. The highest product does not always come from the highest possible value; it depends on the balance between the value's size and its likelihood.

Add the weighted values

To find the final expected value, add all the individual probability-weighted products together. The formula for expected value E(X)E(X) is written as:

E(X)=∑[x⋅P(x)]E(X) = \sum [x \cdot P(x)]


This means you take the sum of all the x⋅P(x)x \cdot P(x) values calculated in the previous step. For the spinner example:

E(X)=0+0.5+1.5=2E(X) = 0 + 0.5 + 1.5 = 2


The mean expected outcome of a single spin is 22.

A visual strip divided by probabilities into one half, one fourth, and one fourth, showing corresponding value contributions of 0, 0.5, and 1.5 that sum to an expected value of 2.


The mathematical expectation combines both risk (the probabilities) and reward (the values) into a single predictive number.

Interpret a long-run average

Expected value describes what will happen on average if an experiment is repeated many times, not what will happen in a single trial. It is closely tied to the law of large numbers, which states that as the number of trials increases, the observed average will converge on the theoretical expected value.


If you spin the spinner from the previous example just once, the result will be exactly 00, 22, or 66. You will never spin a 22. However, if you spin the spinner 1,0001{,}000 times and average all the observed results, that average will be extremely close to 22.


Expected value is especially useful for analyzing fair games. If a game costs 55 dollars to play and the expected value of the prize is 55 dollars, the expected net outcome is exactly 00 dollars, making it a mathematically fair game.

Compare expected value and expected frequency

Expected value and expected frequency measure different concepts but use similar probability calculations. Expected value predicts an average numerical outcome, while expected frequency predicts how many times a specific event will occur.

  • Expected value is a weighted average of all outcomes. You multiply each numerical value by its probability and sum the results.
  • Expected frequency is a count. You multiply the probability of one specific event by the total number of trials.

For example, if you flip a fair coin 5050 times, the expected frequency of landing on heads is 12⋅50=25\dfrac{1}{2} \cdot 50 = 25 heads. There is no expected value in a standard coin flip unless you explicitly assign numerical values, such as 11 point for heads and 00 points for tails.

Worked examples

Working through calculations for various scenarios reveals how expected value behaves when outcomes include negative amounts or financial stakes.


Example 1: Calculating the expected value of a die game


Question: A game is played with a standard fair six-sided die. If you roll an even number, you win 44 points. If you roll an odd number, you lose 22 points. What is the expected value of one roll?


Method:

  1. Define the possible outcomes as net amounts. The values are +4+4 and −2-2.
  2. Identify the probability of each outcome. The die has three even numbers and three odd numbers, so P(+4)=36=12P(+4) = \dfrac{3}{6} = \dfrac{1}{2} and P(−2)=36=12P(-2) = \dfrac{3}{6} = \dfrac{1}{2}.
  3. Multiply each value by its probability and add the products. E(X)=(4⋅12)+(−2⋅12)E(X) = \left(4 \cdot \dfrac{1}{2}\right) + \left(-2 \cdot \dfrac{1}{2}\right).
  4. Complete the calculation. E(X)=2+(−1)=1E(X) = 2 + (-1) = 1.

Answer: The expected value is 11 point per roll.


Check: The positive outcome is double the magnitude of the negative outcome, and they are equally likely. The midpoint between +4+4 and −2-2, weighted equally, is exactly +1+1.


Example 2: Analyzing a raffle ticket purchase


Question: A charity sells 500500 raffle tickets for 1010 dollars each. One ticket will be drawn to win a prize of 1,0001{,}000 dollars. What is the expected value of the net gain or loss for buying one ticket?


Method:

  1. Define the possible net outcomes. Winning means receiving 1,0001{,}000 dollars, but the ticket costs 1010 dollars, resulting in a net win of +990+990 dollars. Losing means spending 1010 dollars and receiving nothing, resulting in a net loss of −10-10 dollars.
  2. Determine the probabilities. The probability of winning is P(Win)=1500P(\text{Win}) = \dfrac{1}{500} and the probability of losing is P(Loss)=499500P(\text{Loss}) = \dfrac{499}{500}.
  3. Apply the expected value formula. E(X)=(990⋅1500)+(−10⋅499500)E(X) = \left(990 \cdot \dfrac{1}{500}\right) + \left(-10 \cdot \dfrac{499}{500}\right).
  4. Calculate the products. E(X)=990500−4,990500=−4,000500=−8E(X) = \dfrac{990}{500} - \dfrac{4{,}990}{500} = -\dfrac{4{,}000}{500} = -8.

Answer: The expected value is a net loss of 88 dollars per ticket.


Check: The total revenue is 5,0005{,}000 dollars. The payout is 1,0001{,}000 dollars. The charity keeps 4,0004{,}000 dollars from 500500 tickets. That represents an average retention of 88 dollars per ticket, which perfectly matches a player's average loss of 88 dollars.

A prize-or-loss table showing an outcome of winning net 990 dollars with a 1 in 500 probability, and an outcome of losing net negative 10 dollars with a 499 in 500 probability.

Example 3: Finding an unknown probability


Question: An investment has two outcomes: a profit of 5,0005{,}000 dollars or a loss of 2,0002{,}000 dollars. If the expected value of the investment is exactly 00 dollars, what is the probability of achieving the profit?


Method:

  1. Let pp be the probability of the profit. Since there are only two outcomes, the probability of the loss is 1−p1 - p.
  2. Set up the expected value equation. E(X)=5,000p+(−2,000)(1−p)E(X) = 5{,}000p + (-2{,}000)(1 - p).
  3. Substitute the known expected value. 0=5,000p−2,000+2,000p0 = 5{,}000p - 2{,}000 + 2{,}000p.
  4. Solve for the probability. 0=7,000p−2,0000 = 7{,}000p - 2{,}000, which simplifies to 2,000=7,000p2{,}000 = 7{,}000p, so p=2,0007,000=27p = \dfrac{2{,}000}{7{,}000} = \dfrac{2}{7}.

Answer: The probability of profit is 27\dfrac{2}{7}.


Check: Substitute 27\dfrac{2}{7} back into the formula. 5,000⋅27+(−2,000)⋅57=10,0007−10,0007=05{,}000 \cdot \dfrac{2}{7} + (-2{,}000) \cdot \dfrac{5}{7} = \dfrac{10{,}000}{7} - \dfrac{10{,}000}{7} = 0.

Common mistakes

When working with expected value, watch for errors in assigning values or interpreting the final number.

  • Forgetting the cost to play: In games or financial scenarios, the expected value must consider net gains. Do not use the raw prize amount as the value; subtract the initial cost of entry first.
  • Assuming the expected value is a possible outcome: The expected value is a weighted average. When rolling a standard die, an average of 3.53.5 is correct, even though you cannot roll a physical 3.53.5.
  • Adding probabilities instead of multiplying: Ensure you multiply each individual numerical value by its probability before summing the results.
  • Ignoring probabilities: Adding the values and dividing by the number of outcomes only works if every outcome is equally likely. If probabilities differ, you must calculate the weighted sum.

Frequently asked questions

Can an expected value be negative? Yes. A negative expected value indicates an average loss over the long run. Most commercial lottery games and insurance premiums have negative expected values for the customer.


How does expected value relate to the mean? The expected value of a random variable is identical to its theoretical mean. The symbol μ\mu is often used interchangeably with E(X)E(X).


Does a positive expected value guarantee a profit? No. A positive expected value only indicates that repeating the event many times will likely yield an average profit. A single trial can still result in a severe loss.

Practice questions

Question

A spinner divided into four unequal sectors. Sector 10 has an angle of 180 degrees. Sector 20 has an angle of 90 degrees. Sector 30 has an angle of 90 degrees.

A fair spinner is shown above. What is the expected value of one spin?

  • 1515

  • 2020

  • 17.517.5

  • 1010

Answer:

17.517.5

Question

A game has three possible outcomes: a gain of 88 points with a probability of 0.30.3, a gain of 44 points with a probability of 0.50.5, and a loss of 1010 points with a probability of 0.20.2. What is the expected value of the game?

  • 0.60.6

  • 2.42.4

  • 6.46.4

  • 2.02.0

Answer:

2.42.4

Question

A value-probability table showing outcome values of negative 2, 0, and 5 with corresponding probabilities 0.4, 0.5, and 0.1.

Based on the table, what is the expected value of XX?

  • 1.31.3

  • −0.3-0.3

  • −0.8-0.8

  • 11

Answer:

−0.3-0.3

Question

A carnival game costs 22 dollars to play. If you win, you receive a prize of 1010 dollars. The probability of winning is 18\dfrac{1}{8}. What is the expected net value of playing this game once?

  • A net gain of 1.251.25 dollars

  • A net loss of 0.750.75 dollars

  • A net loss of 11 dollar

  • A net gain of 88 dollars

Answer:

A net loss of 0.750.75 dollars

Question

An insurance company charges an annual premium of 500500 dollars. The policy pays out 10,00010{,}000 dollars in the event of a valid claim. The probability of a customer making a claim is 1%1\%. What is the company's expected net profit per customer?

  • A loss of 9,5009{,}500 dollars

  • A profit of 400400 dollars

  • A profit of 500500 dollars

  • A loss of 100100 dollars

Answer:

A profit of 400400 dollars