Expected Value Calculator (Discrete Probability Distribution)
Calculate the expected value, variance and standard deviation of a discrete random variable from its outcomes and probabilities.
Statistical results depend on the assumptions stated in the formula. Check that your data meet them before drawing conclusions.
How to use this calculator
List each possible outcome and its probability on its own line, separated by a comma. Probabilities can be decimals (0.25) or percentages (25%) but must add up to 1 (or 100%). The calculator gives the long-run average outcome and how spread out the outcomes are.
Formula
Expected value E[X] = Σ xᵢ pᵢ. Variance = Σ pᵢ (xᵢ − E[X])² = E[X²] − (E[X])². Standard deviation = √variance.
Calculator credits
Calculator developmentJulia Edwards
Editorial supervisionSamad Aslam Khan
Expert reviewSaeedM.Phil Statistics, Data Scientist
Published byThe Calculatorz
Last updated
Read how we research, test, review and correct our calculators in our editorial policy.
Frequently asked questions
What is expected value?
The probability-weighted average of all possible outcomes: what you would average per trial over many repetitions.
Can the expected value be an impossible outcome?
Yes. A die's expected value is 3.5, which never comes up on a single roll.
How is expected value used in decisions?
To compare bets, insurance, investments or business options. A game with negative expected value loses money in the long run.
Do probabilities have to add to 1?
Yes. If they do not, an outcome is missing or a probability is wrong; the calculator will tell you the total.
What does the standard deviation add?
It measures risk: two options with the same expected value can have very different spreads of outcomes.
Can I use percentages?
Yes. Add a % sign to each probability, or enter values that add up to 100.
References & methodology sources
These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.
- Ross, S. M. (2019). A first course in probability (10th ed.). Pearson. View source
- Illowsky, B., & Dean, S. (2023). Introductory statistics 2e. OpenStax. View source
- Casella, G., & Berger, R. L. (2002). Statistical inference (2nd ed.). Duxbury. View source
- Croarkin, C., & Tobias, P. (Eds.). (2012). NIST/SEMATECH e-handbook of statistical methods. National Institute of Standards and Technology. View source