Expected Value Calculator
Enter the possible outcomes of a random variable and the probability of each to find its expected (long-run average) value and spread.
| Expected value E(X) | 3.75 |
|---|---|
| Variance | 629.6875 |
| Standard deviation | 25.0936 |
| Sum of probabilities | 1.0000 |
Link to this calculation – copied!
Formula
Var(X) = Σ pi × (xi − E(X))2
| Symbol | Meaning |
|---|---|
| xi | Each possible outcome |
| pi | Probability of that outcome (all must sum to 1) |
| E(X) | Expected value |
How to Use This Calculator
- Type or paste the Outcomes (values). One value per outcome, e.g. the payoff of each result.
- Type or paste the Probabilities. Same order and count as the outcomes; must add up to 1.
- Press Calculate. Results also update automatically as you type.
Worked Example
Using the values pre-filled in the calculator above:
| Outcomes (values) | -10, 0, 25, 100 |
|---|---|
| Probabilities | 0.5, 0.3, 0.15, 0.05 |
| Expected value E(X) | 3.75 |
|---|---|
| Variance | 629.6875 |
| Standard deviation | 25.0936 |
| Sum of probabilities | 1.0000 |
About This Calculation
The expected value is the probability-weighted average of all possible outcomes. It is what you would average per trial if you could repeat a random situation an enormous number of times. In the default example, a game costs you $10 half the time, pays nothing 30% of the time, wins $25 with 15% probability and $100 with 5% probability; the expected value is +$3.75 per play.
Expected value is the foundation of rational decision-making under uncertainty. Insurers use it to price policies, casinos design games with a negative expected value for players, investors compare projects with it, and businesses weigh up whether a marketing campaign is likely to pay off. A positive expected value means a bet is favourable in the long run; a negative one means it loses money on average.
The expected value alone can mislead, because it hides risk. Two bets can share the same expected value while one is nearly certain and the other could wipe you out. That is why this calculator also reports the variance and standard deviation, which measure how widely real results scatter around the average. Also note that the expected value need not be a possible outcome: the expected roll of a fair die is 3.5. Make sure your probabilities cover every outcome and add up to exactly 1.
Frequently Asked Questions
- What does a negative expected value mean?
- On average you lose that amount each time. Lottery tickets and casino games have negative expected values for players, which is how the operator profits.
- Is expected value the same as the mean?
- Yes. It is the mean of a probability distribution. For a plain list of observed data use the mean calculator.
- Can I enter percentages instead of probabilities?
- Convert them first by dividing by 100, so 15% becomes 0.15. The probabilities must add up to 1.