What is "E(X)" in statistics?

Short answer: E(X) is the expected value of a random variable X: the average result you would get if you repeated the experiment a very large number of times. It is also written μ.

Last updated: November 2026.

Formula

E(X) = Σ x · P(x)

Multiply each possible outcome by its probability, then add the results. For continuous variables the sum becomes an integral.

Example 1: a fair die

Each face 1–6 has probability 1/6. E(X) = (1 + 2 + 3 + 4 + 5 + 6) × 1/6 = 21 ÷ 6 = 3.5. You can never roll 3.5, but it is the long-run average of many rolls.

Example 2: a simple bet

OutcomeValue (x)Probabilityx · P(x)
Win+£100.2+£2.00
Lose−£30.8−£2.40
E(X)−£0.40

On average you lose 40p per play. Casino games and lotteries are designed so the player’s expected value is negative. See odds of winning the lottery.

Useful rules

  • E(a + bX) = a + b·E(X)
  • E(X + Y) = E(X) + E(Y), always.
  • E(XY) = E(X)·E(Y) only if X and Y are independent.
  • Variance: Var(X) = E(X²) − [E(X)]².

Frequently asked questions

Is E(X) the same as the mean?

Yes, for a probability distribution. It is the population mean μ. See what μ means.

Can E(X) be a value X never takes?

Yes, as the die example shows (3.5).