How it’s calculated
The expected value of a discrete random variable is the long-run average outcome: weight each possible value by its probability and add them up. The standard deviation measures how far outcomes typically fall from that average.
Example (OpenStax Introductory Statistics 2e, §4.2): a team plays 0, 1 or 2 days a week with probabilities 0.2, 0.5, 0.3. μ = 0(0.2) + 1(0.5) + 2(0.3) = 1.1 days. σ² = (0 − 1.1)²(0.2) + (1 − 1.1)²(0.5) + (2 − 1.1)²(0.3) = 0.242 + 0.005 + 0.243 = 0.49, so σ = 0.7.
For a game, use winnings as the outcomes (a loss is negative). A positive expected value means you win on average over many plays.
Frequently asked questions
Does the expected value have to be a possible outcome?
No. A fair die has an expected value of 3.5, which you can never roll. It is an average over many repeats.
Why must the probabilities add to 1?
The listed outcomes must cover everything that can happen. If they do not add to 1, an outcome is missing or a probability is wrong.
How do I use it for a lottery or raffle?
List each prize amount (and the ticket cost as a negative outcome) with its probability. The expected value is your average gain or loss per ticket.
What is the difference from a normal average?
An ordinary average gives every value equal weight. Expected value weights each value by how likely it is.
Embed this calculator
Add this free calculator to your own website. Copy the code below into your page’s HTML:
Need this calculator branded, changed or built around your own prices?See custom business solutions →
Sources
Formulas are taken from the free public references above. Results are provided “as is” for informational and educational purposes only. See our disclaimer.
Added · Last updated · How we check our calculators
Spotted a mistake or missing option? Report a problem· Suggest a calculator