# Expected value

In probability (and especially gambling), the expected value (or expectation) of a random variable is the sum of the probability of each possible outcome of the experiment multiplied by its payoff ("value"). Thus, it represents the average amount one "expects" to win per bet if bets with identical odds are repeated many times. Note that the value itself may not be expected in the general sense, it may be unlikely or even impossible.

For example, an American roulette wheel has 38 equally possible outcomes. A bet placed on a single number pays 35-to-1 (this means that you are paid 35 times your bet and your bet is returned, so you get 36 times your bet). So the expected value of the profit resulting from a $1 bet on a single number is, considering all 38 possible outcomes: [itex]( -$1 \times \frac{37}{38} ) + ( $36 \times \frac{1}{38} )[itex], which is about -$0.0263. Therefore one expects, on average, to lose over two cents for every dollar bet.

 Contents

## Mathematical definition

In general, if [itex]X[itex] is a random variable defined on a probability space [itex](\Omega, P)[itex], then the expected value of [itex]X[itex] (denoted [itex]\mathrm{E}(X)[itex] or sometimes [itex]\langle X \rangle[itex] or [itex]\mathbb{E}X[itex]) is defined as

[itex]\mathrm{E}(X) = \int_\Omega X\, dP[itex]

where the Lebesgue integral is employed. Note that not all random variables have an expected value, since the integral may not exist (e.g., Cauchy distribution). Two variables with the same probability distribution will have the same expected value, if it is defined.

If [itex]X[itex] is a discrete random variable with values [itex]x_1[itex], [itex]x_2[itex], ... and corresponding probabilities [itex]p_1[itex], [itex]p_2[itex], ... which add up to 1, then [itex]\mathrm{E}(X)[itex] can be computed as the sum or series

[itex]\mathrm{E}(X) = \sum_i p_i x_i[itex]

as in the gambling example mentioned above.

If the probability distribution of [itex]X[itex] admits a probability density function [itex]f(x)[itex], then the expected value can be computed as

[itex]\mathrm{E}(X) = \int_{-\infty}^\infty x f(x)\, dx.[itex]

It follows directly from the discrete case definition that if [itex]X[itex] is a constant random variable, i.e. [itex]X = b[itex] for some fixed real number [itex]b[itex], then the expected value of [itex]X[itex] is also [itex]b[itex].

## Properties

### Linearity

The expected value operator (or expectation operator) [itex]\mathrm{E}[itex] is linear in the sense that

[itex]\mathrm{E}(a X + b Y) = a \mathrm{E}(X) + b \mathrm{E}(Y)[itex]

for any two random variables [itex]X[itex] and [itex]Y[itex] (which need to be defined on the same probability space) and any real numbers [itex]a[itex] and [itex]b[itex].

### Functional non-invariance

In general, the expectation operator and functions of random variables do not commute; that is

[itex]\mathrm{E}(g(X)) = \int_{\Omega} g(X)\, dP \neq g(\operatorname{E}X),[itex]

except as noted above.

### Non-multiplicativity

In general, the expected value operator is not multiplicative, i.e. [itex]\mathrm{E}(X Y)[itex] is not necessarily equal to [itex]\mathrm{E}(X) \mathrm{E}(Y)[itex], except if [itex]X[itex] and [itex]Y[itex] are independent or uncorrelated. This lack of multiplicativity gives rise to study of covariance and correlation.

### Iterated expectation

For any two random variables [itex]X,Y[itex] one may define the conditional expectation:

[itex] \mathbb{E}[X|Y](y) = \mathbb{E}[X|Y=y] = \sum_x \mathbb{P}(X=x|Y=y)\mathbb{P}(X=x).[itex]

Then the expectation of [itex]X[itex] satisfies

[itex]\mathbb{E}[X] = \mathbb{E} \left( \mathbb{E}[X|Y] \right).[itex]

The right hand side of this equation is referred to as the iterated expectation. This proposition is treated in law of total expectation.

## Uses and applications of the expected value

The expected values of the powers of [itex]X[itex] are called the moments of [itex]X[itex]; the moments about the mean of [itex]X[itex] are expected values of powers of [itex]X - \mathrm{E}(X)[itex]. The moments of some random variables can be used to specify their distributions, via their moment generating functions.

To empirically estimate the expected value of a random variable, one repeatedly measures observations of the variable and computes the arithmetic mean of the results. This estimates the true expected value in an unbiased manner and has the property of minimizing the sum of the squares of the residuals (the sum of the squared differences between the observations and the estimate). The law of large numbers demonstrates that (under fairly mild conditions) as the size of the sample gets larger, the variance of this estimate gets smaller.

In classical mechanics, the center of mass is an analogous concept to expectation. For example, suppose [itex]X[itex] is a discrete random variable with values [itex]x_i[itex] and corresponding probabilities [itex]p_i[itex]. Now consider a weightless rod on which are placed weights, at locations [itex]x_i[itex] along the rod and having masses [itex]p_i[itex] (whose sum is one). The point at which the rod balances (its center of gravity) is [itex]\mathrm{E}(X)[itex].

## Expectation of matrices

If [itex]X[itex] is an [itex]m \times n[itex] matrix, then the expected value of the matrix is a matrix of expected values:

[itex]

\mathrm{E}[X] = \mathrm{E} \begin{bmatrix}

x_{1,1} & x_{1,2} & \cdots & x_{1,n} \\
x_{2,1} & x_{2,2} & \cdots & x_{2,n} \\
\vdots \\
x_{m,1} & x_{m,2} & \cdots & x_{m,n}


\end{bmatrix} = \begin{bmatrix}

\mathrm{E}(x_{1,1}) & \mathrm{E}(x_{1,2}) & \cdots & \mathrm{E}(x_{1,n}) \\
\mathrm{E}(x_{2,1}) & \mathrm{E}(x_{2,2}) & \cdots & \mathrm{E}(x_{2,n}) \\
\vdots \\
\mathrm{E}(x_{m,1}) & \mathrm{E}(x_{m,2}) & \cdots & \mathrm{E}(x_{m,n})


\end{bmatrix} [itex]

This property is utilized in covariance matrices.

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy