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.
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
Alternative B
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
- Plan A
- Plan B
- Target 30
Outcome and distribution ledger
Plan A
| Outcome label | Value | Probability | Mean contribution | Variance contribution | Gap contribution |
|---|---|---|---|---|---|
| Disruption | -40 | 20% | -8 | 1,548.8 | 14 |
| Typical | 40 | 50% | 20 | 32 | 0 |
| High output | 120 | 30% | 36 | 1,555.2 | 0 |
Show grouped distribution
| Outcome | Probability | Cumulative probability |
|---|---|---|
| -40 | 20% | 20% |
| 40 | 50% | 70% |
| 120 | 30% | 100% |
Plan B
| Outcome label | Value | Probability | Mean contribution | Variance contribution | Gap contribution |
|---|---|---|---|---|---|
| Disruption | 0 | 10% | 0 | 202.5 | 3 |
| Typical | 45 | 80% | 36 | 0 | 0 |
| High output | 90 | 10% | 9 | 202.5 | 0 |
Show grouped distribution
| Outcome | Probability | Cumulative probability |
|---|---|---|
| 0 | 10% | 10% |
| 45 | 80% | 90% |
| 90 | 10% | 100% |
How to use this calculator
- Set Target outcome and choose whether to Compare alternative B. Use the same outcome scale for both alternatives.
- Name the mutually exclusive outcomes. Enter each Outcome value and Probability (%) and adjust each alternative to exactly 100%.
- 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.
- 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.
- 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
Binomial Probability Calculator
Find exact, cumulative, or upper-tail binomial probabilities for repeated yes/no events.
Standard Deviation Calculator
Calculate sample or population standard deviation, variance, mean and extrema from complete decimal data. Preserve small differences and identify invalid entries.
Weighted Average Calculator
Calculate a weighted average from values that do not all contribute equally.
One-Way ANOVA & F Statistic Calculator
Calculate a one-way ANOVA F statistic and p-value from observations or sample summaries. Compare group variation, review the ANOVA table and export CSV.
