Geometry Solver
Home › Probability and statistics

How to find the expected value M(X) and the variance D(X) from a distribution table

The rule: M(X) = Σ x·p, then D(X) = M(X²) − M(X)²

A discrete random variable is given by a table of its values and their probabilities. Three facts do all the work. The probabilities add up to - that recovers any missing entry. The expected value is the weighted average of the values:

The variance measures how far the values scatter around that average. The definition is , but the short form is far quicker to compute:

where is found from the same table with each value squared and the probabilities untouched. Two sanity checks: must lie between the smallest and the largest value, and can never be negative.

Problem

A random variable is given by the distribution table

Find and .

Answer

, , (standard deviation ).
Checked by hand: the missing probability, the mean and the variance were all recomputed.

Step-by-step solution

1. Recover the missing probability

The probabilities of the whole table sum to :

So .

2. The expected value

Multiply each value by its probability and add:

The result sits between and , as an average must.

3. The variance through M(X²)

Square the values, keep the probabilities:

Now the short formula:

4. If the standard deviation is asked too

Unlike the variance, it is measured in the same units as itself, which is why it is the number usually quoted.

How to check yourself

The long definition must give the same answer:

Same value - and if your two routes disagree, the error is almost always a forgotten square in .

Add to Chrome - solve your own

Screenshot any problem on your screen and get the steps. Chrome on a computer; free.