Essential Math, Editors Pick, Mathematics, Data Science, Machine Learning.
from Essential Math for Data Science that the expectation is the mean value you’ll get if you draw a large number of samples from the distribution: with the random variable X having n possible outcomes, x_i being the ith possible outcome corresponding to a probability of P(x_i). The expected value