Expected value

From lyndonkl/claude · View interactive version

Expected value is an AI agent skill from the GitHub repository lyndonkl/claude. Calculates probability-weighted averages of all possible outcomes to enable rational decisions under uncertainty. Covers scenario identification, probability estimation, payoff quantification, and risk-adjusted interpretation. Use when comparing risky options (investments, product bets, strategic ch

How to use this skill

Skill file

Expected Value

Table of Contents

Core Formula

EV = Σ (Probability of outcome x Value of outcome)

EV = (p₁ × v₁) + (p₂ × v₂) + ... + (pₙ × vₙ)
where probabilities must sum to 1.0

Example: Launch feature with 60% chance of $100k revenue, 40% chance of -$20k sunk cost.

EV = (0.6 x $100k) + (0.4 x -$20k) = $60k - $8k = $52k (positive EV, rational to launch if risk tolerance allows)

Workflow

Copy this checklist and track your progress:

Expected Value Analysis Progress:
- [ ] Step 1: Define decision and alternatives
- [ ] Step 2: Identify possible outcomes
- [ ] Step 3: Estimate probabilities
- [ ] Step 4: Estimate payoffs (values)
- [ ] Step 5: Calculate expected values
- [ ] Step 6: Interpret and adjust for risk preferences

Step 1: Define decision and alternatives

What decision are you making? What are the mutually exclusive options? See resources/template.md.

Step 2: Identify possible outcomes

For each alternative, what could happen? List scenarios from best case to worst case. See resources/template.md.

Step 3: Estimate probabilities

What's the probability of each outcome? Use base rates, reference classes, expert judgment, data. See resources/methodology.md.

Step 4: Estimate payoffs (values)

What's the value (gain or loss) of each outcome? Quantify in dollars, time, utility. See resources/methodology.md.

Step 5: Calculate expected values

Multiply probabilities by payoffs, sum across outcomes for each alternative. See resources/template.md.

Step 6: Interpret and adjust for risk preferences

Choose option with highest EV? Or adjust for risk aversion, non-monetary factors, strategic value. See resources/methodology.md.

Validate using resources/evaluators/rubric_expected_value.json. Minimum standard: Average score ≥ 3.5.

Common Patterns

Pattern 1: Investment Decision (Discrete Outcomes)

Pattern 2: Portfolio Allocation (Multiple Options)

Pattern 3: Sequential Decision (Decision Tree)

Pattern 4: Continuous Distribution (Monte Carlo)

Pattern 5: Competitive Game (Payoff Matrix)

Guardrails

  1. Probabilities should sum to 1.0: Listed outcomes need to be exhaustive (cover all possibilities) and mutually exclusive (no overlap). Verify: p1 + p2 + ... + pn = 1.0.
  1. Adjust for risk on one-shot, high-stakes decisions: EV is a long-run average. For rare, irreversible decisions, factor in risk aversion. A 1% chance of $1B (EV = $10M) does not mean betting the house is rational.
  1. Quantify uncertainty, don't hide it: Probabilities and payoffs are estimates. Use ranges, sensitivity analysis, or distributions rather than pretending false precision.
  1. Consider non-monetary value: Some outcomes have utility not captured by money (reputation, learning, optionality, morale). Convert to a common scale or use multi-attribute utility.
  1. Ground probabilities in data: Use base rates, reference classes, data, and expert forecasts rather than gut feel. Check calibration: are "70% confident" predictions right 70% of the time?
  1. Account for correlated outcomes: If outcomes are not independent (e.g., economic downturn affects all portfolio companies), correlation reduces diversification benefit.
  1. Time value of money: Discount future cash flows to present value. EV should use NPV, not nominal values.
  1. Consider option value: In sequential decisions, fold-back induction finds optimal strategy. Factor in the option to stop early, pivot, or wait for more information.

Common pitfalls:

Quick Reference

Key formulas:

Expected Value: EV = Σ (pᵢ × vᵢ) where p = probability, v = value

Expected Utility (for risk aversion): EU = Σ (pᵢ × U(vᵢ)) where U = utility function

Net Present Value: NPV = Σ (CF_t / (1+r)^t) where CF = cash flow, r = discount rate, t = time period

Variance (risk measure): Var = Σ (pᵢ × (vᵢ - EV)²)

Standard Deviation: σ = √Var

Coefficient of Variation (risk/return ratio): CV = σ / EV (lower = better risk-adjusted return)

Breakeven probability: p* where EV = 0. Solve: p* × v_success + (1-p*) × v_failure = 0.

Decision rules:

Sensitivity analysis questions:

Key resources:

Inputs required:

Outputs produced:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.