Probability Random Variables Finance & Decision Theory 28 min read Updated August 17, 2026
BY: Statistics Fundamentals Team
Reviewed By: Minsa A (Senior Statistics Editor)

Expected Value Formula E(X) = Σ x·P(x): Definition, Step-by-Step Examples & Calculator

The expected value formula is E(X) = Σ x·P(x) — the probability-weighted average of all possible outcomes of a random variable. Multiply each outcome by its probability, then sum the products. Roll a fair six-sided die: E(X) = 1(⅙) + 2(⅙) + 3(⅙) + 4(⅙) + 5(⅙) + 6(⅙) = 3.5 — the long-run average across thousands of rolls, even though 3.5 never appears on a single throw.

This guide covers: the complete formula with every variable defined, E(X) notation and symbols, four step-by-step worked examples (gambling, finance, coin flips), all rules of expectation including the constant and product rules, an interactive calculator, the Law of Large Numbers, a full formula cheat sheet, and a distribution reference table.

Jump to Free Calculator Formula Cheat Sheet Standalone EV Calculator
What You'll Learn
  • ✓ The expected value formula E(X) = Σ x·P(x) — definition, notation & every symbol explained
  • ✓ E(X) symbol, notation variants (E[X], μ, ⟨X⟩) and when to use each
  • ✓ How to build a probability distribution table and compute EV step by step
  • ✓ Worked examples: die rolls, coin flips, roulette, business investment decisions
  • ✓ All rules of expectation: linearity, constant rule, product rule, transformation rule
  • ✓ Positive vs negative expected value — what each means in real decisions
  • ✓ Why the Law of Large Numbers bridges EV and real-world averages
  • ✓ Interactive EV calculator + formula cheat sheet + distribution reference table

What Is Expected Value? (Definition)

Expected Value Definition

Expected value is the probability-weighted average of all possible outcomes of a random variable. Written E(X) or μ, it represents the theoretical long-run mean you would observe if the experiment were repeated many times under identical conditions. The formula is E(X) = Σ x·P(x): multiply each outcome by its probability, then add all products.

Definition — Expected Value E(X)
The expected value of a random variable X, written E(X) or μ, is the probability-weighted average of all possible outcomes. It represents the theoretical long-run mean you would observe if the experiment were repeated an infinite number of times under identical conditions.
E(X) = Σ x · P(x)

The plain-English translation: multiply each possible outcome by the probability that outcome occurs, then add all those products together. The result is a single number — the "center of gravity" of the entire probability distribution.

Consider a fair six-sided die. The outcomes are 1 through 6, each with probability 1/6. Multiplying and summing: E(X) = 1(1/6) + 2(1/6) + 3(1/6) + 4(1/6) + 5(1/6) + 6(1/6) = 21/6 = 3.5. Roll that die 10,000 times and record every result; the average of all 10,000 numbers will be extremely close to 3.5.

Expected Value Symbol and Notation: E(X), μ, E[X], ⟨X⟩

Expected value is written using four equivalent notations. All four mean the same thing — the probability-weighted average of all outcomes of random variable X:

E(X) Most common in statistics textbooks. "E" stands for "Expectation."
E[X] Square-bracket variant — common in probability theory & machine learning.
μ Greek letter mu — standard notation for population mean in statistics.
⟨X⟩ Angle-bracket notation — common in physics and quantum mechanics.

When you see expressions like E(2X + 3) or E[X + Y], you apply the rules of expectation below. The letter E in E(X) stands for "expectation" — the historical term dating to Christiaan Huygens' 1657 treatise on probability, De ratiociniis in ludo aleæ. The notation E(X) was standardised by W.A. Whitworth in 1901 and has been universal in English-language mathematics since.

⚡ Quick Reference — Expected Value Key Facts
  • Notation: E(X), E[X], μ (mu), or ⟨X⟩ — all identical in meaning
  • Formula (discrete): E(X) = Σ x·P(x) — sum of (outcome × probability)
  • Formula (continuous): E(X) = ∫ x · f(x) dx — integral replaces summation
  • Probabilities must sum to 1: Σ P(x) = 1 — this is non-negotiable
  • Positive EV: The activity gains value on average over repeated trials
  • Negative EV: The activity loses value on average — stay away or price it accordingly
  • EV = 0: A "fair game" — neither side has a systematic advantage
  • E(constant) = constant: E(c) = c — a fixed number has no randomness
