What is the «expected value» («expectation») in probability theory?

Let X be a random variable with a finite number of finite outcomes x1, x2, …, xk occurring with probabilities p1, p2, …, pk, respectively.
The expectation of X is defined as:
03

en.wikipedia.org/wiki/Expected_value#Finite_case