Solved Exercises on Expected Value (Mean) of a Discrete Random Variable

Master expected value calculations: calculating, interpreting, and applying properties through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Fair Die Expected Value
Exercise 1
A fair six-sided die is rolled. Let X be the number shown on the die. Calculate the expected value of X and interpret its meaning.
Definition:

Expected Value (Mean): The weighted average of all possible values of a random variable, weighted by their probabilities.

Formula: E[X] = Σ [x × P(X = x)] for all possible values x

Method for calculating expected value:
  1. List all possible values of X
  2. Find probability for each value
  3. Multiply each value by its probability
  4. Sum all the products
X (value) P(X = x) x × P(X = x) 1 1/6 1 × 1/6 = 1/6 2 1/6 2 × 1/6 = 2/6 3 1/6 3 × 1/6 = 3/6 4 1/6 4 × 1/6 = 4/6 5 1/6 5 × 1/6 = 5/6 6 1/6 6 × 1/6 = 6/6
Step 1: List all possible outcomes

Rolling a die: {1, 2, 3, 4, 5, 6}

Each outcome has probability 1/6

Step 2: Calculate each term x × P(X = x)

1×(1/6) = 1/6, 2×(1/6) = 2/6, 3×(1/6) = 3/6

4×(1/6) = 4/6, 5×(1/6) = 5/6, 6×(1/6) = 6/6

Step 3: Sum all products

E[X] = 1/6 + 2/6 + 3/6 + 4/6 + 5/6 + 6/6

= (1 + 2 + 3 + 4 + 5 + 6)/6 = 21/6 = 3.5

Step 4: Interpret the result

The expected value is 3.5, even though you cannot roll a 3.5 on a die.

This represents the long-run average if the die is rolled many times.

E[X] =
Σ(x·P)
Values:
3.5
E[X] = 3.5
Final answer:

The expected value of rolling a fair six-sided die is 3.5.

This represents the theoretical average outcome over many rolls.

Applied rules:

• Expected Value Formula: E[X] = Σ [x × P(X = x)]

• Linearity: Expected value is a linear operator

• Interpretation: Theoretical long-run average

2 Lottery Ticket Expected Value
Exercise 2
A lottery ticket costs $2. There's a 1/1000 chance to win $500, a 1/500 chance to win $100, and a 1/100 chance to win $10. Otherwise, you win nothing. Calculate the expected net winnings and determine if buying the ticket is a good investment.
Definition:

Net Winnings: Gross winnings minus cost of participation.

Good Investment: If expected value is positive, it's favorable; if negative, it's unfavorable.

Outcome Winnings Net (X) P(X = x) x × P(X = x) Win $500 $500 $498 1/1000 498 × 1/1000 = 0.498 Win $100 $100 $98 1/500 = 2/1000 98 × 2/1000 = 0.196 Win $10 $10 $8 1/100 = 10/1000 8 × 10/1000 = 0.08 No win $0 -$2 1 - (1/1000 + 2/1000 + 10/1000) = 987/1000 -2 × 987/1000 = -1.974
Step 1: Identify all possible outcomes and net winnings

Win $500: Net = $500 - $2 = $498, P = 1/1000

Win $100: Net = $100 - $2 = $98, P = 1/500 = 2/1000

Win $10: Net = $10 - $2 = $8, P = 1/100 = 10/1000

No win: Net = $0 - $2 = -$2, P = 1 - (1+2+10)/1000 = 987/1000

Step 2: Calculate each term x × P(X = x)

498 × (1/1000) = 0.498

98 × (2/1000) = 0.196

8 × (10/1000) = 0.08

(-2) × (987/1000) = -1.974

Step 3: Sum all products

E[X] = 0.498 + 0.196 + 0.08 + (-1.974)

= 0.774 - 1.974 = -1.2

Step 4: Interpret the result

Expected net loss of $1.20 per ticket

This is not a good investment from a financial perspective

E[X] =
0.498 + 0.196 + 0.08 - 1.974
Result:
-$1.20
E[X] = -$1.20 (not a good investment)
Final answer:

The expected net winnings are -$1.20 per ticket.

