📚 Formula breakdown
Expected value (EV): the weighted average of outcomes
Expected value is one of those ideas that feels like magic the first time you “get” it. A single roll
of a die is random. A single scratch-off is random. A single business decision is uncertain.
But if you repeat the same situation many times, the average result tends to settle into a predictable
number. That long-run average is the expected value.
If a random variable can take outcomes x1, x2, …, xn with probabilities
p1, p2, …, pn (and the probabilities add up to 1), then the expected value is:
EV = E[X] = Σ (xi · pi)
That symbol Σ (sigma) just means “add up all the rows.” Each row contributes an amount equal to
Outcome × Probability. When you add those contributions together, you get the expected value.
It’s called a “weighted average” because outcomes with higher probability count more.
What the calculator is doing
- It reads each outcome x and probability p.
- It converts probabilities typed as decimals (0.25), percentages (25%), or fractions (1/4) into a decimal.
- It checks whether probabilities sum to 1. If you turn Auto-normalize on, it scales them so they sum to 1.
- It calculates each row’s contribution x · p and totals them to produce EV.
EV doesn’t promise what will happen once. It describes what happens on average across many independent repeats.
That’s why casinos care about EV, why insurers care about EV, and why decision-makers use EV to compare options.
Variance and standard deviation: “how risky is it?”
Two choices can have the same EV but feel very different. Example: one might be “almost always near EV,” while
the other is “usually small, sometimes huge.” To capture that uncertainty, we use variance and
standard deviation.
Variance = Var(X) = E[(X − μ)²] = Σ ( (xi − μ)² · pi )
Std Dev = σ = √Var(X)
Here μ is the expected value (EV). The term (x − μ)² measures how far an outcome is from the EV, squared so
negatives don’t cancel positives. Multiplying by probability gives a weighted average of squared distances.
Standard deviation is just the square root of variance, so it’s back in the same units as the outcome.
If your outcomes are dollars, your standard deviation is also dollars.
In the results box above, the “risk feel” bar uses your standard deviation (scaled relative to the magnitude of
your outcomes) to give a quick intuition: low standard deviation usually means a steadier, more predictable outcome.
🧪 Examples
Real examples you can copy
Example 1: A simple dice game
You roll a fair six-sided die. If it lands on 6 you win $30. Otherwise you win $0.
The probability of rolling a 6 is 1/6, and the probability of “not 6” is 5/6.
- Outcome: 30, Probability: 1/6
- Outcome: 0, Probability: 5/6
EV = 30·(1/6) + 0·(5/6) = 5. So in the long run you “average” $5 per roll.
If the game costs more than $5 to play, it’s negative EV for you (on average).
Example 2: Two projects, same EV, different risk
Project A: 50% chance of +$200, 50% chance of +$0 → EV = $100.
Project B: 90% chance of +$90, 10% chance of +$190 → EV = $100 too.
Same EV, but Project A is “swingier” (higher standard deviation) because outcomes are far apart.
Project B is steadier because most outcomes are close to the EV.
Example 3: Warranty decision (quick sanity check)
Suppose a $120 warranty covers a repair that would cost $800, and you estimate a 10% chance the repair happens.
Expected repair cost = 0.10·800 + 0.90·0 = $80. EV says paying $120 is not worth it on average.
But many people still buy warranties to avoid the risk of a rare big bill — that’s the difference between EV and
risk preference.
Example 4: Shipping time estimate
If delivery time is 2 days with probability 0.6, 4 days with probability 0.3, and 7 days with probability 0.1,
then EV = 2·0.6 + 4·0.3 + 7·0.1 = 3.1 days. It doesn’t mean your package will arrive in 3.1 days,
but it’s a useful planning average.