The expectation E(X) is simply defined as the sum of the products of all values by the respective probability. There expectation is
valid for discrete and continuous distributions. The Expectation is actually synonymous with the
mean value.

Symbols

In the notes below the probability distributions relate to probability of successes. In practice
they could equally relate to failures, or outcomes with desired values ( dice throw = 6)