Expectation (math)

The mathematical expectation of a continuously distributed random variable  with probability density function is

The expectation is also known as the mean of .

The expectation with respect to some function  where  is distributed according to  is

For a discretely distributed random variable  with probability mass function it is