Discord

INAIO Guide Stage 1 9Random Variables and Expected Value

9.2 Expected value

Compute expected value as a probability-weighted average and interpret it in the units of the outcome.

When outcomes differ, an ordinary average gives each outcome equal weight. Expected value weights each outcome by how likely it is. This lets you compare games, costs, and decisions that may have different outcomes each time.

This is intermediate probability. Work through OpenStax's expected-value examples after learning discrete distributions. The calculation extends the weighted averages and finite sums from Module 1.4: probability supplies each outcome's weight.

A basic idea: weight each possible result

If XX takes values x1,…,xmx_1,\ldots,x_m with probabilities p1,…,pmp_1,\ldots,p_m, its expectation is

E[X]=∑i=1mxipi.E[X]=\sum_{i=1}^{m}x_i p_i.

The probabilities must add to one. Expected value has the same units as XX: rupees for a payoff, minutes for travel time. It describes a long-run average under repeated comparable trials; it need not be a value that can occur in one trial.

A wide 75% loss block at minus two rupees and a narrow 25% win block at six rupees contribute minus 1.5 and plus 1.5 rupees, balancing at zero expected payoff.A wide 75% loss block at minus two rupees and a narrow 25% win block at six rupees contribute minus 1.5 and plus 1.5 rupees, balancing at zero expected payoff.
Weight each payoff by its probability before adding.

A quick tour of properties

Adding a fixed amount cc to every outcome adds cc to the expectation: E[X+c]=E[X]+cE[X+c]=E[X]+c. Scaling every outcome by aa gives E[aX]=aE[X]E[aX]=aE[X]. For a cost CC and reward RR, define net payoff N=R−CN=R-C before calculating. Keeping gross and net values separate avoids a common error.

Application 1: a paid game

A game costs ₹22. With probability 0.250.25 it pays ₹88; otherwise it pays nothing. What is the expected net payoff?

  1. A win nets 8−2=68-2=6 rupees; a loss nets −2-2 rupees.
  2. E[N]=0.25(6)+0.75(−2)=1.5−1.5=0E[N]=0.25(6)+0.75(-2)=1.5-1.5=0 rupees.
  3. Equivalently, expected reward is 0.25(8)=20.25(8)=2 rupees, then subtract the ₹22 fee.

A zero expectation does not mean every play pays zero.

Application 2: travel time

A route takes 2020 minutes on a clear day with probability 0.70.7 and 5050 minutes in congestion with probability 0.30.3. Its expected travel time is

E[T]=20(0.7)+50(0.3)=29 minutes.E[T]=20(0.7)+50(0.3)=29\text{ minutes}.

No actual trip lasts 29 minutes in this two-outcome model. The number is useful for comparing this route with alternatives over many trips.

Resources

SourceTitleWhy read it
OpenStaxMean or expected value and standard deviationPractise probability-weighted averages.

Finished this module? Mark it done.

Comments

Stuck on something, spotted a mistake, or found a resource that helped you? Tell us below.

Loading comments