Suppose that is a discrete random variable with probability mass function defined over .

  • gives the probability of a value

The -th moment of is defined as:

Thus, the expectation can be treated as the first moment.

Example: