Expected Value Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter up to five outcomes with their probabilities (set unused ones to 0) to get the expected value, variance and standard deviation.
Result
Expected value E(X)
Variance
- Standard deviation
- Sum of probabilities
- Check
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Outcome 1 value: enter a number.
- Outcome 1 probability (0 to 1): enter a number from 0 to 1.
- Outcome 2 value: enter a number.
- Outcome 2 probability (0 to 1): enter a number from 0 to 1.
- Outcome 3 value: enter a number.
- Outcome 3 probability (0 to 1): enter a number from 0 to 1.
- Outcome 4 value: enter a number.
- Outcome 4 probability (0 to 1): enter a number from 0 to 1.
- Outcome 5 value: enter a number.
- Outcome 5 probability (0 to 1): enter a number from 0 to 1.
- Read the result: Expected value E(X); the panel also shows Variance, Standard deviation, Sum of probabilities and Check.
How this calculator works
Expected value of a discrete random variable: E(X) = Σ pᵢ xᵢ, each outcome weighted by its probability. The probabilities must be between 0 and 1 and add up to 1.
Variance: Var(X) = Σ pᵢ xᵢ² − E(X)², and the standard deviation is its square root. They measure how far the outcomes typically fall from the expected value.
The formula
| Symbol | Meaning |
|---|---|
| Outcome 1 value | |
| Outcome 1 probability (0 to 1) | |
| Outcome 2 value | |
| Outcome 2 probability (0 to 1) | |
| Outcome 3 value | |
| Outcome 3 probability (0 to 1) | |
| Outcome 4 value | |
| Outcome 4 probability (0 to 1) | |
| Outcome 5 value | |
| Outcome 5 probability (0 to 1) | |
| Expected value E(X) |
Worked example
| Outcome 1 value | 0 |
|---|---|
| Outcome 1 probability (0 to 1) | 0.2 |
| Outcome 2 value | 1 |
| Outcome 2 probability (0 to 1) | 0.3 |
| Outcome 3 value | 2 |
| Outcome 3 probability (0 to 1) | 0.3 |
| Outcome 4 value | 3 |
| Outcome 4 probability (0 to 1) | 0.2 |
| Outcome 5 value | 0 |
| Outcome 5 probability (0 to 1) | 0 |
| Variance | 1.05 |
|---|---|
| Standard deviation | 1.0247 |
| Sum of probabilities | 1 |
| Check | The probabilities add up to 1 |
Expected value E(X) 1.5
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the expected value of outcomes 0, 1, 2, 3 with probabilities 0.2, 0.3, 0.3, 0.2?
0 × 0.2 + 1 × 0.3 + 2 × 0.3 + 3 × 0.2 = 1.5, with a variance of 1.05.
Does the expected value have to be a possible outcome?
No. It is a long-run average: a fair six-sided die has an expected value of 3.5, which can never be rolled.