Expected Value
The average outcome: each value times its probability, all added up.
E = Σ xᵢ pᵢ
The probabilities must add up to 1 (the tool shows the sum).
It is not what you get on one try, but the average per try over many tries.
Calculator
Change a value and the result and picture update instantly.
Result
Expected value E
Sum of probabilities
Animated picture
The picture follows your values. Some points and shapes can be dragged.
Use in game development
Compute average rewards from chests or wheels so payouts are neither too generous nor too stingy.
Code example (JavaScript)
const E = rewards.reduce((s, r) => s + r.value * r.prob, 0);
What the symbols mean
| Symbol | Meaning |
|---|---|
list | Values (space separated) |
plist | Probabilities (space separated, sum 1) |
E | Expected value E |
sumP | Sum of probabilities |
More formulas in this category
- Mean and Median
- Variance and Standard Deviation
- Permutations and Combinations
- Binomial Distribution
- Probability of at Least One Success (Drop Rates)
- Normal Distribution
Frequently asked questions
- What is the formula for Expected Value?
- The formula for Expected Value is E = Σ xᵢ pᵢ. The average outcome: each value times its probability, all added up.
Math Formula Quiz Probability & Statistics
Sources
Checked: 2026-11-29