EV

Expected Value Calculator

The expected value, variance and standard deviation of a set of outcomes and their probabilities: a bet, a game, a decision or any discrete random variable.

Statistics & ProbabilityRuns in your browser

Result…

A name is optional, then the value, then its probability: 0.25, 25% or 1/4. Losses are negative values.

The second number is

Probabilities must add up to 1. Weights (how often each happened, say) are scaled so they do.

 

…

How it's calculated

E[X] = Σ xᵢ pᵢ · Var(X) = Σ pᵢ (xᵢ − E[X])² = E[X²] − E[X]² · SD = √Var(X)
Weights wᵢ become probabilities pᵢ = wᵢ ÷ Σw

The expected value of a discrete random variable is the average of its possible values, each weighted by its probability: what you would average per go over a very large number of goes. The variance is the probability-weighted average of the squared distances from that mean, and the standard deviation, its square root, is in the same units as the values. Enter each outcome with its probability as a decimal, a percentage or a fraction; probabilities must add up to 1. If you have counts or relative weights instead (how many times each result happened), choose weights and they are divided by their total. Use it for games, bets, insurance, business decisions or exam questions on random variables; the steps show each product.

Your numbers, step by step

    About the Expected Value calculator

    This expected value calculator finds the long-run average of anything with a set of possible outcomes and known chances: a bet, a game, an insurance policy, a business decision or a random variable in a statistics exercise. Enter each outcome on its own line with its value and its probability, written as a decimal, a percentage or a fraction like 1/6, with losses as negative values. It returns the expected value, the variance and the standard deviation, which tell you how far single results tend to land from the average, plus E[X²], the chance of a result above zero and the range. Probabilities must add up to 1; if you have counts or weights instead, such as how often each result happened, switch the second column to weights and they are scaled for you. Each product in the sum is shown.

    How to use it

    1. Type each outcome in “Outcomes, one per line: value and probability”, like “Win big 100 0.05”; the name is optional.
    2. Write probabilities as 0.25, 25% or 1/4, and make sure they add up to 1.
    3. If your numbers are counts or relative weights, choose “A weight or count” under “The second number is”.
    4. Read the expected value, then the variance and standard deviation to see how spread out single results are.

    Worked example

    A game pays 100 with probability 0.05, pays 20 with probability 0.25 and loses 10 with probability 0.7. The expected value is 100 × 0.05 + 20 × 0.25 + (−10) × 0.7 = 5 + 5 − 7 = 3 per play. E[X²] is 670, so the variance is 670 − 3² = 661 and the standard deviation is √661 = 25.71. The game pays 3 a go on average, but single results swing far either side, and 70% of plays lose.

    Updated

    Questions people ask

    What is the formula for expected value?

    Multiply each outcome by its probability and add the results: E[X] = Σ x × p. It is a weighted average, with the probabilities as the weights.

    How do I find the variance and standard deviation of a probability distribution?

    Variance = Σ p × (x − E[X])², or equally E[X²] − E[X]². The standard deviation is its square root and is in the same units as the outcomes. For a list of observed data instead of a distribution, use the standard deviation calculator.

    What does a negative expected value mean?

    On average you lose that much per go over many goes. Most casino games and lotteries have a negative expected value for the player, which is how the operator covers prizes and costs.

    Why must the probabilities add up to 1?

    The outcomes listed must cover everything that can happen, exactly once. If they add up to 0.999 because of rounding, write exact fractions such as 1/3, or switch to weights so they are scaled to add up to 1.

    Is the option with the highest expected value always the best choice?

    Not always. Expected value is a long-run average and ignores risk: two options with the same average can have very different standard deviations, and a single large loss may matter more than the average. For money decisions that matter, talk to a qualified financial adviser.

    More in Statistics & Probability