Buying the ticket is not a good investment as you expect to lose money on average.

Applied rules:

• Net Value Calculation: Gross winnings minus cost

• Expected Value Formula: E[X] = Σ [x × P(X = x)]

• Investment Decision: Positive EV = good, Negative EV = bad

3 Coin Flip Game Expected Value
Exercise 3
A game involves flipping two coins. If both are heads, you win $5. If exactly one is heads, you win $2. If both are tails, you lose $3. Calculate the expected value of playing this game.
Definition:

Sample Space: All possible outcomes of an experiment.

Probability Assignment: Calculating probability for each outcome.

Outcome Coins Winnings (X) P(X = x) x × P(X = x) Both heads HH $5 1/4 5 × 1/4 = 5/4 One head HT or TH $2 2/4 = 1/2 2 × 1/2 = 1 Both tails TT -$3 1/4 -3 × 1/4 = -3/4
Step 1: List all possible outcomes

Sample space: {HH, HT, TH, TT} (4 total outcomes)

All outcomes equally likely with probability 1/4

Step 2: Group outcomes by winnings

Both heads (HH): Win $5, P = 1/4

Exactly one head (HT, TH): Win $2, P = 2/4 = 1/2

Both tails (TT): Lose $3, P = 1/4

Step 3: Calculate each term x × P(X = x)

5 × (1/4) = 5/4 = 1.25

2 × (1/2) = 1

(-3) × (1/4) = -3/4 = -0.75

Step 4: Sum all products

E[X] = 5/4 + 1 + (-3/4) = 5/4 + 4/4 - 3/4 = 6/4 = 1.5

E[X] =
5/4 + 1 - 3/4
Result:
$1.50
E[X] = $1.50 (good game to play)
Final answer:

The expected value of playing this game is $1.50.

This is a favorable game to play as you expect to win money on average.

Applied rules:

• Sample Space Analysis: Enumerate all possible outcomes

• Expected Value Formula: E[X] = Σ [x × P(X = x)]

• Grouping Outcomes: Combine outcomes with same value

Expected Value: Core Concepts
E[X] = \sum_{i} x_i \cdot P(X = x_i)
Expected Value Formula
Expected Value
μ = E[X]
Center of distribution
Linear Property
E[aX + b] = aE[X] + b
Transformations
Key definitions:

Expected Value (Mean): The long-run average value of repetitions of the same experiment.

Weighted Average: Each value weighted by its probability of occurrence.

Population Parameter: Theoretical mean of the probability distribution.

Balance Point: Where the probability distribution would balance if made into a physical object.

Properties of Expected Value: 1) E[c] = c (constant), 2) E[aX + b] = aE[X] + b (linearity)
Interpretation: Theoretical average over infinite repetitions, may not be an actual possible value.
Tip 1: Expected value doesn't have to be one of the possible outcomes (like 3.5 for a die).
Tip 2: For decision-making, positive EV suggests favorable outcome, negative EV suggests unfavorable.
Tip 3: Always check that probabilities sum to 1 before calculating expected value.
Essential formulas:

• Expected Value: E[X] = Σ [x × P(X = x)]

• Linear Transformation: E[aX + b] = aE[X] + b

• Sum of RVs: E[X + Y] = E[X] + E[Y]

• Constant: E[c] = c

Solution: Exercises 4 to 5
4 Sales Commission Expected Value
Exercise 4
A salesperson earns a base salary of $2000 per month plus commission. The probability of making 0, 1, 2, 3, or 4 sales in a month is 0.1, 0.2, 0.4, 0.2, and 0.1 respectively. Each sale earns $500 commission. Calculate the expected monthly income.
Definition:

Total Income: Base salary + (Commission per sale × Number of sales).

Linear Transformation: If Y = aX + b, then E[Y] = aE[X] + b.

Sales (X) Income (Y) P(X = x) x × P(X = x) 0 $2000 0.1 0 × 0.1 = 0 1 $2500 0.2 1 × 0.2 = 0.2 2 $3000 0.4 2 × 0.4 = 0.8 3 $3500 0.2 3 × 0.2 = 0.6 4 $4000 0.1 4 × 0.1 = 0.4
Step 1: Define the relationship

