The Expected Value Formula: A Complete Breakdown

The expected value formula is the heart of probability theory. It tells you the average outcome of a random event if you repeated it many times. Whether you're rolling dice, investing, or making a bet, this formula gives you a single number that summarizes what to expect. Let's break it down piece by piece.

The Formula

The expected value of a random variable X is written as E[X] and calculated using:

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

Where:

  • xᵢ = each possible outcome value
  • P(xᵢ) = the probability of that outcome
  • Σ means sum over all possible outcomes

The result is a weighted average: each outcome is multiplied by how likely it is, then added together. Probabilities must sum to 1 (or 100%), otherwise the calculation is invalid. If you're unsure how to apply this step by step, see our guide on calculating expected value.

Breaking Down Each Part

xᵢ – The Outcomes

An outcome is any possible result of an experiment or event. For a dice roll, outcomes are 1 through 6. For an investment, outcomes might be different return amounts. Each outcome must be a number (or a payoff value) so we can compute a meaningful average.

P(xᵢ) – The Probability

Probability measures how likely an outcome is, from 0 (impossible) to 1 (certain). For a fair coin, heads has probability 0.5. Probabilities come from data, assumptions, or known distributions. They must be positive and sum to 1. If they don't, you've made a mistake – check our page on interpreting expected value to learn how positive, negative, or zero results change your decisions.

The Summation (Σ)

The sigma symbol means add up the products for every possible outcome. If there are 6 dice outcomes, you compute 1 × 1/6 + 2 × 1/6 + ... + 6 × 1/6. The sum includes all possibilities, no skipping. If a probability distribution is continuous, the sum becomes an integral, but the idea is the same.

Why the Formula Works (Intuition)

Imagine flipping a coin 100 times, winning $1 for heads and $0 for tails. In 50 flips you win $1, in 50 you win $0. Total winnings = $50, average per flip = $0.50. That's exactly the expected value: (1 × 0.5) + (0 × 0.5) = 0.5. The formula simulates the long-run average without actually performing thousands of trials.

The units matter: if outcomes are in dollars, expected value is in dollars. If outcomes are points, expected value is in points. The formula literally computes a mean, but weighted by probability instead of by frequency. For a deeper definition and examples, read What is Expected Value?.

Historical Roots

The concept emerged in the 17th century. Mathematicians Blaise Pascal and Pierre de Fermat exchanged letters about gambling problems, leading to the idea of expected value. Later, Daniel Bernoulli refined it to account for human preferences (utility). The formula we use today was formalized by Jacob Bernoulli in Ars Conjectandi. The expected value became the foundation of insurance, finance, and modern statistics.

Practical Implications

Decision-Making

Expected value helps you choose the best option among uncertain outcomes. If one investment has E[X] = $200 and another has E[X] = $150, you'd pick the first (assuming equal risk). In casinos, games have negative expected value for players, meaning the house always wins over time. Understanding this can prevent costly mistakes.

Risk and Reward

Expected value alone ignores variability. Two investments can have the same expected value but different risks – one might be stable and the other volatile. That's why tools like the Expected Value Calculator also compute variance and standard deviation. Use expected value as your anchor, but always check the spread.

Edge Cases and Limitations

Infinite Expected Value

Some probability distributions, like the Cauchy distribution, have no defined expected value because the sum diverges. In practice, this happens if extremely large outcomes have very small but non-zero probabilities – the average never stabilizes. Most real-world scenarios avoid this, but be aware when dealing with heavy-tailed data.

Non-Numeric Outcomes

The formula requires numeric outcomes. If outcomes are categories (e.g., win/lose), you must assign numbers (e.g., 1 and 0). For “win” vs “lose” with different payoffs, the assigned numbers are the payoffs. If the outcome is not a number, expected value isn't directly applicable.

When Probabilities Change

The expected value formula assumes fixed probabilities. If probabilities change over time (e.g., a skill that improves), you need a dynamic model. But for a single, unchanging situation, the formula is reliable.

Visualizing Expected Value

The Expected Value Calculator can show you a probability distribution chart. The expected value is the balance point of that distribution. If the distribution is symmetric, expected value equals the median. For skewed distributions, the mean shifts toward the tail. Always visualize your data to avoid misinterpretation.

Conclusion

The expected value formula E[X] = Σ xᵢ P(xᵢ) is simple but powerful. It converts uncertainty into a single number you can use for decisions. But remember: probability is a guide, not a guarantee. Use the formula with caution and always consider the full picture, including risk. For common questions, browse the Expected Value FAQ.

Try the free Expected Value Calculator ⬆

Get your Expected Value result instantly — no signup, no clutter.

Open the Expected Value Calculator

Contact Us