3.5
EV of a fair die roll
0.5
EV of a fair coin (H=1, T=0)
−$0.053
EV per $1 on American roulette
1.5
EV of heads in 3 coin flips

The Expected Value Formula Explained

Discrete Random Variables: E(X) = Σ x·P(x)

Expected Value Formula — Discrete Random Variable
E(X) = Σ x · P(x)
Multiply each individual outcome (x) by its probability of occurring P(x), then add all those products together. The result is the long-run average value of X.
E(X) = expected value (also written μ)
Σ = "sum of" — add every term
x = a specific outcome value
P(x) = probability that outcome x occurs

The summation symbol Σ (sigma) tells you to repeat the multiplication for every possible value of x and then add the results. If a random variable can take five different values, you get five terms that you add together. If it can take 100 values, you get 100 terms. The formula scales to any number of outcomes.

Continuous Random Variables: E(X) = ∫ x · f(x) dx

Expected Value Formula — Continuous Random Variable
E(X) = ∫ x · f(x) dx
When outcomes form a continuous range (like height or temperature), the sum becomes an integral. Multiply outcome x by the probability density f(x) and integrate over all possible values.
= integral (continuous analogue of Σ)
f(x) = probability density function at x
dx = infinitesimally small x interval

The expected value integral E(X) = ∫−∞+∞ x · f(x) dx is the continuous analogue of the discrete sum. Where discrete EV uses a probability mass function P(x), continuous EV uses a probability density function f(x). The integral replaces the summation Σ, and the calculus machinery handles the infinite range of possible values. Common continuous distributions and their expected values appear in the distribution table below.

⚠️
Critical Rule: Probabilities Must Sum to 1

Before computing any expected value, verify that Σ P(x) = 1.0. If your probabilities add to 0.9 or 1.1, the distribution is invalid and your EV calculation will be wrong. This is the single most common error on statistics exams and in real business models.

Expected Value Across Different Contexts

Context Discrete Formula What x Represents What P(x) Represents
Statistics / Probability Theory E(X) = Σ x·P(x) Numeric outcome of a random variable Probability mass at that outcome
Finance / Investment Analysis EV = Σ Rᵢ·Pᵢ Return or payoff in dollars Probability that scenario i occurs
Games of Chance / Sports Betting EV = (P·Win) − (1−P)·Stake Net gain/loss per play (in dollars) Probability of winning
Insurance / Actuarial Science E(Loss) = Σ Lᵢ·Pᵢ Claim amount (in dollars) Probability that claim occurs

How to Calculate Expected Value: 4 Steps

Step 1

List All Outcomes

x₁, x₂, x₃, …, xₙ

Write down every value the random variable X can take. Do not skip or combine outcomes — each unique payoff gets its own row.

Step 2

Assign Probabilities

P(x₁), P(x₂), …, P(xₙ)

Record the probability for each outcome. Check that Σ P(x) = 1 before proceeding. This is non-negotiable.

Step 3

Multiply Each Row

x · P(x) per row

For each outcome, compute the product x × P(x). This gives you the weighted contribution of that outcome to the total average.

Step 4

Sum All Products

E(X) = Σ x·P(x)

Add every x·P(x) value from Step 3. The total is the expected value. Label it E(X) or μ.

Worked Examples

Example 1 — The Classic: Expected Value of a Die Roll

Worked Example 1 — Academics

What is the expected value of one roll of a fair six-sided die?

Outcome (x)Probability P(x)Product x · P(x)
11/6 ≈ 0.16671 × 0.1667 = 0.1667
21/6 ≈ 0.16672 × 0.1667 = 0.3333
31/6 ≈ 0.16673 × 0.1667 = 0.5000
41/6 ≈ 0.16674 × 0.1667 = 0.6667
51/6 ≈ 0.16675 × 0.1667 = 0.8333
61/6 ≈ 0.16676 × 0.1667 = 1.0000
TOTAL6/6 = 1.0000E(X) = 3.5000

✓ E(X) = 3.5. This is a theoretical average — you can never roll a 3.5 on a single turn. But if you roll 10,000 times, the average of all your results will converge to 3.5.

