Expected value
From Free net encyclopedia
In probability theory (and especially gambling), the expected value (or mathematical 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. A game or situation in which the expected value for the player is zero (no net gain nor loss) is called a "fair game."
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:
- <math>\left( -\$1 \times \frac{37}{38} \right) + \left( \$35 \times \frac{1}{38} \right),</math>
which is about -$0.0526. Therefore one expects, on average, to lose over five cents for every dollar bet.
Contents |
Mathematical definition
In general, if <math>X\,</math> is a random variable defined on a probability space <math>(\Omega, P)\,</math>, then the expected value of <math>X\,</math> (denoted <math>\mathrm{E}(X)\,</math> or sometimes <math>\langle X \rangle</math> or <math>\mathbb{E}(X)</math>) is defined as
- <math>\mathrm{E}(X) = \int_\Omega X\, dP</math>
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 <math>X</math> is a discrete random variable with values <math>x_1</math>, <math>x_2</math>, ... and corresponding probabilities <math>p_1</math>, <math>p_2</math>, ... which add up to 1, then <math>\mathrm{E}(X)</math> can be computed as the sum or series
- <math>\mathrm{E}(X) = \sum_i p_i x_i\,</math>
as in the gambling example mentioned above.
If the probability distribution of <math>X</math> admits a probability density function <math>f(x)</math>, then the expected value can be computed as
- <math>\mathrm{E}(X) = \int_{-\infty}^\infty x f(x)\, \mathrm d x.</math>
It follows directly from the discrete case definition that if <math>X</math> is a constant random variable, i.e. <math>X = b</math> for some fixed real number <math>b</math>, then the expected value of <math>X</math> is also <math>b</math>.
The expected value of an arbitrary function of x, g(x), with respect to the probability density function f(x) is given by
- <math>\mathrm{E}(g(X)) = \int_{-\infty}^\infty g(x) f(x)\, \mathrm d x.</math>
Properties
Linearity
The expected value operator (or expectation operator) <math>\mathrm{E}</math> is linear in the sense that
- <math>\mathrm{E}(a X + b Y) = a \mathrm{E}(X) + b \mathrm{E}(Y)\,</math>
for any two random variables <math>X</math> and <math>Y</math> (which need to be defined on the same probability space) and any real numbers <math>a</math> and <math>b</math>.
Iterated expectation
For any two random variables <math>X,Y</math> one may define the conditional expectation:
- <math> \mathrm{E}[X|Y](y) = \mathrm{E}[X|Y=y] = \sum_x x \cdot \mathrm{P}(X=x|Y=y).</math>
Then the expectation of <math>X</math> satisfies
- <math>
\begin{matrix} \mathrm{E} \left( \mathrm{E}[X|Y] \right) & = & \sum_y \mathrm{E}[X|Y=y] \cdot \mathrm{P}(Y=y) \\
& = & \sum_y \left( \sum_x x \cdot \mathrm{P}(X=x|Y=y) \right) \cdot \mathrm{P}(Y=y) \\ & = & \sum_y \sum_x x \cdot \mathrm{P}(X=x|Y=y) \cdot \mathrm{P}(Y=y) \\ & = & \sum_y \sum_x x \cdot \mathrm{P}(Y=y|X=x) \cdot \mathrm{P}(X=x) \\ & = & \sum_x x \cdot \mathrm{P}(X=x) \cdot \left( \sum_y \mathrm{P}(Y=y|X=x) \right) \\ & = & \sum_x x \cdot \mathrm{P}(X=x) \\ & = & \mathrm{E}[X]. \end{matrix}</math>
Hence, the following equation holds:
- <math>\mathrm{E}[X] = \mathrm{E} \left( \mathrm{E}[X|Y] \right).</math>
The right hand side of this equation is referred to as the iterated expectation. This proposition is treated in law of total expectation.
Inequality
If a random variable X is always less than or equal to another random variable Y, the expectation of X is less than or equal to that of Y:
If <math> X \leq Y</math>, then <math> \mathrm{E}[X] \leq \mathrm{E}[Y]</math>.
In particular, since <math> X \leq |X| </math> and <math> -X \leq |X| </math>, the absolute value of expectation of a random variable is less or equal to the expectation of its absolute value:
- <math>|\mathrm{E}[X]| \leq \mathrm{E}[|X|]</math>
Representation
The following formula holds for any nonnegative real--valued random variable <math> X </math> (such that <math> \mathrm{E}[X] < \infty </math>), and positive real number <math> \alpha </math>:
- <math> \mathrm{E}[X^\alpha] = \alpha \int_{0}^{\infty} t^{\alpha -1}\mathrm{P}(X>t) \mathrm d t.</math>
Non-multiplicativity
In general, the expected value operator is not multiplicative, i.e. <math>\mathrm{E}(X Y)</math> is not necessarily equal to <math>\mathrm{E}(X) \mathrm{E}(Y)</math>, except if <math>X</math> and <math>Y</math> are independent or uncorrelated. This lack of multiplicativity gives rise to study of covariance and correlation.
Functional non-invariance
In general, the expectation operator and functions of random variables do not commute; that is
- <math>\mathrm{E}(g(X)) = \int_{\Omega} g(X)\, \mathrm d P \neq g(\operatorname{E}X),</math>
except as noted above.
Uses and applications of the expected value
The expected values of the powers of <math>X</math> are called the moments of <math>X</math>; the moments about the mean of <math>X</math> are expected values of powers of <math>X - \mathrm{E}(X)</math>. 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 <math>X</math> is a discrete random variable with values <math>x_i</math> and corresponding probabilities <math>p_i</math>. Now consider a weightless rod on which are placed weights, at locations <math>x_i</math> along the rod and having masses <math>p_i</math> (whose sum is one). The point at which the rod balances (its center of gravity) is <math>\mathrm{E}(X)</math>. (Note however, that the center of mass is not the same as the center of gravity.)
Expectation of matrices
If <math>X</math> is an <math>m \times n</math> matrix, then the expected value of the matrix is a matrix of expected values:
- <math>
\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} </math>
This property is utilized in covariance matrices.
See also
- Conditional expectation
- An inequality on location and scale parameters.
- Expected number
- Expected value is also a key concept in economics and finance.
- The general term expectation.
External links
de:Erwartungswert es:Valor esperado fr:Espérance mathématique gl:Valor esperado it:Valore atteso he:תוחלת nl:Verwachting (wiskunde) ja:期待値 no:Forventning pl:Wartość oczekiwana pt:Valor esperado ru:Математическое ожидание su:Nilai ekspektasi sv:Väntevärde vi:Giá trị kỳ vọng zh:期望值