CalcMountain

Expected Value Calculator

Enter up to 6 outcome values and their corresponding probabilities to compute the expected value (weighted average of outcomes). Also shows variance and standard deviation.

Expected value (EV) is the long-run average outcome of a random experiment repeated many times. It's calculated as the sum of each outcome multiplied by its probability. EV doesn't tell you what will happen in any single trial — it tells you what would happen on average over thousands or millions of trials. Casino games have negative EV for players (house edge); insurance has positive EV for insurers (premium > expected claim).

This calculator returns the expected value, variance, and standard deviation given a discrete distribution of outcomes and their probabilities. Probabilities should sum to 1.0 across all outcomes. The calculator handles up to 6 outcomes — typical for dice, simple gambling problems, and basic decision analysis.

Expected value is fundamental to: - **Gambling and casino math**: house edge, player returns. - **Insurance pricing**: premium = expected claim + costs + profit. - **Investment analysis**: expected return, risk-adjusted return. - **Decision theory**: choosing among uncertain options. - **Game theory**: optimal strategies in games.

But EV alone doesn't capture risk. A 50% chance of winning $100 and 50% of losing $80 has EV = $10 — but the variance is substantial. Most decisions consider both expected value AND variability.

Inputs

Results

Expected Value

23.0000

Variance

61.0000

Standard Deviation

7.8102

Total Probability

1.0000

Probability Check

Valid (sums to 1)

Outcomes

3

Last updated:

Formula

