03 · UNDERSTAND THE METHOD
How the discrete expected value calculator works
Expected value is a probability-weighted average of a discrete variable’s possible outcomes. This calculator uses matching outcome and probability lists and checks that the probabilities form a complete distribution. It also reports variance around the calculated expectation. The result can summarize hypothetical repeated outcomes, but it need not be one of the outcomes that can occur on a single trial.
The formula and its variables
- xᵢ
- Possible outcome values.
- pᵢ
- Matching probabilities summing to one.
The calculation, step by step
- Enter possible outcomes and their matching probabilities in the same order. Include every probability mass needed to total one.
- Multiply each outcome by its probability and add the contributions. Require nonnegative probabilities and a complete total within the stated tolerance.
- Subtract the expectation from each outcome, square the difference, and weight by probability to calculate variance. Read signed expectation contributions independently from variance.
A worked example
Outcomes 0,10,20 with probabilities0.2,0.5,0.3 contribute zero, five, and six to the mean. The expectation is 11. Variance is 0.2×121 +0.5×1 +0.3×81=49. A single draw still gives0,10, or 20; eleven represents the distribution average rather than an additional possible outcome.
| Possible outcome values | 0,10,20 |
|---|---|
| Matching probabilities | .2,.5,.3 |
| Expected value | 11 |
How to read the result and visual
Probabilities express frequency or weight within a model, and expectation combines their values without guaranteeing any particular trial. Negative outcomes can lower the expectation. Variance is nonnegative and uses squared output units. The contribution chart may show only an initial subset for readability, while the calculation uses every entered pair.
Assumptions, rounding, and limitations
Lists must have matching lengths, valid finite outcomes, and probabilities between zero and one. Arbitrary weights are not normalized into probabilities; use a weighted-average tool for that purpose. The model does not include unspecified outcomes or estimate probabilities from data. Numeric tolerance accommodates tiny decimal sum errors but not materially incomplete distributions.
Frequently asked questions
Must the expected value be an actual outcome?
No. It is an average across possible outcomes and can lie between them.
Can I enter weights instead of probabilities?
Only if they already sum to one. Otherwise use the weighted-average calculator.