Example 2 — Coin Flip: Expected Heads in Three Tosses

Worked Example 2 — Academics

You flip a fair coin three times. What is the expected number of heads?

Heads (x)Ways (combinations)Probability P(x)x · P(x)
0TTT → 1 way1/8 = 0.1250 × 0.125 = 0.000
1HTT, THT, TTH → 3 ways3/8 = 0.3751 × 0.375 = 0.375
2HHT, HTH, THH → 3 ways3/8 = 0.3752 × 0.375 = 0.750
3HHH → 1 way1/8 = 0.1253 × 0.125 = 0.375
TOTAL8 outcomes1.000E(X) = 1.500

✓ E(X) = 1.5 heads per 3-flip session. Confirms the binomial shortcut: E(X) = n·p = 3 × 0.5 = 1.5. See probability trees for a visual breakdown of all 8 outcomes.

Example 3 — Gambling: American Roulette & Betting EV Formula

Worked Example 3 — Games of Chance

You bet $1 on a single number in American roulette. What is your expected value?

OutcomeNet Gain/Loss (x)Probability P(x)x · P(x)
Win (your number hits)+$351/38 ≈ 0.02632+$35 × 0.02632 = +$0.9211
Lose (any other number)−$137/38 ≈ 0.97368−$1 × 0.97368 = −$0.9737
TOTAL1.0000E(X) = −$0.0526

✓ E(X) = −$0.0526 per $1 wagered. The house edge: for every dollar bet, the player loses 5.26 cents on average over time.

Betting EV Formula — Decimal Odds

EV = P · (Decimal Odds − 1) − (1 − P)

For sports betting with decimal odds, the expected value formula is: EV = P × (d − 1) − (1 − P), where P is your estimated probability of winning and d is the decimal odds. If the bookmaker offers d = 2.50 (even money at 40% implied probability) but you believe the true win probability is 45%: EV = 0.45 × (2.50 − 1) − (1 − 0.45) = 0.675 − 0.55 = +0.125. A positive EV bet means value in your favour over the long run. See probability rules for the foundations behind this calculation.

Example 4 — Business: Product Launch Decision

Worked Example 4 — Finance / Business

Should an entrepreneur launch a new product? Three market scenarios are possible.

ScenarioPayoff (x)Probability P(x)x · P(x)
Strong demand+$200,0000.25+$50,000
Moderate demand+$20,0000.45+$9,000
Weak demand−$80,0000.30−$24,000
TOTAL1.00E(X) = +$35,000

✓ E(X) = +$35,000. Positive EV — the launch is mathematically favorable when assessed over repeated similar decisions. Note: EV alone doesn't capture risk — the 30% chance of losing $80,000 may matter depending on the entrepreneur's risk tolerance. See variance for how to quantify that spread.

Interactive Expected Value Calculator — E(X) = Σ x·P(x)

Use this free expected value calculator to compute E(X) = Σ x·P(x) for any discrete probability distribution. Enter your outcomes and probabilities below — the calculator verifies that probabilities sum to 1 and shows the full step-by-step calculation. Add up to 10 outcome rows. For a dedicated calculator page, visit our standalone expected value calculator.

Expected Value Calculator — Discrete Random Variable

Outcome x (any number) Probability P(x) (0 to 1)
x₁
x₂
Probability sum:  (must equal exactly 1.0)

Rules of Expected Value (All Six Properties)

Rules of Expectation: Core Properties

The rules of expected value tell you how E(X) behaves under arithmetic operations. Mastering these rules lets you compute expected values for complex expressions without rebuilding a full distribution table each time.

Rule 1

Linearity of Expectation

E(X + Y) = E(X) + E(Y)

The expected value of a sum always equals the sum of expected values — even when X and Y are not independent. This is one of the most powerful and universally applicable properties in probability theory.

Rule 2

Linear Transformation

E(aX + b) = a·E(X) + b

Scaling a variable by constant a scales its expected value by a. Shifting by constant b shifts the expected value by b. If E(X) = 3 and Y = 2X + 5, then E(Y) = 2(3) + 5 = 11.

Rule 3 — Constant Rule

Expected Value of a Constant

E(c) = c

