Compute the expected value (mean), variance, and standard deviation of any discrete probability distribution. Fully interactive with dynamic outcome rows.
| Outcome (Value x) | Probability P(X=x) | Action |
|---|
The expected value (EV), also known as the expectation or mean of a random variable, is the long‑run average value of repetitions of the experiment it represents. For a discrete random variable X with possible outcomes x₁, x₂, ..., xₙ and corresponding probabilities p₁, p₂, ..., pₙ, the expected value is defined mathematically as:
E[X] = Σ (x_i · p_i)
where Σ p_i = 1 and 0 ≤ p_i ≤ 1.
First formalized by Blaise Pascal and Pierre de Fermat during their famous correspondence on the problem of points (1654), expected value became the foundation of modern probability theory. Later, Daniel Bernoulli applied it to utility theory and risk, while Andrey Kolmogorov placed it on rigorous measure‑theoretic footing. Today, EV underpins fields from econometrics to artificial intelligence.
Given n outcomes with values vᵢ and probabilities pᵢ, the calculator performs three core computations:
Important note: If the sum of probabilities differs from 1, the calculator automatically normalizes them (divides each probability by the total sum) before computing all metrics. This ensures mathematically correct results for any positive weights. A warning will be shown when normalization is applied.
An actuary models a car insurance policy: there is a 2% chance of a $15,000 claim, 8% chance of a $2,500 claim, and 90% chance of $0 claim (no accident). The expected claim cost is:
E[Claim] = 0.02×15000 + 0.08×2500 + 0.90×0 = 300 + 200 = $500. The insurance company sets premium above $500 to cover risk and expenses. Variance: 0.02×(15000-500)² + 0.08×(2500-500)² + 0.90×(0-500)² = 4,450,000 → σ ≈ $2,109.5, indicating high volatility. This demonstrates expected value as baseline but variance as risk measure. Try replicating this with our calculator by adding outcomes (15000, 0.02; 2500, 0.08; 0, 0.90).