Income Y = $2000 + $500 × Number of sales (X)

So Y = 500X + 2000

Step 2: Calculate expected number of sales

E[X] = Σ [x × P(X = x)]

= 0×0.1 + 1×0.2 + 2×0.4 + 3×0.2 + 4×0.1

= 0 + 0.2 + 0.8 + 0.6 + 0.4 = 2.0

Step 3: Calculate expected income using linear property

E[Y] = E[500X + 2000] = 500E[X] + 2000

= 500 × 2.0 + 2000 = 1000 + 2000 = $3000

Step 4: Verify by direct calculation

E[Y] = Σ [y × P(Y = y)]

= 2000×0.1 + 2500×0.2 + 3000×0.4 + 3500×0.2 + 4000×0.1

= 200 + 500 + 1200 + 700 + 400 = $3000 ✓

E[Y] =
500×E[X] + 2000
Result:
$3000
E[Monthly Income] = $3000
Final answer:

The expected monthly income is $3000.

This includes the base salary of $2000 plus expected commission of $1000.

Applied rules:

• Linear Transformation: E[aX + b] = aE[X] + b

• Expected Value Formula: E[X] = Σ [x × P(X = x)]

• Verification: Alternative calculation confirms result

5 Comparing Investment Options
Exercise 5
Investment A has a 60% chance of returning $10,000 and a 40% chance of returning $5,000. Investment B has a 30% chance of returning $15,000, a 50% chance of returning $8,000, and a 20% chance of returning $2,000. Which investment has the higher expected return?
Definition:

Comparative Analysis: Calculate expected value for each option and compare.

Decision Making: Higher expected value indicates better option under uncertainty.

Investment A Return Probability Product $10,000 0.6 $6,000 $5,000 0.4 $2,000 E[A] = $8,000
Investment B Return Probability Product $15,000 0.3 $4,500 $8,000 0.5 $4,000 $2,000 0.2 $400 E[B] = $8,900
Step 1: Calculate E[A]

E[A] = $10,000 × 0.6 + $5,000 × 0.4

= $6,000 + $2,000 = $8,000

Step 2: Calculate E[B]

E[B] = $15,000 × 0.3 + $8,000 × 0.5 + $2,000 × 0.2

= $4,500 + $4,000 + $400 = $8,900

Step 3: Compare expected returns

E[A] = $8,000, E[B] = $8,900

Since $8,900 > $8,000, Investment B has higher expected return

Step 4: Consider additional factors

While B has higher expected return, also consider risk and variance.

Investment B has wider range of possible returns ($2,000 to $15,000).

E[A] =
$8,000
E[B] =
$8,900
Better:
Investment B
Investment B: E[B] = $8,900 > E[A] = $8,000
Final answer:

Investment B has the higher expected return of $8,900 compared to Investment A's $8,000.

Based on expected value alone, Investment B is the better choice.

Applied rules:

• Expected Value Comparison: Calculate for each option and compare

• Decision Making: Higher expected value indicates better option

• Risk Consideration: Expected value doesn't account for risk/volatility

Expected Value: Comprehensive Summary

Complete Summary: Expected Value (Mean) of Discrete Random Variables

Core Concepts

Expected Value: The weighted average of all possible values, weighted by their probabilities.

Formula: E[X] = Σ [x × P(X = x)] for all possible values x.

Notation: Also denoted as μ (mu) or mean of the distribution.

Interpretation: Theoretical long-run average if experiment is repeated infinitely.

Key Properties

Linearity: E[aX + b] = aE[X] + b for constants a, b.

Constants: E[c] = c where c is any constant.

Sum Rule: E[X + Y] = E[X] + E[Y] for any two random variables.

Doesn't Require Possible Value: Expected value may not be an actual outcome.

Calculation Process

Step 1: List all possible values of X.

Step 2: Find probability for each value P(X = x).

Step 3: Calculate each product x × P(X = x).

Step 4: Sum all products to get E[X].

Problem-Solving Tips

Verify Probabilities: Ensure Σ P(X = x) = 1 before calculating E[X].

