Expected Value Calculator (Discrete)
Enter outcome-probability pairs to compute E(X), Var(X), and standard deviation for any discrete random variable.
Probability Distribution
#
Value (xᵢ)
Probability (pᵢ)
Sum of probabilities:
0.0000
Probabilities must sum to exactly 1.0000
Quick Presets
Results
E(X)
—
Expected Value
Var(X)
—
Variance
σ(X)
—
Std Deviation
- Number of outcomes
- —
- Probability sum
- —
Term-by-Term Breakdown
Enter values and click Calculate to see breakdown.
| xᵢ | pᵢ | xᵢ×pᵢ | (xᵢ−E)² | pᵢ(xᵢ−E)² |
|---|
Summary
Enter outcome-probability pairs to compute E(X), Var(X), and standard deviation for any discrete random variable.
How it works
- Enter each outcome value (xᵢ) and its probability (pᵢ) in the table rows.
- Click "Add Row" to add more outcome-probability pairs.
- The probability sum indicator turns green when all probabilities sum to exactly 1.
- Click "Calculate" to compute E(X), Var(X), and standard deviation.
- Review the breakdown table to see each term's contribution to the expected value and variance.
Use cases
- Computing the expected payoff of a lottery or gambling game.
- Finding the average outcome of a custom probability experiment.
- Verifying textbook discrete distribution problems.
- Calculating expected profit or loss from a decision tree.
- Teaching statistics: building intuition for weighted averages.
- Quality control: expected number of defects per batch.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu