Easy CalculatorsOnline
A little less guesswork.

Statistics · EVERYDAY CLARITY

Discrete expected value calculator

Combine outcomes with a complete probability distribution.

Units & number format

Number formatting changes the display; the interface and guides are in English. Dates use calendar controls; numeric lists use decimal points and comma or space separators.

01 · CALCULATE

Work out your numbers

Your inputs stay in this browser.

Example result · using the values shown

Expected value
11
Variance49
See visual ↓

Nonnegative probabilities must sum to1 within1e−9. The calculator does not normalize arbitrary weights.

02 · SEE THE RESULT

Your numbers, pictured

Example visualization

Outcome contributions to expectation

0 with p=0.20
10 with p=0.55
20 with p=0.36
0Shared scale6

Up to thirty contributions are shown; the expectation uses the full distribution.

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

E[X]=Σxᵢpᵢ; Var(X)=Σpᵢ(xᵢ−E[X])²
xᵢ
Possible outcome values.
pᵢ
Matching probabilities summing to one.

The calculation, step by step

  1. Enter possible outcomes and their matching probabilities in the same order. Include every probability mass needed to total one.
  2. Multiply each outcome by its probability and add the contributions. Require nonnegative probabilities and a complete total within the stated tolerance.
  3. 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.

Example inputs and calculated output
Possible outcome values0,10,20
Matching probabilities.2,.5,.3
Expected value11

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.

Reference sources

How we check calculations and what verification covers