Expected Value Calculator
Compute E[X] from values and probabilities.
About this tool
Enter outcomes and their probabilities to get the long-run average. Values 1, 2, 3 with probabilities 0.2, 0.5, 0.3 have an expected value of 2.1.
How to use
How it works
Multiply each outcome by its probability and add. For a $1 straight-up roulette bet on a 38-slot wheel, the outcomes are −1 (probability 0.973684) and +35 (probability 0.026316), so E = −0.973684 + 0.92106 = −0.052624: you lose about 5.3 cents per dollar on average.
E[X] = Σ xᵢ · pᵢ, with Σ pᵢ = 1
Worked example
A prize draw
- Input
- values 0, 10, 100; probabilities 0.7, 0.25, 0.05
- Output
- 7.5
- Walkthrough
- 0 × 0.7 + 10 × 0.25 + 100 × 0.05 = 0 + 2.5 + 5 = 7.5.
Limitations
- The probabilities must sum to 1 within 0.00001, which allows for rounded decimals: six values of 0.166667 add to 1.000002 and are accepted (E = 3.50001 for outcomes 1 to 6). A total that is further off, such as 0.2, 0.5, 0.4 (sum 1.1), is rejected.
- There must be one probability for each value.
Questions
What is the expected value of 1, 2, 3 with probabilities 0.2, 0.5, 0.3?
What is the expected value of the prize draw 0, 10, 100 at 0.7, 0.25, 0.05?
What is the expected value of a $1 roulette number bet?
Why does it say probabilities must sum to 1?
Features
- Checks probabilities sum to 1
- Any number of outcomes
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Statistics intro: Mean, median, and mode
Khan Academy
Intro framing before pasting datasets into stats calculators.
Watch on YouTubeAverage or Central Tendency
Khan Academy
When to prefer mean vs median in tool output.
Watch on YouTube
- OpenStax Math
OpenStax
Free textbooks for algebra through calculus.
- Introductory Statistics
OpenStax
Free textbook for descriptive stats and inference.