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.
A random variable is given by the distribution table
Find and .
The probabilities of the whole table sum to :
So .
Multiply each value by its probability and add:
The result sits between and , as an average must.
Square the values, keep the probabilities:
Now the short formula:
Unlike the variance, it is measured in the same units as itself, which is why it is the number usually quoted.
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 .
Screenshot any problem on your screen and get the steps. Chrome on a computer; free.