Expected Value Calculator
This expected value calculator needs one value and its probability per line, the rest is done for you. Example: −1 with 50 %, 2 with 30 % and 10 with 20 % give E(X) = 2.1 and a standard deviation of 4.16.
Source: Wikipedia – Erwartungswert. Updated: .
How it is calculated
The expected value of a random variable is the probability-weighted mean of all possible values: E(X) = Σ xᵢ·pᵢ. It tells you which average you get over very many repetitions. Variance and standard deviation show how strongly the values scatter around it.
How it is calculated
Each value x has a probability p, and all p add up to 1. Multiply each value by its probability and add: for −1 (50 %), 2 (30 %) and 10 (20 %), E(X) = −0.5 + 0.6 + 2 = 2.1. The variance is Var(X) = E(X²) − E(X)², here 21.7 − 4.41 = 17.29, and the standard deviation σ = √17.29 ≈ 4.16. For a fair die with values 1 to 6 at 1/6 each, E(X) = 3.5, Var(X) = 35/12 ≈ 2.92 and σ ≈ 1.71.
Input and normalising
Probabilities may be written as decimals, fractions (1/6) or percent (16.7 %). If they do not add up to exactly 1 because of rounding, the calculator tolerates a small deviation; for relative frequencies or weights “Normalise probabilities” divides every value by their sum.
- The expected value need not be a possible outcome: for a die, 3.5 is never rolled.
- For a game with a stake, use the gain minus the stake; E(X) = 0 means “fair”.
- For the average of a measurement series use the average calculator instead.
Frequently asked questions
How do you calculate the expected value?
Multiply each possible value by its probability and add all products: E(X) = x₁·p₁ + x₂·p₂ + … For a die that is (1 + 2 + … + 6) / 6 = 3.5.
What does an expected value of 0 mean in a game?
In the long run the average gain is zero: wins and losses balance out. This is called a fair game. A negative expected value means a loss on average.
How are expected value, variance and standard deviation related?
The variance is the expected squared deviation from the expected value, Var(X) = E(X²) − E(X)². The standard deviation is its square root and has the same unit as X.
Sources and legal basis
As of: · Editorial policy
Related tools
- Probability calculatorProbability calculator: favourable over possible outcomes, two events, repeated trials (binomial) and drawing without replacement, like a lottery.
- Binomial Distribution CalculatorBinomial distribution calculator: P(X = k), at most, at least and between from n and p, with mean, standard deviation and a full table. Free, no sign-up.
- Normal Distribution CalculatorNormal distribution calculator: probability of at most, at least or between two values, z-score and percentile (inverse), with steps and the 68-95-99.7 rule.
- Standard deviation calculatorStandard deviation calculator for a list or frequency table: switch between sample (s) and population (σ), see every step in a table, plus a box plot.
- Poisson Distribution CalculatorPoisson distribution calculator: probability of exactly, at most, at least or between k events at average rate λ, with the steps and a table of values.
- Cube calculatorCube calculator from edge length, face or space diagonal, volume or surface area: all measures at once, plus inscribed and circumscribed sphere and edge sum.
- Online CalculatorCalculator online, free and instant: type or tap and see the answer as you go – order of operations, brackets, percent, square root, steps and a history list.
- LM317 calculator: output voltage, R2 and constant currentLM317 calculator: output voltage from R1 and R2, R2 for a target voltage or the resistor for a constant current source, using the TI data sheet formula.
- Dependency ratio calculatorDependency ratio calculator: young and older people per 100 people of working age – total, youth and old-age dependency ratio with formulas and examples.