expected value

The expected value of a random variable is the weighted average of the probabilities associated with each possible outcome in the sample space.

Formally,
the expected value of a discrete random variable X with probability mass function p(x) is given by

E[X]=xp(x)

and the expected value of a continuous random variable X with probability density function f(x) is given by

E[X]=xf(x)dx

In general,
the expected value of a function h(X,Y) of two random variables is given by

E[h(X,Y)]=xyh(x,y)p(x,y)

in the discrete case, or

E[h(X,Y)]=h(x,y)f(x,y)dxdy

in the continuous case.
This can be trivially generalized to any function of any number of finite random variables.


Powered by Forestry.md