How to Calculate Expected Value Step by Step
- List every possible numeric outcome of the discrete random variable.
- Assign each outcome its probability. The probabilities must total 1.
- Multiply each outcome xᵢ by its probability pᵢ.
- Add those weighted contributions to get E(X).
- For variance, multiply each squared distance (xᵢ − E(X))² by pᵢ and add.
- Take the square root of variance to get standard deviation.
Worked example
Suppose the possible net results are −10, 5, and 20 with probabilities 0.2, 0.5, and 0.3. Expected value is (−10 × 0.2) + (5 × 0.5) + (20 × 0.3) = 6.5. The variance is 110.25, so the standard deviation is 10.5.
What the results mean
Expected value describes the long-run probability-weighted average over many repetitions under the same distribution. It is not a guarantee for one trial and may not be a possible outcome. Variance and standard deviation describe spread around that average; variance uses squared units, while standard deviation uses the original outcome unit.
Assumptions and limits
- The entered rows cover all mutually exclusive outcomes relevant to the model.
- The probabilities are valid for the situation and together describe a complete distribution.
- The calculator supports up to 200 finite numeric outcomes. Very large magnitudes that overflow browser arithmetic are rejected.
- If several events lead to the same numeric outcome, you may enter them separately or combine their probabilities.
Formula references
The probability rules and moment definitions follow the NIST/SEMATECH e-Handbook description of discrete probability distributions and NIST’s tutorial section on expected value, variance, and standard deviation.
