Expected Value Calculator

Calculate the expected value (mean) of a random variable based on its probability distribution.

Variable Type

Discrete Random Variable

Value (x)Probability P(X = x)Actions

Expected Value Formula

For a discrete random variable, the expected value is calculated as:

E[X]=∑ixi⋅P(X=xi)E[X] = \sum_{i} x_i \cdot P(X = x_i)

Where:

  • xix_i = Possible values of the random variable
  • P(X=xi)P(X = x_i) = Probability of each value

The variance is calculated as:

Var(X)=E[X2]−(E[X])2Var(X) = E[X^2] - (E[X])^2
E[X2]=∑ixi2⋅P(X=xi)E[X^2] = \sum_{i} x_i^2 \cdot P(X = x_i)

The standard deviation is the square root of the variance:

΃X=Var(X)\sigma_X = \sqrt{Var(X)}