Expected Value & Outcome Risk Calculator

Enter the possible values and probabilities for one or two alternatives. Compare long-run expected outcomes, the chance of reaching a shared target and the size of a miss. The outcome and cumulative charts show how the probabilities are distributed. A ledger connects each entry to the expected value, variance and target gap.

Discrete outcomes

Expected value & outcome risk

Compare long-run averages with the chance and size of falling below your target.

Enter outcomes and probabilities

Use mutually exclusive outcomes on the same scale. Each alternative's probabilities must total exactly 100%.

Alternative A

Outcome 1
Outcome 2
Outcome 3

Alternative B

Outcome 1
Outcome 2
Outcome 3

Compare results at your target

An outcome of 30 or higher meets the target.

Plan A

Expected value
48
Standard deviation
56
Variance
3,136
Probability of meeting target
80%
Probability of missing target
20%
Average gap to target
14
Average gap when missed
70

Plan B

Expected value
45
Standard deviation
20.124612
Variance
405
Probability of meeting target
90%
Probability of missing target
10%
Average gap to target
3
Average gap when missed
30

Average gap to target counts zero on hits. Average gap when missed averages only the below-target cases.

Outcome distribution

Each stem shows the probability of that exact outcome.
Discrete outcome probabilitiesPlan A and Plan B. Outcome range -52.8 to 132.8. The values for each point appear in the distribution ledger.Plan A: -40, 20%Plan A: 40, 50%Plan A: 120, 30%Plan B: 0, 10%Plan B: 45, 80%Plan B: 90, 10%89.6%-52.8132.8
  • Plan A
  • Plan B
  • Target 30

Outcome and distribution ledger

Plan A

Outcome labelValueProbabilityMean contributionVariance contributionGap contribution
Disruption-4020%-81,548.814
Typical4050%20320
High output12030%361,555.20
Show grouped distribution
OutcomeProbabilityCumulative probability
-4020%20%
4050%70%
12030%100%

Plan B

Outcome labelValueProbabilityMean contributionVariance contributionGap contribution
Disruption010%0202.53
Typical4580%3600
High output9010%9202.50
Show grouped distribution
OutcomeProbabilityCumulative probability
010%10%
4580%90%
9010%100%

How to use this calculator

  1. Set Target outcome and choose whether to Compare alternative B. Use the same outcome scale for both alternatives.
  2. Name the mutually exclusive outcomes. Enter each Outcome value and Probability (%) and adjust each alternative to exactly 100%.
  3. Review Expected value, Standard deviation and the probability of meeting the target for each alternative. Compare Average gap to target with Average gap when missed.
  4. Switch between Outcome probabilities and Cumulative probability to see the same grouped distribution. The target belongs to the meeting group when the outcome equals it.
  5. Review the Outcome and distribution ledger or download the CSV to check original inputs, weighted contributions and grouped probabilities.

The Formula

The mathematical logic powering this calculation is:

Convert each entered percent to a probability pᵢ and require Σpᵢ = 1 exactly. For outcome values xᵢ, expected value μ = Σpᵢxᵢ, variance = Σpᵢ(xᵢ − μ)², and standard deviation = √variance. Variance is in squared outcome units. Expected value and standard deviation use the original outcome units.

For target T, an outcome meets the target if xᵢ ≥ T. The probability of a miss is P(X < T). Average gap to target = Σpᵢ max(T − xᵢ, 0), with zero gap on all target hits. Average gap when missed = average gap to target ÷ P(X < T) when the denominator is positive. When all positive-probability outcomes meet the target, the unconditional gap is zero and the conditional gap is unavailable.

The probability mass chart groups rows with equal numeric outcome values. The cumulative chart shows P(X ≤ x), including any probability mass exactly at x. The probability meeting the target includes outcomes equal to T. Alternative A and B each have their own distribution. They are compared on the same outcome scale.

Each alternative accepts 1 to 8 rows. Enter plain percentages from 0 to 100 and signed outcomes and target values within ±1 billion. Use at most six decimal places. Probabilities, weighted contributions, variance and threshold metrics use exact arithmetic before display. Square roots and the graph use numerical approximations. The ledger's CSV retains exact fractions.

Worked Example

If you input:

  • Target outcome: 30
  • Plan A outcomes and probabilities: −40 (20%), 40 (50%), 120 (30%)
  • Plan B outcomes and probabilities: 0 (10%), 45 (80%), 90 (10%)

Result:

Plan A has expected value 48, variance 3,136 and standard deviation 56. It meets the target 80% of the time, with average gap 14 across all cases and 70 among misses. Plan B has expected value 45, variance 405 and standard deviation about 20.12. It meets the target 90% of the time, with average gap 3 across all cases and 30 among misses.

Frequently Asked Questions

How do I calculate expected value?

Multiply each outcome value by its probability and add the products. Express 20% as 0.20 in the formula. The result is the mean of the entered distribution over repeated realizations, and it may fall between possible outcomes.

Why do the entered probabilities have to total 100%?

The rows describe the complete set of mutually exclusive cases for one alternative. Their probabilities must add to exactly 100%. Adjust rounded percentages to reflect the intended total. The calculator uses the percentages you provide.

What is the difference between variance and standard deviation?

Variance averages squared differences from the expected value using the outcome probabilities. Standard deviation is its square root, in the same units as the outcomes. Both describe the probability model you enter.

How do the two gap measures differ?

Average gap to target includes every case and contributes zero when the target is met. Average gap when missed considers only cases strictly below the target and weights them by their conditional probabilities. If there are no misses with positive probability, the conditional result is unavailable.

Does an outcome exactly at the target count as meeting it?

Yes. The success probability uses outcomes at or above the target and the miss probability uses outcomes strictly below the target. The cumulative chart at the target uses at-or-below values, so it includes the probability of equality on its own side of the comparison.

Can two rows have the same outcome value?

Yes. Separate mutually exclusive cases can produce the same numeric value. Their entries and weighted contributions remain in the ledger, and their probabilities are added together in the chart. Rows with zero probability contribute zero and have no chart mark.

Can a higher expected value come with a higher chance of missing my target?

Yes. A rare high outcome can lift the mean even if most cases fall short of a chosen target. Compare the mean, chances and gaps together using the decision criteria you care about.

Similar Calculators