If c is a constant (not random), its expected value is simply c itself. E(5) = 5. E(−3) = −3. A constant has no uncertainty — it always takes that exact value, so the probability-weighted average equals the value itself. This rule is used in Rule 2 above: the +b term in E(aX+b) = a·E(X)+b comes from E(b) = b.

Rule 4 — Product Rule

Expected Value of a Product

E(X·Y) = E(X)·E(Y) [if independent]

When X and Y are independent, the expected value of their product equals the product of their expected values. This does not hold when variables are dependent. This asymmetry is why E(X) is called linear but not multiplicative: addition always works (Rule 1), multiplication only works under independence.

Rule 5

Scaling Rule

E(aX) = a·E(X)

Multiplying a random variable by a constant scales the expected value by the same constant. If E(X) = 4 and Y = 3X, then E(Y) = 3 × 4 = 12. This follows directly from Rule 2 with b = 0.

Rule 6

Iterated Expectation

E[E(X|Y)] = E(X)

The expected value of the conditional expectation of X given Y equals the unconditional expected value of X. This is the Law of Total Expectation — fundamental in Bayesian statistics and conditional probability.

Positive vs Negative Expected Value

Can Expected Value Be Negative?

Yes — What a Negative Expected Value Means
Yes, expected value can be negative. A negative expected value means that, over many repetitions, the activity produces a net loss on average. Casino games for players, most lotteries, and payday loans (borrower side) are classic examples of negative EV. A negative E(X) does not mean you lose every single time — it describes the long-run average across many trials.
E(X) Sign Meaning Real-World Example
E(X) > 0 (Positive) Average gain over many trials; activity has long-run upside Positive-EV poker play, index fund investing, insurance underwriting
E(X) < 0 (Negative) Average loss over many trials; activity has long-run downside Casino slots (player side), lottery tickets, payday loans (borrower side)
E(X) = 0 (Fair Game) No systematic advantage for either party over repeated play Theoretical fair coin-flip bet at even odds; zero-sum trading with no fees

Expected Value and the Law of Large Numbers

You cannot roll the expected value of 3.5 on a single die throw. The expected value is not a prediction for any individual event — it is the mathematical limit of what the sample mean approaches as the number of trials grows without bound.

The Law of Large Numbers (Weak Form)

As n → ∞, the sample mean x̄ converges to E(X) in probability.

In plain English: the more trials you run, the closer your observed average gets to the theoretical expected value. This result underpins all of inferential statistics and explains why casinos and insurance companies make reliable profits even when individual outcomes vary wildly. For a deep dive, see our Law of Large Numbers guide.

The St. Petersburg Paradox — When EV Breaks Down

🤔
The St. Petersburg Paradox (1738)

Flip a fair coin until tails appears. You win $2n where n is the flip number. The expected value is infinite: E(X) = Σ 2k·(1/2)k = 1 + 1 + 1 + … = ∞. Yet rational people would pay only a few dollars to play. This paradox — published in 1738 by Daniel Bernoulli in the Commentaries of the Imperial Academy of Science of Saint Petersburg — shows that E(X) alone is insufficient when outcomes are extreme. Real decisions require variance and utility alongside expected value. The paradox remains unresolved and is one of the founding puzzles of decision theory.

Discrete vs Continuous Random Variables

Feature Discrete Random Variable Continuous Random Variable
Possible values Countable list: 0, 1, 2, 3, … Infinite range: any value in [a, b]
Probability function PMF: P(X = x) PDF: f(x)
E(X) formula E(X) = Σ x · P(x) E(X) = ∫ x · f(x) dx
Examples Number of heads, die face, number of customers Height, weight, time until failure, stock price change
Tools needed Arithmetic — multiplication and addition Calculus — integration

Expected Value of Common Probability Distributions

Each named probability distribution has a closed-form expected value formula. The table below summarises the most common distributions, their E(X) formulas, and what the parameters mean. For worked examples with each distribution, see the dedicated guides linked in Related Topics.

