Understanding Expected Value

Expected value is a foundational concept in probability theory that predicts the long-run average of a random variable. If you rolled a fair die thousands of times, the average result would converge towards the expected value. This differs from a single outcome; instead, it synthesises all possible results weighted by how likely each is to occur.

The practical power of expected value lies in decision analysis. Insurance companies use it to price premiums fairly. Investors employ it to evaluate portfolio returns. Game designers apply it to balance win rates. Any situation with multiple outcomes and known probabilities benefits from this calculation.

One key insight: expected value can differ from any actual possible outcome. Rolling a die gives an expected value of 3.5, yet you'll never roll exactly 3.5. This apparent paradox resolves when you consider the average of many rolls.

The Expected Value Formula

Expected value combines each possible outcome with its probability of occurrence. The general formula sums the product of each value and its likelihood:

E(X) = x₁ × P(x₁) + x₂ × P(x₂) + … + xₙ × P(xₙ)

or equivalently: E(X) = Σᵢ₌₁ⁿ xᵢ × P(xᵢ)

  • E(X) — The expected value of the random variable X
  • xᵢ — The i-th possible outcome
  • P(xᵢ) — The probability that outcome xᵢ occurs
  • n — The total number of distinct possible outcomes

Worked Example: Fair Dice Roll

Consider rolling a standard six-sided die. Each face (1 through 6) appears with probability 1/6. Substituting into the formula:

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

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

The expected value is 3.5. Over many rolls, your average result approaches this figure. This simple example extends to unfair dice, card draws, or any discrete probability distribution where you know each outcome and its likelihood.

Expected value also handles negative outcomes. If a survey asks participants to rate satisfaction from −2 to +2, and 50% choose −2 while 30% choose +1 and 20% choose 0, the expected value is 0.5×(−2) + 0.3×1 + 0.2×0 = −0.7, indicating net dissatisfaction.

Key Considerations When Using This Calculator

Avoid these common pitfalls when computing expected value.

  1. Probabilities must sum to exactly 1 — The calculator validates that your probability values total precisely 1.0. If they don't, results are mathematically invalid. Forgetting this constraint is the most frequent data-entry error.
  2. Each probability must lie between 0 and 1 — Negative probabilities and values exceeding 1 are impossible. A probability of 0 means an outcome never occurs; 1 means it always does. Check individual entries carefully.
  3. Include all possible mutually exclusive outcomes — Your list must be exhaustive. Missing outcomes or double-counting scenarios introduces bias. For a die, you must include all six faces; for a lottery, list every possible prize tier.
  4. Distinguish between theoretical and empirical probabilities — Theoretical probabilities come from mathematical models (like 1/6 for each die face). Empirical probabilities derive from historical data. Using the wrong type for your context produces unreliable expected values.

Applications Beyond Simple Games

Expected value underpins modern risk management. Insurance underwriters compute expected claim payouts to set premium prices that ensure profitability. Actuaries use decades of historical data to estimate mortality probabilities, then calculate expected insurance liabilities.

In finance, portfolio managers evaluate investments by expected return. A stock with 60% probability of gaining £10 and 40% probability of losing £5 has an expected return of 0.6×10 + 0.4×(−5) = £4 per share. Comparing expected returns across assets guides allocation decisions.

Engineers apply expected value to quality control and reliability. If a component has a 2% failure rate (probability 0.02), and failure costs £500 in warranty claims, the expected cost per unit is 0.02×500 = £10. This informs whether investing in higher-quality components makes financial sense.

Frequently Asked Questions

What does expected value represent?

Expected value is the theoretical average result of a random process repeated infinitely. It's a weighted average where each outcome is weighted by its probability. For instance, in a fair coin flip where heads pays £10 and tails pays £0, the expected value is £5. Over many flips, your average winnings per flip converge to this figure. It's a cornerstone metric for evaluating uncertain situations where you need a single summary number.

Can expected value be negative?

Yes. Expected value is negative when losses outweigh gains in probability-weighted terms. A casino game where you win £5 with probability 0.3 but lose £10 with probability 0.7 has an expected value of 0.3×5 + 0.7×(−10) = −5.5, meaning you lose £5.50 per play on average. This is why casinos profit: their games have negative expected value for players. Recognising negative expected value helps you avoid poor bets.

Why doesn't expected value always match reality?

Expected value is a theoretical average that emerges only after many trials. On a single die roll, you cannot roll 3.5—you get 1, 2, 3, 4, 5, or 6. But roll 1000 times, and the mean approaches 3.5. Similarly, a lottery ticket might have an expected value of −£0.50, yet each ticket costs exactly £1 and returns either £0 or a large prize. Expected value describes long-run behaviour, not individual outcomes.

How is expected value different from probability?

Probability measures how likely a single outcome is (ranging from 0 to 1), while expected value measures the average across all outcomes weighted by probability. Probability answers 'What are the chances this happens?'; expected value answers 'What's the average result?' A 50% chance of rain is a probability; the expected rainfall (0.5×10mm + 0.5×0mm = 5mm) is an expected value.

What constraints apply to the data I input?

All probabilities must be non-negative and sum to exactly 1.0. Each probability must be ≤ 1. You should list all distinct possible outcomes; omitting any outcome or counting one twice corrupts the calculation. The calculator accepts up to 20 outcome–probability pairs, which covers virtually all practical scenarios. The system will warn you if constraints are violated.

How do I calculate expected value for a chi-square contingency table?

In a chi-square test, expected value for a cell equals (row total × column total) ÷ (grand total). For instance, if a row sums to 50, a column to 80, and the table total to 200, that cell's expected value is 50×80÷200 = 20. You compute this for every cell to test whether observed frequencies differ significantly from what random chance alone would predict. This is crucial for hypothesis testing in categorical data analysis.

More statistics calculators (see all)