Math & Geometry
Expected Value Calculator (Discrete Probability Distribution)
Calculate the expected value of an uncertain situation. When an experiment, game, investment or decision can lead to several outcomes, each with a known probability, the expected value is the probability-weighted average of the outcomes. It is the long-run average result you would get if the situation could be repeated many times, even if no single result ever equals it exactly. Expected value is central to probability and statistics, and it is used to price insurance and lotteries, judge whether a bet is fair, compare business projects, plan inventory and make rational decisions under uncertainty. The variance and standard deviation complete the picture by measuring how spread out the outcomes are around the expected value, a simple measure of risk: two options with the same expected value can carry very different risks. Enter each possible outcome on its own line with its probability, as a decimal or a percentage. The probabilities must add up to 1 or 100%. For example, a game that pays 100 with probability 10%, 20 with probability 30% and costs 10 the rest of the time has an expected value of 10 per play, with a standard deviation of about 32.9.
How to use this calculator
- Enter one outcome per line: value, probability.
- Use decimals such as 0.25 or percentages such as 25.
- Make sure the probabilities add up to 1 or 100%.
- Use negative values for losses.
- Read the expected value, variance and standard deviation.
Expected value and decisions
A positive expected value means that, on average, an option gains; a negative one means it loses. Casino games and lotteries are designed to have a negative expected value for players, which is how operators make money.
People often accept a lower expected value to reduce risk, which is why insurance is rational even though premiums exceed the average claim.
Limits
Expected value describes the long run. For a one-off decision with a large possible loss, the spread of outcomes and your ability to absorb a bad result matter as much as the average.
The result is only as good as the probabilities you enter, so base them on reliable data where possible.
Formula & method
Expected value E(X) = Σ xᵢ × pᵢVariance Var(X) = Σ pᵢ × (xᵢ − E(X))²Standard deviation = √Var(X)Probabilities must add up to 1 (or 100%)Expected value E(X) = Σ xᵢ pᵢ, the sum of each outcome multiplied by its probability. Variance Var(X) = Σ pᵢ (xᵢ − E(X))², equivalently E(X²) − E(X)². Standard deviation σ = √Var(X). If the probabilities add up to 100, they are treated as percentages. Expected values add: the expected total of several independent plays is the number of plays times E(X). A game is called fair when its expected value is zero.
Worked example
A game with three outcomes
- Win 100 with probability 0.1: contributes 10.
- Win 20 with probability 0.3: contributes 6; lose 10 with probability 0.6: contributes −6.
- E(X) = 10 + 6 − 6 = 10; variance = 1,080; standard deviation ≈ 32.9.
Answer: Expected value 10 per play, standard deviation 32.9.
Frequently asked questions
What is expected value?
The probability-weighted average of all possible outcomes.
How do I calculate it?
Multiply each outcome by its probability and add the results.
Do probabilities have to add up to 1?
Yes, or to 100% if you enter percentages.
What does a negative expected value mean?
The option loses on average over many repetitions.
What does the standard deviation show?
How spread out the outcomes are, a measure of risk.
What is a fair game?
One with an expected value of zero.