DistributionE(X) FormulaParametersUse Case
BernoulliE(X) = pp = success probabilitySingle yes/no trial (coin flip)
Binomial B(n,p)E(X) = n·pn = trials, p = P(success)Count of successes in n trials
GeometricE(X) = 1/pp = P(success per trial)Trials until first success
Poisson (λ)E(X) = λλ = average rateCount of rare events in fixed interval
Uniform [a, b]E(X) = (a+b)/2a = min, b = maxAll values equally likely in [a,b]
Exponential (λ)E(X) = 1/λλ = rate parameterTime between events in a Poisson process
Normal N(μ,σ²)E(X) = μμ = mean, σ = SDHeights, measurements, errors
Negative BinomialE(X) = r/pr = successes needed, p = P(success)Trials until r successes

The Binomial EV E(X) = n·p is the most frequently tested formula: it follows directly from applying linearity of expectation to n independent Bernoulli(p) trials. See our Binomial Distribution guide and the related Poisson Distribution for full derivations.

Expected Value vs Mean vs Variance

Is Expected Value the Same as Mean?

Yes — expected value (E(X)) and population mean (μ) refer to the same concept when applied to a probability distribution. E(X) is the notation used in probability theory; μ is the standard notation in statistics. The sample mean (x̄) is different — it is computed from actual data and converges to E(X) by the Law of Large Numbers. This distinction is also explored in our dedicated mean vs expected value guide and the broader discussion of the weighted mean — which E(X) is a probability-weighted instance of.

Expected Value / Mean

E(X) = μ

Σ x · P(x)

The center of the distribution. Measures where outcomes cluster on average.

Variance

Var(X) = σ²

E[(X − μ)²] = Σ (x−μ)² · P(x)

The average squared deviation from the mean. Measures how spread out outcomes are. Shortcut: E(X²) − [E(X)]².

Standard Deviation

SD(X) = σ

σ = √Var(X)

The square root of variance — restores the original units of X. Easier to interpret because σ is in the same units as the outcomes.

Entity & Formula Glossary

TermNotation / FormulaPlain-English Definition
Expected ValueE(X), E[X], μ, ⟨X⟩The probability-weighted average of all possible outcomes of a random variable; the long-run mean.
Discrete EV FormulaE(X) = Σ x·P(x)Sum of every outcome multiplied by its probability. Applies when X takes a countable set of values.
Continuous EV FormulaE(X) = ∫ x·f(x) dxIntegral of outcome times probability density. Applies when X can take any value in a continuous range.
Summation SymbolΣ (sigma)"Add up all terms." Σ x·P(x) means: compute x·P(x) for each possible x, then add all those products.
Outcomex (or xᵢ)A specific numeric value that the random variable X can take in a single trial.
Probability of OutcomeP(x) or P(X = x)The likelihood (between 0 and 1) that outcome x occurs in a single trial.
Linearity of ExpectationE(X+Y) = E(X)+E(Y)Expected values of sums are additive — holds for any variables, whether independent or not.
Linear Transformation RuleE(aX+b) = a·E(X)+bScaling and shifting a variable scales and shifts its expected value by the same amounts.
Constant RuleE(c) = cThe expected value of a constant is the constant itself — no randomness means the average is the value.
Product Rule (independent)E(X·Y) = E(X)·E(Y)Expected value of a product equals the product of expected values — only when X and Y are independent.
VarianceVar(X) = E[(X−μ)²]The expected squared deviation from the mean. Shortcut: E(X²) − [E(X)]².
Negative Expected ValueE(X) < 0On average, repeated participation results in a net loss. Example: casino games (player side).
Law of Large Numbersx̄ₙ → μ as n → ∞The sample mean of n trials converges to the expected value as n grows.

Expected Value Formula Cheat Sheet & Rules Reference

Formula NameNotationWhen to UsePlain-English Meaning
Discrete Expected ValueE(X) = Σ x·P(x)Countable outcomes (die, coins, counts)Multiply each outcome by its probability; add all products.
Continuous Expected ValueE(X) = ∫ x·f(x) dxContinuous range (heights, times, prices)Integrate outcome × density over all values.
Linearity RuleE(X+Y) = E(X)+E(Y)Any two variables — alwaysBreak complex EVs into simpler parts and add results.
Scaling RuleE(aX+b) = a·E(X)+bTransformed or rescaled variablesScale the EV, then shift it — same as transforming the center.
Constant RuleE(c) = cFixed (non-random) valuesThe average of something fixed is just that thing.
Product Rule (independent)E(X·Y) = E(X)·E(Y)Independent random variables onlyMultiply EVs only when the variables do not influence each other.
Variance ShortcutVar(X) = E(X²) − [E(X)]²Computing spread after EV is knownSubtract squared mean from mean of squared outcomes.
Binomial EVE(X) = n·pn independent trials, each with P(success)=pNumber of trials × probability of success per trial.
Geometric EVE(X) = 1/pWaiting for first successExpected number of trials until the first success.
Poisson EVE(X) = λCount of rare events in fixed intervalRate parameter λ is both the mean and variance.
Betting EV (decimal odds)EV = P·(d−1) − (1−P)Sports betting with decimal odds dYour edge per unit staked; positive = value bet.