Use Linearity: For Y = aX + b, compute E[Y] = aE[X] + b.

Group Values: Combine outcomes with same value to simplify calculations.

Check Reasonableness: Verify result makes sense in context.

Detailed Definitions:

Expected Value (Mean): The theoretical average value of a random variable over many repetitions of an experiment. It's the center of the probability distribution and represents the long-run average if the experiment could be repeated infinitely.

Discrete Random Variable: A variable that can take on a countable number of distinct values, typically integers or specific real numbers.

Probability Mass Function (PMF): The function P(X = x) that gives the probability that the random variable X takes on the value x.

Weighted Average: An average where each value contributes proportionally to its probability of occurrence, rather than equally as in a simple average.

Long-Run Average: The concept that if an experiment is repeated many times, the average of the observed values will approach the expected value.

Systematic Calculation Method:
  1. Identify the Random Variable: What quantity are you measuring?
  2. List All Possible Values: What values can X take?
  3. Determine Probabilities: Find P(X = x) for each possible x.
  4. Verify Distribution: Confirm that probabilities sum to 1.
  5. Calculate Products: Compute x × P(X = x) for each x.
  6. Sum Products: E[X] = Σ [x × P(X = x)].
Memory Tip: Think of expected value as "what you'd expect to happen on average" over many trials.
Common Mistake: Forgetting to multiply each value by its probability, just averaging the values instead.
Efficiency Tip: Use linearity property E[aX + b] = aE[X] + b to simplify calculations.
Application Tip: In decision making, positive expected value suggests favorable outcome, negative suggests unfavorable.
Key Applications: Risk assessment, investment decisions, game theory, insurance, quality control.
Limitations: Expected value doesn't account for risk, variability, or extreme outcomes - only the average.
Critical Formulas to Remember:

• Basic Formula: E[X] = Σ [x × P(X = x)]

• Linear Transformation: E[aX + b] = aE[X] + b

• Sum of Variables: E[X + Y] = E[X] + E[Y]

• Constant: E[c] = c

Questions & Answers

Question: Why is the expected value of a die roll 3.5 when you can never actually roll a 3.5?

Answer: This is a common source of confusion! The expected value is not a prediction for a single roll, but rather the theoretical average over many rolls.

Understanding the concept:

  • If you roll a die 6 times, you might get {1, 2, 3, 4, 5, 6}, average = 3.5
  • If you roll it 600 times, the average of all outcomes will approach 3.5
  • It's the "balance point" of the probability distribution

The expected value represents what would happen on average if the experiment could be repeated infinitely many times. It's a measure of the center of the distribution, not a possible outcome.

Think of it like the center of gravity of the distribution - where it would balance if made into a physical object.

Question: In Exercise 5, why did you say Investment B is better just because it has a higher expected return? What about risk?

Answer: Excellent observation! You're absolutely right that expected value alone doesn't tell the whole story.

Limitations of Expected Value:

  • Expected value only measures the center, not the spread or variability
  • Investment B has wider range ($2,000 to $15,000) than A ($5,000 to $10,000)
  • Higher variability means higher risk

Additional Considerations:

For complete analysis, you'd also want to consider variance/standard deviation, potential losses, and your risk tolerance. Expected value maximization is optimal for risk-neutral investors, but risk-averse individuals might prefer lower expected return with less variability.

However, among investments with similar risk levels, higher expected value is generally preferred.

Question: Why does E[aX + b] = aE[X] + b? Can you explain the math behind this property?

Answer: This is called the linearity property of expectation, and it's quite elegant:

Mathematical proof:

Let Y = aX + b, then:

E[Y] = Σ [y × P(Y = y)]

But since Y = aX + b, when X = x, then Y = ax + b

So: E[aX + b] = Σ [(ax + b) × P(X = x)]

= Σ [ax × P(X = x)] + Σ [b × P(X = x)]

= a × Σ [x × P(X = x)] + b × Σ P(X = x)

= a × E[X] + b × 1 (since probabilities sum to 1)

= aE[X] + b

This property is extremely useful because it allows us to easily find the expected value of transformed random variables without recalculating the entire distribution.