Mathematical expectation

The mathematical expectation E(X) 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 X with n possible events x1,x2,,xn and probabilities P(X=xi)=Pi the mathematical expectation is:

E(X)=i=1nxiP(X=xi)=x1P(X=x1)+x2P(X=x2)+ ++xnP(X=xn)

Example

Four people are betting Math input error on a number of a dice, each chooses a different number. Then for each euro that they have bet, if winning, they get 3 euros. Is it worth betting in this game?

The probability of losing Math input error is 56, since we will lose if the selected number is not the result.

On the other hand, the probability of gaining 3 Math input error is 16.

This way the expectation is: E(X)=(156)+(316)=56+36=26=130.33

Therefore, for every euro bet we can lose 0.33 cents. It is said that this is a game of negative expectation.

We say that a game is equitable when the benefit expectation is 0.

If we have a game expectation of positive benefit, it is said that it is a game of positive expectation.