The mathematical expectation is the sum of the probability of every possible event multiplied by the frequency of the mentioned event, that is to say if we have a discrete quantitative variable with possible events and probabilities the mathematical expectation is:
Example
Four people are betting on a number of a dice, each chooses a different number. Then for each euro that they have bet, if winning, they get euros. Is it worth betting in this game?
The probability of losing is , since we will lose if the selected number is not the result.
On the other hand, the probability of gaining is .
This way the expectation is:
Therefore, for every euro bet we can lose cents. It is said that this is a game of negative expectation.
We say that a game is equitable when the benefit expectation is .
If we have a game expectation of positive benefit, it is said that it is a game of positive expectation.