Quick-Answer Reference Block

What Is Expected Value? (Definition for Featured Snippet)

Snippet-Ready Definition
Expected value is the probability-weighted average of all possible outcomes of a random variable. It represents the long-run average result over many repetitions of an experiment. The formula is E(X) = Σ x·P(x): multiply each outcome x by its probability P(x), then sum all those products.
E(X) = Σ x · P(x)

What Is E(X) in Probability and Statistics?

E(X) Notation Explained

E(X) means "expected value of X" — the probability-weighted average of all outcomes.

E(X) is the most common notation for expected value. It is also written E[X], μ (mu), or ⟨X⟩. In probability theory, E(X) = Σ x·P(x) for discrete variables; in calculus-based statistics, E(X) = ∫ x·f(x) dx for continuous variables. The letter E stands for "expectation." When you see E(2X + 3), you apply the linear transformation rule: E(2X + 3) = 2·E(X) + 3.

Common Misconceptions and Pitfalls

Pitfall 1: Treating E(X) as a Guaranteed Single Outcome

Expected value applies to repeated trials, not individual events. A single trial can produce any outcome, including ones far from E(X). Misapplying EV to one-off, irreversible decisions without considering variance and risk tolerance is a systematic error in decision analysis.

Pitfall 2: Probabilities That Don't Sum to 1

If Σ P(x) ≠ 1.0, your probability distribution is invalid. E(X) calculated from an invalid distribution is mathematically meaningless. Always verify the sum before computing. See probability rules for the axioms that govern valid distributions.

⚠️
Pitfall 3: Ignoring Variance When EV Is Positive

Two investments can have identical positive expected values but wildly different risk profiles. Same EV; completely different risk. In real decisions, variance matters alongside expected value.

⚠️
Pitfall 4: Confusing E(X²) with [E(X)]²

E(X²) is the expected value of X-squared — a different computation from squaring E(X). These are not equal unless X is a constant. The correct variance formula is Var(X) = E(X²) − [E(X)]².

Pitfall 5: Applying the Product Rule to Dependent Variables

E(X·Y) = E(X)·E(Y) is true only when X and Y are independent. For correlated variables (e.g., stock returns that move together), you must use the covariance formula: E(X·Y) = E(X)·E(Y) + Cov(X,Y). Skipping this correction leads to systematically wrong risk estimates in finance.

Foundation

Basic Probability

Every P(x) in the EV formula is a probability. Mastering the rules of probability is prerequisite to computing meaningful expected values.

Foundation

Probability Rules

The axioms that guarantee ΣP(x) = 1 — the critical prerequisite for every valid expected value calculation.

Core Concept

Random Variables

Expected value is a property of a random variable's distribution. Understanding discrete vs continuous variables determines which EV formula to apply.

Distribution

Binomial Distribution

For n Bernoulli trials with success probability p, E(X) = np — derived directly from the general formula.

Distribution

Poisson Distribution

For a Poisson variable with rate λ, E(X) = λ — the rate parameter is both mean and variance.

Spread

Variance & Standard Deviation

Once E(X) is known, Var(X) = E(X²) − [E(X)]² quantifies how spread out outcomes are.

Context

Weighted Mean

Expected value is a probability-weighted mean — understanding weighted averages gives intuition for the E(X) formula.

Advanced

Conditional Probability

Conditional expectation E(X|Y) extends EV to cases where you already know something about the outcome.

For authoritative external references: OpenStax Introductory Statistics — Expected Value, Khan Academy — Expected Value, and Wolfram MathWorld — Expectation Value.