The mean of a random variable X is also called its expected value and, alternatively, denoted by E(X). That is, the mean and expected value E(X) are the same quantity and will be used interchangeably. The mean of X or population mean

Here the sum extends over all the distinct values xi of X.