How to Find the Expected Value of a Random Variable?

How to Find the Expected Value of a Random Variable?

TL;DR: Expected value is the long-run average outcome of a random variable, computed as the sum of each possible value times its probability. It’s the single most useful summary statistic of a probability distribution, once you can compute it, you can compare games, value investments, and reason about uncertainty.

Key takeaways:

  • For a discrete random variable X: E[X]=∑x⋅P(X=x).
  • Expected value is a weighted average, values that are more likely count more.
  • The expected value doesn’t have to be a possible outcome (a fair die’s expected value is 3.5).
  • For continuous variables, replace the sum with an integral: E[X]=∫x⋅f(x)dx.
  • Expected value is linear: E[aX+b]=aE[X]+b, and E[X+Y]=E[X]+E[Y] even when X and Y aren’t independent.

A step-by-step guide to the expected value of a random variable

  • EV: the expected value
  • P(X): the probability of the occurrence of the event
  • n: the number of repetitions of the event
  • EV: the expected value
  • P(Xi): the probability of the event
  • Xi: the event

The Expected Value of a Random Variable, Example 1:

To find the expected value, use this formula: EV=∑P(Xi)×Xi

EV=0(16)+1(16)+2(16)+3(16)

=0+16+26+36 =0+1+2+36=66=1

EV=1

The Expected Value of a Random Variable, Example 2:

When you roll a die, you get paid $2 for an odd number and $1 for an even number. Find the expected value of money you get for one roll of the die.

The sample space of the experiment is:(1,2,3,4,5,6)

First, we draw the table of the probability distribution for a single roll of a die and the amount paid for each result.

Then, to find the expected value, use this formula: EV=∑P(Xi)×Xi

EV=2(16)+1(16)+2(16)+1(16)+2(16)+1(16)

=26+16+26+16+26+16 =2+1+2+1+2+16=96

EV=96=1.5

Exercises for Expected Value of a Random Variable

Try these 10 questions one at a time. After each answer you will see a step-by-step explanation, so you can learn from every question, right or wrong.

Question 1 of 10

1. What is the expected value of rolling a fair six-sided die?

  1. 3
  2. 3.5
  3. 4
  4. 6
Show the answer and explanation

Answer: B. 3.5

Expected value = sum of (each value × its probability). Each face has probability 1/6.

E = (1 + 2 + 3 + 4 + 5 + 6) × 1/6 = 21/6.

21 ÷ 6 = 3.5. The expected value does not have to be a possible outcome.

2. A game pays $10 with probability 0.2 and $0 otherwise. What is the expected payout in dollars?

Type your answer.

Show the answer and explanation

Answer: $2

E = 10 × 0.2 + 0 × 0.8.

10 × 0.2 = 2, and 0 × 0.8 = 0.

So the expected payout is $2 per game.

3. X takes values 1, 2, 3 with probabilities 0.5, 0.3, 0.2. What is E(X)?

  1. 1.7
  2. 2
  3. 1.5
  4. 6
Show the answer and explanation

Answer: A. 1.7

Multiply each value by its probability: 1 × 0.5 = 0.5, 2 × 0.3 = 0.6, 3 × 0.2 = 0.6.

Add them: 0.5 + 0.6 + 0.6 = 1.7.

So E(X) = 1.7.

4. A coin is flipped. You win $4 for heads and lose $2 for tails. What is the expected value in dollars?

Type your answer.

Show the answer and explanation

Answer: $1

Each outcome has probability 1/2.

E = 4 × ½ + (−2) × ½ = 2 − 1.

E = $1, so on average you gain $1 per flip.

5. What must the probabilities in a probability distribution add up to?

  1. 0
  2. 1
  3. 100
  4. It depends
Show the answer and explanation

Answer: B. 1

Every possible outcome is listed in a distribution.

Together, they cover everything that can happen, so their probabilities add to 1.

If they do not add to 1, something is missing or wrong.

6. X takes values 0, 10, 20 with probabilities 0.5, 0.3, 0.2. What is E(X)?

Type your answer.

Show the answer and explanation

Answer: 7

