Expected value

By Jude Wallis · Updated

The expected value of a random variable is its long-run average, found by multiplying each value by its probability and adding the products.

The expected value of a random variable XX is written E(X)E(X) (E of X) or μX\mu_X (mu sub X), and it is the probability-weighted average of the possible values:

E(X)=μX=xiP(xi)E(X) = \mu_X = \sum x_i P(x_i)

Each value is multiplied by its own probability rather than counted once, and that weighting is the whole difference between an expected value and an ordinary average.

Let XX be the number of cars a household owns, with P(0)=0.2P(0) = 0.2, P(1)=0.4P(1) = 0.4, P(2)=0.3P(2) = 0.3 and P(3)=0.1P(3) = 0.1. Then E(X)=0(0.2)+1(0.4)+2(0.3)+3(0.1)=1.3E(X) = 0(0.2) + 1(0.4) + 2(0.3) + 3(0.1) = 1.3 cars.

That 1.3 carries two lessons. First, an expected value need not be a value the variable can actually take: no household owns 1.3 cars. It describes the average over many households, not a prediction about the next one. Second, it is not the most likely outcome either. Owning 1 car is the most probable single result here, and most likely and average are separate questions. The mode answers the first, the expected value answers the second.

The other frequent slip is dropping the weights entirely. The plain average of 0, 1, 2 and 3 is 1.5, and that would be correct only if all four outcomes were equally likely. They are not. Weight only moves the average through the value it sits on, so the 0.2 parked on 0 contributes nothing at all: 0(0.2)=00(0.2) = 0. The pull comes from the top of the table, where 3 carries only 0.1 of the weight instead of the 0.25 a flat average assumes, and that is what brings the expected value down to 1.3.

Some distributions come with a shortcut. A binomial variable with nn trials and success probability pp has μX=np\mu_X = np directly, so 10 free throws shot at p=0.3p = 0.3 give an expected 3 makes without summing eleven separate terms. The law of large numbers is what makes any of this useful in practice: as the number of repetitions grows, the observed sample mean converges on E(X)E(X). That also fixes the relationship worth keeping straight. E(X)E(X) is a parameter of the probability distribution, a fixed number you calculate; a sample mean is a statistic that varies from one batch of data to the next and settles toward it.

The sum here is the discrete version. For a continuous variable the same weighted-balance idea becomes an integral of xx against the density instead of a sum, which is the calculus notion of the average value of a function.

The same weighted sum, with dollar payoffs, is how expected value is calculated in economics: how to calculate expected value.

Where this comes up

12 pages on the site use this term.

More random variables and distributions terms, or browse the full statistics glossary.