Expected Value Formula

The expected value of a random variable is the probability-weighted average of all possible outcomes — the long-run mean over many repetitions.

The Formula

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

Ask yourself: Am I weighting each outcome by its probability and summing to get a long-run average?

Quick example

Fair die: E(X)=(1+2+3+4+5+6)/6=3.5 You never roll 3.5, but it's the average.

Notation

E(X) or μX denotes the expected value of random variable X

What this formula means

The expected value of a random variable is the probability-weighted average of all possible outcomes — the long-run mean over many repetitions.

The expected value is the fair price of a bet: the ticket price at which neither the player nor the house comes out ahead over many plays. Pay more than the expected value and you lose in the long run; pay less and you win. The picture says nothing about one play, which never pays exactly its average.

Formal view

E(X)=∑ixi P(X=xi) (discrete); E(X)=∫−∞∞x f(x) dx (continuous)

Worked examples

Example 1

easy
A fair six-sided die is rolled. What is the expected value of the outcome?
Show solution

Answer

E(X)=3.5

First step

1.
A fair die has six equally likely outcomes {1,2,3,4,5,6}, each with probability 16.

Full solution

  1. 2.
    Apply the expected value formula: E(X)=∑xi⋅P(xi)=16(1+2+3+4+5+6)
  2. 3.
    Compute the sum: 16×21=216=3.5
The expected value is the long-run average outcome. Note that 3.5 is not a possible outcome of a single roll, but it is the average over many rolls.

Example 2

medium
A game costs $5 to play. You win $20 with probability 0.2 and $0 otherwise. What is the expected profit?

Example 3

medium
Flip 3 fair coins. Let X be the number of heads. Find E(X).

Common mistakes

  • Averaging the outcome values without weighting by probability — multiply each value by its chance first.
  • Letting the probabilities not sum to 1 — a complete set of outcomes must have probabilities adding to 1.
  • Treating E(X) as the result of one trial — it is the long-run average, which need not be an achievable single outcome.

Why this formula matters

Expected value puts risky choices on one scale. A $2 raffle ticket with a 1-in-500 chance at $500 has expected winnings of $1, so each ticket loses $1 on average. Casinos, insurers and game designers set prices with this calculation; looking only at the size of the prize, and not its probability, is how people overpay for long shots.

Frequently asked questions

What is the Expected Value formula?

The expected value of a random variable is the probability-weighted average of all possible outcomes — the long-run mean over many repetitions.

How do you use the Expected Value formula?

Use expected value when outcomes come with probabilities and payoffs and the question asks about the long run, the average per play, whether a game is fair, or which option pays more on average. Lay out a table of outcomes, values and probabilities, then multiply and add. If the question asks which single outcome is most likely, give the outcome with the largest probability. If you have observed data values with no probabilities attached, take their ordinary mean.

What do the symbols mean in the Expected Value formula?

E(X) or μX denotes the expected value of random variable X

Why is the Expected Value formula important in Math?

Expected value puts risky choices on one scale. A $2 raffle ticket with a 1-in-500 chance at $500 has expected winnings of $1, so each ticket loses $1 on average. Casinos, insurers and game designers set prices with this calculation; looking only at the size of the prize, and not its probability, is how people overpay for long shots.

What do students get wrong about Expected Value?

The procedure for expected value is the easy part; the trap is averaging the outcome values without weighting by probability. Asking "Am I weighting each outcome by its probability and summing to get a long-run average?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Expected Value formula?

Before studying the Expected Value formula, you should understand: probability, mean.