**Expected value (discrete):** E(X) = Σ x × P(x) Sum of each outcome times its probability. **Worked example: dice roll** Outcomes: 1, 2, 3, 4, 5, 6. Each P = 1/6. E(X) = 1×(1/6) + 2×(1/6) + 3×(1/6) + 4×(1/6) + 5×(1/6) + 6×(1/6) = 3.5 So average roll of 1 die is 3.5. **Worked example: lottery** Win $1,000,000 with P = 1/300,000,000. Cost: $2 ticket. EV = 1,000,000 × (1/300,000,000) - 2 × 1 = 0.0033 - 2 = -$1.997 Each ticket has expected loss of ~$2 (slight underestimate due to other prizes). **Variance:** Var(X) = E[(X - E(X))²] = Σ (x - μ)² × P(x) **Standard deviation:** SD(X) = √Var(X) **Properties of expected value:** 1. **Linearity**: E(aX + b) = aE(X) + b 2. **Sum**: E(X + Y) = E(X) + E(Y) (always) 3. **Product (independent)**: E(XY) = E(X)E(Y) only if X and Y independent 4. **Constant**: E(c) = c **Common expected value calculations:** **Casino games:** | Game | House edge | Player EV per $100 bet | |---|---|---| | Blackjack (basic strategy) | 0.5% | -$0.50 | | Baccarat (banker) | 1.06% | -$1.06 | | Craps (pass line) | 1.4% | -$1.40 | | Roulette (single 0) | 2.7% | -$2.70 | | Roulette (double 0) | 5.3% | -$5.30 | | Slot machines | 5-15% | -$5 to -$15 | | Keno | 25% | -$25 | | Lottery | 50% | -$50 | All negative EV for player — casino edge built in. **Insurance:** Premium = Expected claim + Operating costs + Profit margin For policyholder: EV = (P × policy payout - premium) < 0. For company: EV = premium - P × policy payout > 0. Insurance has negative EV for individual but reduces variance (peace of mind). **Investment:** E(return) = Σ (probability × return) For long-term: stock market expected ~7% annual real return. Variance is high (volatility); but compounded over time, EV dominates. **Decision theory:** Choose option with highest EV when: - Risk-neutral (don't care about variance). - Many repeated decisions. - Outcomes are not catastrophic. Don't use EV alone when: - Risk-averse (variance matters). - Single critical decision. - Catastrophic outcomes possible. - Small samples. **St. Petersburg paradox:** Coin flip game: heads on first flip = $2; if tails, continue. Each successive heads doubles ($4, $8, $16, ...). E(payout) = $2 × 0.5 + $4 × 0.25 + $8 × 0.125 + ... = $1 + $1 + $1 + ... = infinity! But how much would you pay to play? Probably $10-20. Shows EV alone isn't sufficient for decisions. **Allais paradox:** Most people prefer: - Option A: 100% chance of $1M. - Over Option B: 89% of $1M + 10% of $5M + 1% of $0. But EV(B) > EV(A). Demonstrates that risk preferences violate strict EV maximization. **Practical interpretation:** - EV positive: gain expected in long run. - EV negative: loss expected in long run. - EV = 0: break-even. - Magnitude matters: bigger EV = more favorable. **Common mistakes:** - Confusing EV with "most likely" outcome. - Ignoring variance and risk. - Treating one-time decisions like repeated. - Forgetting to include all possible outcomes. **Use case examples:** **Bet evaluation:** EV of $5 bet on coin flip (50% win $5, 50% lose $5) = 0. Break-even. Wouldn't take if I value $5 differently win vs lose. **Insurance:** $300/year auto insurance vs P(crash) = 0.01 × $30,000 = $300 EV. Break-even in pure EV terms. But variance reduction valuable. **Stocks:** Mean return 8%, SD 16%. EV positive. But large variance means individual year may lose 20%. **Conditional expected value:** E(X | event) = expected value given event happens. Useful for partial information problems. **Long-run interpretation:** Per the Law of Large Numbers, sample average → expected value as n → ∞. Over many trials, average outcome converges to EV.

How to use this calculator

  1. Enter outcomes and their probabilities.
  2. Probabilities should sum to 1.0.
  3. Calculator returns expected value, variance, and SD.
  4. Skip slots by leaving as default 0.
  5. Use EV for long-run decision-making.
  6. Consider variance alongside EV for risk assessment.

Worked examples

Coin flip game

**Scenario:** Win $10 on heads (P=0.5), lose $5 on tails (P=0.5). **Calculation:** EV = 0.5 × $10 + 0.5 × (-$5) = $5 - $2.50 = $2.50. SD = √(0.5 × 152.5 + 0.5 × 56.25) = √97.5 = $9.87. **Result:** EV is $2.50 per flip. Over time, you should profit. But SD of $9.87 means individual flips vary widely. Worth playing in long run.

Restaurant pricing decision

**Scenario:** New menu item: 60% chance profit $20, 40% chance loss $15. **Calculation:** EV = 0.6 × $20 + 0.4 × (-$15) = $12 - $6 = $6. **Result:** EV = $6 per item served. Worth listing. But monitor: if rate of profitable items drops, EV becomes negative.

Investment portfolio

**Scenario:** Two-asset portfolio. Asset A: $1000 invested, 70% chance returns $1100, 30% chance returns $900. Asset B: $1000, certain return $1050. **Calculation:** A: EV = 0.7×1100 + 0.3×900 = 770+270 = $1040. B: EV = $1050 (certain). Compare EV(B) > EV(A) ($1050 > $1040). B has higher EV and no risk. **Result:** B preferred for both EV and risk reasons. A is risky AND lower expected return; no reason to choose A over B. Always look for B (or better) when available.

When to use this calculator

**Calculate expected value for:**

- **Investment decisions**: compare expected returns. - **Insurance pricing**: premium calculations. - **Game theory**: optimal strategy in repeated games. - **Casino games**: house edge calculation. - **Decision under uncertainty**: choosing best option. - **Risk-neutral analysis**: when variance doesn't matter. - **Long-run scenario planning**: expected results over time.

**EV decision rules:**

| Rule | Description | |---|---| | Maximize EV | When risk-neutral, repeated decisions | | Mean-variance | Balance EV against variance | | Utility maximization | EV of utility function | | Maximin | Maximize the worst case | | Maximax | Maximize the best case |

**When NOT to use EV alone:**

- Single critical decisions. - Catastrophic potential losses. - High variance compared to mean. - Risk-averse preferences. - Small number of decisions.

**EV and the Law of Large Numbers:**

The mean of many independent random samples converges to the expected value as n → ∞. This is why casinos always win in the long run, and insurance companies profit despite individual claims.

**EV with utility:**

For risk-averse decisions, use expected utility: E[U(X)] = Σ U(x) × P(x)

Where U is a concave utility function (diminishing returns from increasing wealth).

This explains why people buy insurance (positive expected utility despite negative EV).

**Conditional expected value:**

E(X | Y = y) = expected value of X given Y = y.

Used in Bayesian decision-making and partial information problems.

**Common applications:**

1. **Casino game**: each $1 bet returns $0.95 average. House edge 5%.

2. **Lottery**: $1 ticket has EV of ~$0.30. Pay $1, expect $0.30 long term.

3. **Insurance**: $300 premium, P(claim)=0.02, claim=$10,000. EV = -$300 + 0.02 × $10,000 = -$100. Negative EV but worth it for variance reduction.

4. **Stock market**: historical EV ~7% real annual return, SD ~16%. Most years between -25% and 39% (95% range).

5. **A/B test**: test wins by $5/visitor with P=0.7; loses by $3 with P=0.3. EV = 0.7×5 - 0.3×3 = 3.5-0.9 = $2.60/visitor. Worth running.

**Software:**

- **Excel**: SUMPRODUCT(values, probabilities). - **R**: weighted.mean() or sum(x × p). - **Python**: numpy.dot(x, p) or sum(x_i * p_i).

**Beyond simple EV:**

- **Cumulative prospect theory**: how humans actually weight outcomes. - **Stochastic dominance**: rules for comparing distributions. - **Risk-adjusted EV**: Sharpe ratio, value at risk. - **Real options**: EV of decisions with timing flexibility.

**Reporting:**

When making decisions, report: - Expected value. - Variance / standard deviation. - Range of outcomes (min, max, percentiles). - Probability of negative outcome. - Worst-case scenario.

**Long-term vs short-term:**

- Long-term: EV dominates. - Short-term: variance matters. - Number of trials: more trials = closer to EV.

**Common mistakes:**

- Treating EV as guaranteed outcome. - Ignoring variance and risk. - Using for unique critical decisions. - Failing to include all outcomes. - Confusing EV with most probable value.

Common mistakes to avoid

  • Confusing EV with most likely outcome. EV is weighted average; mode is most frequent.
  • Ignoring variance. EV alone doesn't capture risk.
  • Treating single decisions as if repeated. One-time decisions need risk consideration.
  • Forgetting probabilities must sum to 1.0.
  • Using positive EV with catastrophic loss potential. Risk of ruin matters.
  • Computing EV without considering utility function. Risk-averse people don't maximize EV.
  • Ignoring time value of money for delayed outcomes.

Frequently Asked Questions

Sources & further reading

SponsoredShop Top Deals on AmazonSupport CalcMountain — browse top-rated products at no extra cost to you.

Related Calculators