Expected Value Formula

The expected value of a random variable is the long-run average outcome of a random process, calculated as the weighted sum of each possible outcome times its probability.

The Formula

E(X)=∑x⋅P(x)

Ask yourself: Does each possible outcome carry a value, such as points or dollars, so you need the probability-weighted average per try?

Quick example

Lottery: $1 ticket, 1/1000 chance of $500. EV=11000(499)+9991000(−1)=0.499−0.999=−0.50 You lose ~50¢ per ticket on average.

What this formula means

The expected value of a random variable is the long-run average outcome of a random process, calculated as the weighted sum of each possible outcome times its probability. It represents what you would earn or lose on average per trial if the process were repeated infinitely many times.

Expected value is the balance point of a seesaw: place each outcome on a number line and stack a weight on it proportional to its probability, and the board balances at the expected value. A heavy stack near a small loss and a tiny weight far out at a big prize balance close to the loss, which is why rare jackpots add so little.

Formal view

For a discrete random variable X with outcomes x1,x2,…,xk and probabilities p1,p2,…,pk, the expected value is E[X]=∑i=1kxi pi. For a continuous random variable with density f(x), E[X]=∫−∞∞x f(x) dx.

Worked examples

Example 1

medium
A coin is flipped until heads appears. The number of flips N has P(N=k)=(1/2)k for k=1,2,…. Find E(N).
Show solution

Answer

2

First step

1.
This is geometric with p=0.5.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

hard
You draw cards one at a time without replacement from a standard 52-card deck until you draw an ace. What is the expected number of draws?

Example 3

medium
A game costs $2 to play. You roll a fair die: if you roll a 6, you win $10; otherwise, you win nothing. Find the expected value per game.

Common mistakes

  • Confusing EV with most likely outcome
  • Ignoring EV for emotional decisions
  • Not accounting for all outcomes

Why this formula matters

Expected value is the tool for decisions that repeat: it tells a basketball coach that a 35% three-point shot (1.05 points per attempt) beats a 50% two-point shot (1.00 points), tells a store whether a warranty is priced to profit, and shows why lotteries lose money on average despite their jackpots. Without it, people judge a bet by the size of the prize and ignore how unlikely the prize is.

Frequently asked questions

What is the Expected Value formula?

The expected value of a random variable is the long-run average outcome of a random process, calculated as the weighted sum of each possible outcome times its probability. It represents what you would earn or lose on average per trial if the process were repeated infinitely many times.

How do you use the Expected Value formula?

Use expected value when a question asks about results on average, per play or in the long run, whether a game is fair, or which of two risky options is better over many tries. You need every outcome's value and probability, losses included. If the question asks only how likely one outcome is, use Basic Probability; if it asks how much the results vary around the average, or how risky one try is, use Standard Deviation.

Why is the Expected Value formula important in Statistics?

Expected value is the tool for decisions that repeat: it tells a basketball coach that a 35% three-point shot (1.05 points per attempt) beats a 50% two-point shot (1.00 points), tells a store whether a warranty is priced to profit, and shows why lotteries lose money on average despite their jackpots. Without it, people judge a bet by the size of the prize and ignore how unlikely the prize is.

What do students get wrong about Expected Value?

Students often know a procedure related to expected value but skip the recognition step: Does each possible outcome carry a value, such as points or dollars, so you need the probability-weighted average per try? That leads to a calculation or graph that looks reasonable but answers a different question.

What should I learn before the Expected Value formula?

Before studying the Expected Value formula, you should understand: probability basic, weighted average.