0 × 0.5 = 0, 10 × 0.3 = 3, 20 × 0.2 = 4.

Add: 0 + 3 + 4 = 7.

So E(X) = 7. Over many trials, the average result would settle near 7.

7. A raffle ticket costs $5. There is a 1/100 chance to win $200. What is the expected net gain per ticket?

  1. −$3
  2. $2
  3. −$5
  4. $195
Show the answer and explanation

Answer: A. −$3

Expected winnings: 200 × 1/100 = $2.

Subtract the ticket price: 2 − 5 = −3.

On average you lose $3 per ticket, which is how raffles raise money.

8. Find the missing probability: P(X=1) = 0.4, P(X=2) = 0.35, P(X=3) = ? Give a decimal.

Type your answer.

Show the answer and explanation

Answer: 0.25

All probabilities must add up to 1.

0.4 + 0.35 = 0.75.

1 − 0.75 = 0.25. So P(X = 3) = 0.25, and the three probabilities now add to 1.

9. A game has an expected value of $0 for the player. What is this called?

  1. A winning game
  2. A losing game
  3. A fair game
  4. An impossible game
Show the answer and explanation

Answer: C. A fair game

When the expected value is 0, on average the player neither wins nor loses.

Such a game is called fair.

A negative expected value means the player loses money over time.

10. You roll a die and win the number shown in dollars, but each roll costs $4. What is your expected net gain per roll, in dollars?

Type your answer.

Show the answer and explanation

Answer: −$0.50

Expected winnings from a die: 3.5 dollars.

Subtract the $4 cost: 3.5 − 4 = −0.5.

On average you lose 50 cents per roll.

Original price was: $109.99.Current price is: $54.99.
Original price was: $109.99.Current price is: $54.99.

Frequently Asked Questions

How do you find the expected value of a discrete random variable?

Multiply each possible value by its probability, then add the results: E[X] = Σ x · P(X = x). If X takes the values 1, 2 and 3 with probabilities 0.2, 0.5 and 0.3, then E[X] = 1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1.0 + 0.9 = 2.1. First check that the probabilities add up to 1.

How do you find the expected value of a continuous random variable?

Replace the sum with an integral: E[X] = ∫ x · f(x) dx over the whole range, where f(x) is the probability density function. For X uniform on [0, 4], f(x) = 1/4, so E[X] = ∫₀⁴ x/4 dx = 16/8 = 2. That matches the midpoint, as you would expect for a uniform distribution.

How do you find the expected value of two random variables?

For a sum, just add the expected values: E[X + Y] = E[X] + E[Y]. This works even if X and Y are not independent. Rolling two fair dice, each die has an expected value of 3.5, so the expected total is 3.5 + 3.5 = 7. Constants work the same way: E[2X + 5] = 2E[X] + 5.

How do you find the expected value of two random variables multiplied?

If X and Y are independent, E[XY] = E[X] · E[Y]. For two fair dice, the expected product is 3.5 × 3.5 = 12.25. If they are not independent, this shortcut fails, and you must use the joint distribution: multiply each pair of values by the probability of that pair and add them all up.

How do you find the expected value of a binomial random variable?

For a binomial random variable with n trials and success probability p, the expected value is E[X] = np. If a student guesses on 20 multiple-choice questions with 4 choices each, p = 1/4, so the expected number correct is 20 × 1/4 = 5. You get the same answer by adding the expected value of each trial.

How do you compute the expected value and variance of a random variable?

Find E[X] first, then use Var(X) = E[X²] − (E[X])². For one fair die, E[X] = 3.5 and E[X²] = (1 + 4 + 9 + 16 + 25 + 36)/6 = 91/6. So Var(X) = 91/6 − 12.25 = 35/12 ≈ 2.92, and the standard deviation is about 1.71.

Related Lessons You May Like

For a friendly introduction to probability and statistics that builds the intuition before the formulas, Pre-Algebra for Beginners covers the prerequisites and includes a probability chapter. For deeper distributions, expected value, and combinatorics, Algebra II for Beginners goes further.

Related to This Article

What people say about "How to Find the Expected Value of a Random Variable"?

No one replied yet.

Leave a Reply