Skip to content
FiftyCalc Free calculators for all 50 states

Expected Value Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter up to five outcomes with their probabilities (set unused ones to 0) to get the expected value, variance and standard deviation.

Result

Sample figures

Expected value E(X)—

Variance —

  • Standard deviation—
  • Sum of probabilities—
  • Check—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Expected Value Calculator

Outcome 1 value: enter a number. Prefilled example: 0.

Outcome 1 probability (0 to 1): enter a number from 0 to 1. Prefilled example: 0.2.

Outcome 2 value: enter a number. Prefilled example: 1.

Outcome 2 probability (0 to 1): enter a number from 0 to 1. Prefilled example: 0.3.

Outcome 3 value: enter a number. Prefilled example: 2.

Outcome 3 probability (0 to 1): enter a number from 0 to 1. Prefilled example: 0.3.

Outcome 4 value: enter a number. Prefilled example: 3.

Outcome 4 probability (0 to 1): enter a number from 0 to 1. Prefilled example: 0.2.

Outcome 5 value: enter a number. Prefilled example: 0.

Outcome 5 probability (0 to 1): enter a number from 0 to 1. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Outcome 1 value: enter a number.
  2. Outcome 1 probability (0 to 1): enter a number from 0 to 1.
  3. Outcome 2 value: enter a number.
  4. Outcome 2 probability (0 to 1): enter a number from 0 to 1.
  5. Outcome 3 value: enter a number.
  6. Outcome 3 probability (0 to 1): enter a number from 0 to 1.
  7. Outcome 4 value: enter a number.
  8. Outcome 4 probability (0 to 1): enter a number from 0 to 1.
  9. Outcome 5 value: enter a number.
  10. Outcome 5 probability (0 to 1): enter a number from 0 to 1.
  11. Read the result: Expected value E(X); the panel also shows Variance, Standard deviation, Sum of probabilities and Check.

How this calculator works

Expected value of a discrete random variable: E(X) = Σ pᵢ xᵢ, each outcome weighted by its probability. The probabilities must be between 0 and 1 and add up to 1.

Variance: Var(X) = Σ pᵢ xᵢ² − E(X)², and the standard deviation is its square root. They measure how far the outcomes typically fall from the expected value.

The formula

  1. Ev=p1×x1+p2×x2+p3×x3+p4×x4+p5×x5
Symbols used in the formula
SymbolMeaning
x1Outcome 1 value
p1Outcome 1 probability (0 to 1)
x2Outcome 2 value
p2Outcome 2 probability (0 to 1)
x3Outcome 3 value
p3Outcome 3 probability (0 to 1)
x4Outcome 4 value
p4Outcome 4 probability (0 to 1)
x5Outcome 5 value
p5Outcome 5 probability (0 to 1)
EvExpected value E(X)

Worked example

Outcome 1 value0
Outcome 1 probability (0 to 1)0.2
Outcome 2 value1
Outcome 2 probability (0 to 1)0.3
Outcome 3 value2
Outcome 3 probability (0 to 1)0.3
Outcome 4 value3
Outcome 4 probability (0 to 1)0.2
Outcome 5 value0
Outcome 5 probability (0 to 1)0
Variance1.05
Standard deviation1.0247
Sum of probabilities1
CheckThe probabilities add up to 1
  1. Ev=0.2×0+0.3×1+0.3×2+0.2×3+0×0=1.5

Expected value E(X) 1.5

Each step uses the unrounded value of the step before it; figures on this page are rounded for display.

Frequently asked questions

What is the expected value of outcomes 0, 1, 2, 3 with probabilities 0.2, 0.3, 0.3, 0.2?

0 × 0.2 + 1 × 0.3 + 2 × 0.3 + 3 × 0.2 = 1.5, with a variance of 1.05.

Does the expected value have to be a possible outcome?

No. It is a long-run average: a fair six-sided die has an expected value of 3.5, which can never be rolled.

Questions answered

Related calculators