Expected value
It is possible to think of the expected value as a weighted average, where the weights,  are equal to .  The sum over all probabilities, equals one ().  This allows us to write the weighted average as: