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

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.

Summary

Enter outcome-probability pairs to compute E(X), Var(X), and standard deviation for any discrete random variable.

How it works

  1. Enter each outcome value (xᵢ) and its probability (pᵢ) in the table rows.
  2. Click "Add Row" to add more outcome-probability pairs.
  3. The probability sum indicator turns green when all probabilities sum to exactly 1.
  4. Click "Calculate" to compute E(X), Var(X), and standard deviation.
  5. 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