Expected Value Calculator
The expected value of a random quantity is its long-run average: each outcome multiplied by its probability, then added up. This calculator takes a list of outcomes and their probabilities, checks the probabilities add to one, and gives the expected value, variance and standard deviation exactly, with the distribution drawn as a bar chart.
How to use the expected value calculator
- Enter the outcomes, separated by commas.
- Enter the matching probabilities (they must add to 1).
- Press Calculate to see E(X), the variance and the chart.
Formula
Worked example: 0–3 with given probabilities
- Outcomes x: 0, 1, 2, 3
- Probabilities P(x): 0.1, 0.3, 0.4, 0.2
✓ Answer checked
- Variance
- Standard deviation
Step-by-step working (2 steps)
Multiply each outcome by its probability E(X) = Σ x·P(x)
Then add the results.
Variance
Expected value of x² minus the square of the expected value.
Formulas used
How this was checked
- ✓ The definition Σ(x − μ)²P(x) gives exactly the same variance.
Frequently asked questions
What is the expected value of a fair die?
(1 + 2 + 3 + 4 + 5 + 6) ÷ 6 = 3.5.
Is a raffle with a 1% chance to win 100 and a 2 ticket worth it?
The expected value is 0.01 × 100 − 0.99 × 2 = −0.98, so on average you lose about 0.98 per ticket.
Can the expected value be an impossible outcome?
Yes. A die never shows 3.5, but that is its long-run average.
Related calculators
Probability Calculator
Find P(A and B), P(A or B), P(not A) and P(A given B) for independent, mutually exclusive or related events, exactly with fractions.
Variance Calculator
Calculate the exact variance of a data set for a sample or a population, with the squared deviations shown and the shortcut formula check.
Binomial Distribution Calculator
Calculate binomial probabilities for exactly, at most or at least k successes in n trials.
