- Source: Expected value
In probability theory, the expected value (also called expectation, expectancy, expectation operator, mathematical expectation, mean, expectation value, or first moment) is a generalization of the weighted average. Informally, the expected value is the mean of the possible values a random variable can take, weighted by the probability of those outcomes. Since it is obtained through arithmetic, the expected value sometimes may not even be included in the sample data set; it is not the value you would "expect" to get in reality.
The expected value of a random variable with a finite number of outcomes is a weighted average of all possible outcomes. In the case of a continuum of possible outcomes, the expectation is defined by integration. In the axiomatic foundation for probability provided by measure theory, the expectation is given by Lebesgue integration.
The expected value of a random variable X is often denoted by E(X), E[X], or EX, with E also often stylized as
E
{\displaystyle \mathbb {E} }
or E.
History
The idea of the expected value originated in the middle of the 17th century from the study of the so-called problem of points, which seeks to divide the stakes in a fair way between two players, who have to end their game before it is properly finished. This problem had been debated for centuries. Many conflicting proposals and solutions had been suggested over the years when it was posed to Blaise Pascal by French writer and amateur mathematician Chevalier de Méré in 1654. Méré claimed that this problem could not be solved and that it showed just how flawed mathematics was when it came to its application to the real world. Pascal, being a mathematician, was provoked and determined to solve the problem once and for all.
He began to discuss the problem in the famous series of letters to Pierre de Fermat. Soon enough, they both independently came up with a solution. They solved the problem in different computational ways, but their results were identical because their computations were based on the same fundamental principle. The principle is that the value of a future gain should be directly proportional to the chance of getting it. This principle seemed to have come naturally to both of them. They were very pleased by the fact that they had found essentially the same solution, and this in turn made them absolutely convinced that they had solved the problem conclusively; however, they did not publish their findings. They only informed a small circle of mutual scientific friends in Paris about it.
In Dutch mathematician Christiaan Huygens' book, he considered the problem of points, and presented a solution based on the same principle as the solutions of Pascal and Fermat. Huygens published his treatise in 1657, (see Huygens (1657)) "De ratiociniis in ludo aleæ" on probability theory just after visiting Paris. The book extended the concept of expectation by adding rules for how to calculate expectations in more complicated situations than the original problem (e.g., for three or more players), and can be seen as the first successful attempt at laying down the foundations of the theory of probability.
In the foreword to his treatise, Huygens wrote:
It should be said, also, that for some time some of the best mathematicians of France have occupied themselves with this kind of calculus so that no one should attribute to me the honour of the first invention. This does not belong to me. But these savants, although they put each other to the test by proposing to each other many questions difficult to solve, have hidden their methods. I have had therefore to examine and go deeply for myself into this matter by beginning with the elements, and it is impossible for me for this reason to affirm that I have even started from the same principle. But finally I have found that my answers in many cases do not differ from theirs.
In the mid-nineteenth century, Pafnuty Chebyshev became the first person to think systematically in terms of the expectations of random variables.
= Etymology
=Neither Pascal nor Huygens used the term "expectation" in its modern sense. In particular, Huygens writes:
That any one Chance or Expectation to win any thing is worth just such a Sum, as wou'd procure in the same Chance and Expectation at a fair Lay. ... If I expect a or b, and have an equal chance of gaining them, my Expectation is worth (a+b)/2.
More than a hundred years later, in 1814, Pierre-Simon Laplace published his tract "Théorie analytique des probabilités", where the concept of expected value was defined explicitly:
... this advantage in the theory of chance is the product of the sum hoped for by the probability of obtaining it; it is the partial sum which ought to result when we do not wish to run the risks of the event in supposing that the division is made proportional to the probabilities. This division is the only equitable one when all strange circumstances are eliminated; because an equal degree of probability gives an equal right for the sum hoped for. We will call this advantage mathematical hope.
Notations
The use of the letter E to denote "expected value" goes back to W. A. Whitworth in 1901. The symbol has since become popular for English writers. In German, E stands for Erwartungswert, in Spanish for esperanza matemática, and in French for espérance mathématique.
When "E" is used to denote "expected value", authors use a variety of stylizations: the expectation operator can be stylized as E (upright), E (italic), or
E
{\displaystyle \mathbb {E} }
(in blackboard bold), while a variety of bracket notations (such as E(X), E[X], and EX) are all used.
Another popular notation is μX. ⟨X⟩, ⟨X⟩av, and
X
¯
{\displaystyle {\overline {X}}}
are commonly used in physics. M(X) is used in Russian-language literature.
Definition
As discussed above, there are several context-dependent ways of defining the expected value. The simplest and original definition deals with the case of finitely many possible outcomes, such as in the flip of a coin. With the theory of infinite series, this can be extended to the case of countably many possible outcomes. It is also very common to consider the distinct case of random variables dictated by (piecewise-)continuous probability density functions, as these arise in many natural contexts. All of these specific definitions may be viewed as special cases of the general definition based upon the mathematical tools of measure theory and Lebesgue integration, which provide these different contexts with an axiomatic foundation and common language.
Any definition of expected value may be extended to define an expected value of a multidimensional random variable, i.e. a random vector X. It is defined component by component, as E[X]i = E[Xi]. Similarly, one may define the expected value of a random matrix X with components Xij by E[X]ij = E[Xij].
= Random variables with finitely many outcomes
=Consider a random variable X with a finite list x1, ..., xk of possible outcomes, each of which (respectively) has probability p1, ..., pk of occurring. The expectation of X is defined as
E
[
X
]
=
x
1
p
1
+
x
2
p
2
+
⋯
+
x
k
p
k
.
{\displaystyle \operatorname {E} [X]=x_{1}p_{1}+x_{2}p_{2}+\cdots +x_{k}p_{k}.}
Since the probabilities must satisfy p1 + ⋅⋅⋅ + pk = 1, it is natural to interpret E[X] as a weighted average of the xi values, with weights given by their probabilities pi.
In the special case that all possible outcomes are equiprobable (that is, p1 = ⋅⋅⋅ = pk), the weighted average is given by the standard average. In the general case, the expected value takes into account the fact that some outcomes are more likely than others.
Examples
Let
X
{\displaystyle X}
represent the outcome of a roll of a fair six-sided die. More specifically,
X
{\displaystyle X}
will be the number of pips showing on the top face of the die after the toss. The possible values for
X
{\displaystyle X}
are 1, 2, 3, 4, 5, and 6, all of which are equally likely with a probability of 1/6. The expectation of
X
{\displaystyle X}
is
E
[
X
]
=
1
⋅
1
6
+
2
⋅
1
6
+
3
⋅
1
6
+
4
⋅
1
6
+
5
⋅
1
6
+
6
⋅
1
6
=
3.5.
{\displaystyle \operatorname {E} [X]=1\cdot {\frac {1}{6}}+2\cdot {\frac {1}{6}}+3\cdot {\frac {1}{6}}+4\cdot {\frac {1}{6}}+5\cdot {\frac {1}{6}}+6\cdot {\frac {1}{6}}=3.5.}
If one rolls the die
n
{\displaystyle n}
times and computes the average (arithmetic mean) of the results, then as
n
{\displaystyle n}
grows, the average will almost surely converge to the expected value, a fact known as the strong law of large numbers.
The roulette game consists of a small ball and a wheel with 38 numbered pockets around the edge. As the wheel is spun, the ball bounces around randomly until it settles down in one of the pockets. Suppose random variable
X
{\displaystyle X}
represents the (monetary) outcome of a $1 bet on a single number ("straight up" bet). If the bet wins (which happens with probability 1/38 in American roulette), the payoff is $35; otherwise the player loses the bet. The expected profit from such a bet will be
E
[
gain from
$
1
bet
]
=
−
$
1
⋅
37
38
+
$
35
⋅
1
38
=
−
$
1
19
.
{\displaystyle \operatorname {E} [\,{\text{gain from }}\$1{\text{ bet}}\,]=-\$1\cdot {\frac {37}{38}}+\$35\cdot {\frac {1}{38}}=-\${\frac {1}{19}}.}
That is, the expected value to be won from a $1 bet is −$1/19. Thus, in 190 bets, the net loss will probably be about $10.
= Random variables with countably infinitely many outcomes
=Informally, the expectation of a random variable with a countably infinite set of possible outcomes is defined analogously as the weighted average of all possible outcomes, where the weights are given by the probabilities of realizing each given value. This is to say that
E
[
X
]
=
∑
i
=
1
∞
x
i
p
i
,
{\displaystyle \operatorname {E} [X]=\sum _{i=1}^{\infty }x_{i}\,p_{i},}
where x1, x2, ... are the possible outcomes of the random variable X and p1, p2, ... are their corresponding probabilities. In many non-mathematical textbooks, this is presented as the full definition of expected values in this context.
However, there are some subtleties with infinite summation, so the above formula is not suitable as a mathematical definition. In particular, the Riemann series theorem of mathematical analysis illustrates that the value of certain infinite sums involving positive and negative summands depends on the order in which the summands are given. Since the outcomes of a random variable have no naturally given order, this creates a difficulty in defining expected value precisely.
For this reason, many mathematical textbooks only consider the case that the infinite sum given above converges absolutely, which implies that the infinite sum is a finite number independent of the ordering of summands. In the alternative case that the infinite sum does not converge absolutely, one says the random variable does not have finite expectation.
Examples
Suppose
x
i
=
i
{\displaystyle x_{i}=i}
and
p
i
=
c
i
⋅
2
i
{\displaystyle p_{i}={\tfrac {c}{i\cdot 2^{i}}}}
for
i
=
1
,
2
,
3
,
…
,
{\displaystyle i=1,2,3,\ldots ,}
where
c
=
1
ln
2
{\displaystyle c={\tfrac {1}{\ln 2}}}
is the scaling factor which makes the probabilities sum to 1. Then we have
E
[
X
]
=
∑
i
x
i
p
i
=
1
(
c
2
)
+
2
(
c
8
)
+
3
(
c
24
)
+
⋯
=
c
2
+
c
4
+
c
8
+
⋯
=
c
=
1
ln
2
.
{\displaystyle \operatorname {E} [X]\,=\sum _{i}x_{i}p_{i}=1({\tfrac {c}{2}})+2({\tfrac {c}{8}})+3({\tfrac {c}{24}})+\cdots \,=\,{\tfrac {c}{2}}+{\tfrac {c}{4}}+{\tfrac {c}{8}}+\cdots \,=\,c\,=\,{\tfrac {1}{\ln 2}}.}
= Random variables with density
=Now consider a random variable X which has a probability density function given by a function f on the real number line. This means that the probability of X taking on a value in any given open interval is given by the integral of f over that interval. The expectation of X is then given by the integral
E
[
X
]
=
∫
−
∞
∞
x
f
(
x
)
d
x
.
{\displaystyle \operatorname {E} [X]=\int _{-\infty }^{\infty }xf(x)\,dx.}
A general and mathematically precise formulation of this definition uses measure theory and Lebesgue integration, and the corresponding theory of absolutely continuous random variables is described in the next section. The density functions of many common distributions are piecewise continuous, and as such the theory is often developed in this restricted setting. For such functions, it is sufficient to only consider the standard Riemann integration. Sometimes continuous random variables are defined as those corresponding to this special class of densities, although the term is used differently by various authors.
Analogously to the countably-infinite case above, there are subtleties with this expression due to the infinite region of integration. Such subtleties can be seen concretely if the distribution of X is given by the Cauchy distribution Cauchy(0, π), so that f(x) = (x2 + π2)−1. It is straightforward to compute in this case that
∫
a
b
x
f
(
x
)
d
x
=
∫
a
b
x
x
2
+
π
2
d
x
=
1
2
ln
b
2
+
π
2
a
2
+
π
2
.
{\displaystyle \int _{a}^{b}xf(x)\,dx=\int _{a}^{b}{\frac {x}{x^{2}+\pi ^{2}}}\,dx={\frac {1}{2}}\ln {\frac {b^{2}+\pi ^{2}}{a^{2}+\pi ^{2}}}.}
The limit of this expression as a → −∞ and b → ∞ does not exist: if the limits are taken so that a = −b, then the limit is zero, while if the constraint 2a = −b is taken, then the limit is ln(2).
To avoid such ambiguities, in mathematical textbooks it is common to require that the given integral converges absolutely, with E[X] left undefined otherwise. However, measure-theoretic notions as given below can be used to give a systematic definition of E[X] for more general random variables X.
= Arbitrary real-valued random variables
=All definitions of the expected value may be expressed in the language of measure theory. In general, if X is a real-valued random variable defined on a probability space (Ω, Σ, P), then the expected value of X, denoted by E[X], is defined as the Lebesgue integral
E
[
X
]
=
∫
Ω
X
d
P
.
{\displaystyle \operatorname {E} [X]=\int _{\Omega }X\,d\operatorname {P} .}
Despite the newly abstract situation, this definition is extremely similar in nature to the very simplest definition of expected values, given above, as certain weighted averages. This is because, in measure theory, the value of the Lebesgue integral of X is defined via weighted averages of approximations of X which take on finitely many values. Moreover, if given a random variable with finitely or countably many possible values, the Lebesgue theory of expectation is identical to the summation formulas given above. However, the Lebesgue theory clarifies the scope of the theory of probability density functions. A random variable X is said to be absolutely continuous if any of the following conditions are satisfied:
there is a nonnegative measurable function f on the real line such that
P
(
X
∈
A
)
=
∫
A
f
(
x
)
d
x
,
{\displaystyle \operatorname {P} (X\in A)=\int _{A}f(x)\,dx,}
for any Borel set A, in which the integral is Lebesgue.
the cumulative distribution function of X is absolutely continuous.
for any Borel set A of real numbers with Lebesgue measure equal to zero, the probability of X being valued in A is also equal to zero
for any positive number ε there is a positive number δ such that: if A is a Borel set with Lebesgue measure less than δ, then the probability of X being valued in A is less than ε.
These conditions are all equivalent, although this is nontrivial to establish. In this definition, f is called the probability density function of X (relative to Lebesgue measure). According to the change-of-variables formula for Lebesgue integration, combined with the law of the unconscious statistician, it follows that
E
[
X
]
≡
∫
Ω
X
d
P
=
∫
R
x
f
(
x
)
d
x
{\displaystyle \operatorname {E} [X]\equiv \int _{\Omega }X\,d\operatorname {P} =\int _{\mathbb {R} }xf(x)\,dx}
for any absolutely continuous random variable X. The above discussion of continuous random variables is thus a special case of the general Lebesgue theory, due to the fact that every piecewise-continuous function is measurable.
The expected value of any real-valued random variable
X
{\displaystyle X}
can also be defined on the graph of its cumulative distribution function
F
{\displaystyle F}
by a nearby equality of areas. In fact,
E
[
X
]
=
μ
{\displaystyle \operatorname {E} [X]=\mu }
with a real number
μ
{\displaystyle \mu }
if and only if the two surfaces in the
x
{\displaystyle x}
-
y
{\displaystyle y}
-plane, described by
x
≤
μ
,
0
≤
y
≤
F
(
x
)
or
x
≥
μ
,
F
(
x
)
≤
y
≤
1
{\displaystyle x\leq \mu ,\;\,0\leq y\leq F(x)\quad {\text{or}}\quad x\geq \mu ,\;\,F(x)\leq y\leq 1}
respectively, have the same finite area, i.e. if
∫
−
∞
μ
F
(
x
)
d
x
=
∫
μ
∞
(
1
−
F
(
x
)
)
d
x
{\displaystyle \int _{-\infty }^{\mu }F(x)\,dx=\int _{\mu }^{\infty }{\big (}1-F(x){\big )}\,dx}
and both improper Riemann integrals converge. Finally, this is equivalent to the representation
E
[
X
]
=
∫
0
∞
(
1
−
F
(
x
)
)
d
x
−
∫
−
∞
0
F
(
x
)
d
x
,
{\displaystyle \operatorname {E} [X]=\int _{0}^{\infty }{\bigl (}1-F(x){\bigr )}\,dx-\int _{-\infty }^{0}F(x)\,dx,}
also with convergent integrals.
= Infinite expected values
=Expected values as defined above are automatically finite numbers. However, in many cases it is fundamental to be able to consider expected values of ±∞. This is intuitive, for example, in the case of the St. Petersburg paradox, in which one considers a random variable with possible outcomes xi = 2i, with associated probabilities pi = 2−i, for i ranging over all positive integers. According to the summation formula in the case of random variables with countably many outcomes, one has
E
[
X
]
=
∑
i
=
1
∞
x
i
p
i
=
2
⋅
1
2
+
4
⋅
1
4
+
8
⋅
1
8
+
16
⋅
1
16
+
⋯
=
1
+
1
+
1
+
1
+
⋯
.
{\displaystyle \operatorname {E} [X]=\sum _{i=1}^{\infty }x_{i}\,p_{i}=2\cdot {\frac {1}{2}}+4\cdot {\frac {1}{4}}+8\cdot {\frac {1}{8}}+16\cdot {\frac {1}{16}}+\cdots =1+1+1+1+\cdots .}
It is natural to say that the expected value equals +∞.
There is a rigorous mathematical theory underlying such ideas, which is often taken as part of the definition of the Lebesgue integral. The first fundamental observation is that, whichever of the above definitions are followed, any nonnegative random variable whatsoever can be given an unambiguous expected value; whenever absolute convergence fails, then the expected value can be defined as +∞. The second fundamental observation is that any random variable can be written as the difference of two nonnegative random variables. Given a random variable X, one defines the positive and negative parts by X + = max(X, 0) and X − = −min(X, 0). These are nonnegative random variables, and it can be directly checked that X = X + − X −. Since E[X +] and E[X −] are both then defined as either nonnegative numbers or +∞, it is then natural to define:
E
[
X
]
=
{
E
[
X
+
]
−
E
[
X
−
]
if
E
[
X
+
]
<
∞
and
E
[
X
−
]
<
∞
;
+
∞
if
E
[
X
+
]
=
∞
and
E
[
X
−
]
<
∞
;
−
∞
if
E
[
X
+
]
<
∞
and
E
[
X
−
]
=
∞
;
undefined
if
E
[
X
+
]
=
∞
and
E
[
X
−
]
=
∞
.
{\displaystyle \operatorname {E} [X]={\begin{cases}\operatorname {E} [X^{+}]-\operatorname {E} [X^{-}]&{\text{if }}\operatorname {E} [X^{+}]<\infty {\text{ and }}\operatorname {E} [X^{-}]<\infty ;\\+\infty &{\text{if }}\operatorname {E} [X^{+}]=\infty {\text{ and }}\operatorname {E} [X^{-}]<\infty ;\\-\infty &{\text{if }}\operatorname {E} [X^{+}]<\infty {\text{ and }}\operatorname {E} [X^{-}]=\infty ;\\{\text{undefined}}&{\text{if }}\operatorname {E} [X^{+}]=\infty {\text{ and }}\operatorname {E} [X^{-}]=\infty .\end{cases}}}
According to this definition, E[X] exists and is finite if and only if E[X +] and E[X −] are both finite. Due to the formula |X| = X + + X −, this is the case if and only if E|X| is finite, and this is equivalent to the absolute convergence conditions in the definitions above. As such, the present considerations do not define finite expected values in any cases not previously considered; they are only useful for infinite expectations.
In the case of the St. Petersburg paradox, one has X − = 0 and so E[X] = +∞ as desired.
Suppose the random variable X takes values 1, −2,3, −4, ... with respective probabilities 6π−2, 6(2π)−2, 6(3π)−2, 6(4π)−2, .... Then it follows that X + takes value 2k−1 with probability 6((2k−1)π)−2 for each positive integer k, and takes value 0 with remaining probability. Similarly, X − takes value 2k with probability 6(2kπ)−2 for each positive integer k and takes value 0 with remaining probability. Using the definition for non-negative random variables, one can show that both E[X +] = ∞ and E[X −] = ∞ (see Harmonic series). Hence, in this case the expectation of X is undefined.
Similarly, the Cauchy distribution, as discussed above, has undefined expectation.
Expected values of common distributions
The following table gives the expected values of some commonly occurring probability distributions. The third column gives the expected values both in the form immediately given by the definition, as well as in the simplified form obtained by computation therefrom. The details of these computations, which are not always straightforward, can be found in the indicated references.
Properties
The basic properties below (and their names in bold) replicate or follow immediately from those of Lebesgue integral. Note that the letters "a.s." stand for "almost surely"—a central property of the Lebesgue integral. Basically, one says that an inequality like
X
≥
0
{\displaystyle X\geq 0}
is true almost surely, when the probability measure attributes zero-mass to the complementary event
{
X
<
0
}
.
{\displaystyle \left\{X<0\right\}.}
Non-negativity: If
X
≥
0
{\displaystyle X\geq 0}
(a.s.), then
E
[
X
]
≥
0.
{\displaystyle \operatorname {E} [X]\geq 0.}
Linearity of expectation: The expected value operator (or expectation operator)
E
[
⋅
]
{\displaystyle \operatorname {E} [\cdot ]}
is linear in the sense that, for any random variables
X
{\displaystyle X}
and
Y
,
{\displaystyle Y,}
and a constant
a
,
{\displaystyle a,}
E
[
X
+
Y
]
=
E
[
X
]
+
E
[
Y
]
,
E
[
a
X
]
=
a
E
[
X
]
,
{\displaystyle {\begin{aligned}\operatorname {E} [X+Y]&=\operatorname {E} [X]+\operatorname {E} [Y],\\\operatorname {E} [aX]&=a\operatorname {E} [X],\end{aligned}}}
whenever the right-hand side is well-defined. By induction, this means that the expected value of the sum of any finite number of random variables is the sum of the expected values of the individual random variables, and the expected value scales linearly with a multiplicative constant. Symbolically, for
N
{\displaystyle N}
random variables
X
i
{\displaystyle X_{i}}
and constants
a
i
(
1
≤
i
≤
N
)
,
{\displaystyle a_{i}(1\leq i\leq N),}
we have
E
[
∑
i
=
1
N
a
i
X
i
]
=
∑
i
=
1
N
a
i
E
[
X
i
]
.
{\textstyle \operatorname {E} \left[\sum _{i=1}^{N}a_{i}X_{i}\right]=\sum _{i=1}^{N}a_{i}\operatorname {E} [X_{i}].}
If we think of the set of random variables with finite expected value as forming a vector space, then the linearity of expectation implies that the expected value is a linear form on this vector space.
Monotonicity: If
X
≤
Y
{\displaystyle X\leq Y}
(a.s.), and both
E
[
X
]
{\displaystyle \operatorname {E} [X]}
and
E
[
Y
]
{\displaystyle \operatorname {E} [Y]}
exist, then
E
[
X
]
≤
E
[
Y
]
.
{\displaystyle \operatorname {E} [X]\leq \operatorname {E} [Y].}
Proof follows from the linearity and the non-negativity property for
Z
=
Y
−
X
,
{\displaystyle Z=Y-X,}
since
Z
≥
0
{\displaystyle Z\geq 0}
(a.s.).
Non-degeneracy: If
E
[
|
X
|
]
=
0
,
{\displaystyle \operatorname {E} [|X|]=0,}
then
X
=
0
{\displaystyle X=0}
(a.s.).
If
X
=
Y
{\displaystyle X=Y}
(a.s.), then
E
[
X
]
=
E
[
Y
]
.
{\displaystyle \operatorname {E} [X]=\operatorname {E} [Y].}
In other words, if X and Y are random variables that take different values with probability zero, then the expectation of X will equal the expectation of Y.
If
X
=
c
{\displaystyle X=c}
(a.s.) for some real number c, then
E
[
X
]
=
c
.
{\displaystyle \operatorname {E} [X]=c.}
In particular, for a random variable
X
{\displaystyle X}
with well-defined expectation,
E
[
E
[
X
]
]
=
E
[
X
]
.
{\displaystyle \operatorname {E} [\operatorname {E} [X]]=\operatorname {E} [X].}
A well defined expectation implies that there is one number, or rather, one constant that defines the expected value. Thus follows that the expectation of this constant is just the original expected value.
As a consequence of the formula |X| = X+ + X− as discussed above, together with the triangle inequality, it follows that for any random variable
X
{\displaystyle X}
with well-defined expectation, one has
|
E
[
X
]
|
≤
E
|
X
|
.
{\displaystyle |\operatorname {E} [X]|\leq \operatorname {E} |X|.}
Let 1A denote the indicator function of an event A, then E[1A] is given by the probability of A. This is nothing but a different way of stating the expectation of a Bernoulli random variable, as calculated in the table above.
Formulas in terms of CDF: If
F
(
x
)
{\displaystyle F(x)}
is the cumulative distribution function of a random variable X, then
E
[
X
]
=
∫
−
∞
∞
x
d
F
(
x
)
,
{\displaystyle \operatorname {E} [X]=\int _{-\infty }^{\infty }x\,dF(x),}
where the values on both sides are well defined or not well defined simultaneously, and the integral is taken in the sense of Lebesgue-Stieltjes. As a consequence of integration by parts as applied to this representation of E[X], it can be proved that
E
[
X
]
=
∫
0
∞
(
1
−
F
(
x
)
)
d
x
−
∫
−
∞
0
F
(
x
)
d
x
,
{\displaystyle \operatorname {E} [X]=\int _{0}^{\infty }(1-F(x))\,dx-\int _{-\infty }^{0}F(x)\,dx,}
with the integrals taken in the sense of Lebesgue. As a special case, for any random variable X valued in the nonnegative integers {0, 1, 2, 3, ...}, one has
E
[
X
]
=
∑
n
=
0
∞
Pr
(
X
>
n
)
,
{\displaystyle \operatorname {E} [X]=\sum _{n=0}^{\infty }\Pr(X>n),}
where P denotes the underlying probability measure.
Non-multiplicativity: In general, the expected value is not multiplicative, i.e.
E
[
X
Y
]
{\displaystyle \operatorname {E} [XY]}
is not necessarily equal to
E
[
X
]
⋅
E
[
Y
]
.
{\displaystyle \operatorname {E} [X]\cdot \operatorname {E} [Y].}
If
X
{\displaystyle X}
and
Y
{\displaystyle Y}
are independent, then one can show that
E
[
X
Y
]
=
E
[
X
]
E
[
Y
]
.
{\displaystyle \operatorname {E} [XY]=\operatorname {E} [X]\operatorname {E} [Y].}
If the random variables are dependent, then generally
E
[
X
Y
]
≠
E
[
X
]
E
[
Y
]
,
{\displaystyle \operatorname {E} [XY]\neq \operatorname {E} [X]\operatorname {E} [Y],}
although in special cases of dependency the equality may hold.
Law of the unconscious statistician: The expected value of a measurable function of
X
,
{\displaystyle X,}
g
(
X
)
,
{\displaystyle g(X),}
given that
X
{\displaystyle X}
has a probability density function
f
(
x
)
,
{\displaystyle f(x),}
is given by the inner product of
f
{\displaystyle f}
and
g
{\displaystyle g}
:
E
[
g
(
X
)
]
=
∫
R
g
(
x
)
f
(
x
)
d
x
.
{\displaystyle \operatorname {E} [g(X)]=\int _{\mathbb {R} }g(x)f(x)\,dx.}
This formula also holds in multidimensional case, when
g
{\displaystyle g}
is a function of several random variables, and
f
{\displaystyle f}
is their joint density.
= Inequalities
=Concentration inequalities control the likelihood of a random variable taking on large values. Markov's inequality is among the best-known and simplest to prove: for a nonnegative random variable X and any positive number a, it states that
P
(
X
≥
a
)
≤
E
[
X
]
a
.
{\displaystyle \operatorname {P} (X\geq a)\leq {\frac {\operatorname {E} [X]}{a}}.}
If X is any random variable with finite expectation, then Markov's inequality may be applied to the random variable |X−E[X]|2 to obtain Chebyshev's inequality
P
(
|
X
−
E
[
X
]
|
≥
a
)
≤
Var
[
X
]
a
2
,
{\displaystyle \operatorname {P} (|X-{\text{E}}[X]|\geq a)\leq {\frac {\operatorname {Var} [X]}{a^{2}}},}
where Var is the variance. These inequalities are significant for their nearly complete lack of conditional assumptions. For example, for any random variable with finite expectation, the Chebyshev inequality implies that there is at least a 75% probability of an outcome being within two standard deviations of the expected value. However, in special cases the Markov and Chebyshev inequalities often give much weaker information than is otherwise available. For example, in the case of an unweighted dice, Chebyshev's inequality says that odds of rolling between 1 and 6 is at least 53%; in reality, the odds are of course 100%. The Kolmogorov inequality extends the Chebyshev inequality to the context of sums of random variables.
The following three inequalities are of fundamental importance in the field of mathematical analysis and its applications to probability theory.
Jensen's inequality: Let f: R → R be a convex function and X a random variable with finite expectation. Then
f
(
E
(
X
)
)
≤
E
(
f
(
X
)
)
.
{\displaystyle f(\operatorname {E} (X))\leq \operatorname {E} (f(X)).}
Part of the assertion is that the negative part of f(X) has finite expectation, so that the right-hand side is well-defined (possibly infinite). Convexity of f can be phrased as saying that the output of the weighted average of two inputs under-estimates the same weighted average of the two outputs; Jensen's inequality extends this to the setting of completely general weighted averages, as represented by the expectation. In the special case that f(x) = |x|t/s for positive numbers s < t, one obtains the Lyapunov inequality
(
E
|
X
|
s
)
1
/
s
≤
(
E
|
X
|
t
)
1
/
t
.
{\displaystyle \left(\operatorname {E} |X|^{s}\right)^{1/s}\leq \left(\operatorname {E} |X|^{t}\right)^{1/t}.}
This can also be proved by the Hölder inequality. In measure theory, this is particularly notable for proving the inclusion Ls ⊂ Lt of Lp spaces, in the special case of probability spaces.
Hölder's inequality: if p > 1 and q > 1 are numbers satisfying p −1 + q −1 = 1, then
E
|
X
Y
|
≤
(
E
|
X
|
p
)
1
/
p
(
E
|
Y
|
q
)
1
/
q
.
{\displaystyle \operatorname {E} |XY|\leq (\operatorname {E} |X|^{p})^{1/p}(\operatorname {E} |Y|^{q})^{1/q}.}
for any random variables X and Y. The special case of p = q = 2 is called the Cauchy–Schwarz inequality, and is particularly well-known.
Minkowski inequality: given any number p ≥ 1, for any random variables X and Y with E|X|p and E|Y|p both finite, it follows that E|X + Y|p is also finite and
(
E
|
X
+
Y
|
p
)
1
/
p
≤
(
E
|
X
|
p
)
1
/
p
+
(
E
|
Y
|
p
)
1
/
p
.
{\displaystyle {\Bigl (}\operatorname {E} |X+Y|^{p}{\Bigr )}^{1/p}\leq {\Bigl (}\operatorname {E} |X|^{p}{\Bigr )}^{1/p}+{\Bigl (}\operatorname {E} |Y|^{p}{\Bigr )}^{1/p}.}
The Hölder and Minkowski inequalities can be extended to general measure spaces, and are often given in that context. By contrast, the Jensen inequality is special to the case of probability spaces.
= Expectations under convergence of random variables
=In general, it is not the case that
E
[
X
n
]
→
E
[
X
]
{\displaystyle \operatorname {E} [X_{n}]\to \operatorname {E} [X]}
even if
X
n
→
X
{\displaystyle X_{n}\to X}
pointwise. Thus, one cannot interchange limits and expectation, without additional conditions on the random variables. To see this, let
U
{\displaystyle U}
be a random variable distributed uniformly on
[
0
,
1
]
.
{\displaystyle [0,1].}
For
n
≥
1
,
{\displaystyle n\geq 1,}
define a sequence of random variables
X
n
=
n
⋅
1
{
U
∈
(
0
,
1
n
)
}
,
{\displaystyle X_{n}=n\cdot \mathbf {1} \left\{U\in \left(0,{\tfrac {1}{n}}\right)\right\},}
with
1
{
A
}
{\displaystyle \mathbf {1} \{A\}}
being the indicator function of the event
A
.
{\displaystyle A.}
Then, it follows that
X
n
→
0
{\displaystyle X_{n}\to 0}
pointwise. But,
E
[
X
n
]
=
n
⋅
Pr
(
U
∈
[
0
,
1
n
]
)
=
n
⋅
1
n
=
1
{\displaystyle \operatorname {E} [X_{n}]=n\cdot \Pr \left(U\in \left[0,{\tfrac {1}{n}}\right]\right)=n\cdot {\tfrac {1}{n}}=1}
for each
n
.
{\displaystyle n.}
Hence,
lim
n
→
∞
E
[
X
n
]
=
1
≠
0
=
E
[
lim
n
→
∞
X
n
]
.
{\displaystyle \lim _{n\to \infty }\operatorname {E} [X_{n}]=1\neq 0=\operatorname {E} \left[\lim _{n\to \infty }X_{n}\right].}
Analogously, for general sequence of random variables
{
Y
n
:
n
≥
0
}
,
{\displaystyle \{Y_{n}:n\geq 0\},}
the expected value operator is not
σ
{\displaystyle \sigma }
-additive, i.e.
E
[
∑
n
=
0
∞
Y
n
]
≠
∑
n
=
0
∞
E
[
Y
n
]
.
{\displaystyle \operatorname {E} \left[\sum _{n=0}^{\infty }Y_{n}\right]\neq \sum _{n=0}^{\infty }\operatorname {E} [Y_{n}].}
An example is easily obtained by setting
Y
0
=
X
1
{\displaystyle Y_{0}=X_{1}}
and
Y
n
=
X
n
+
1
−
X
n
{\displaystyle Y_{n}=X_{n+1}-X_{n}}
for
n
≥
1
,
{\displaystyle n\geq 1,}
where
X
n
{\displaystyle X_{n}}
is as in the previous example.
A number of convergence results specify exact conditions which allow one to interchange limits and expectations, as specified below.
Monotone convergence theorem: Let
{
X
n
:
n
≥
0
}
{\displaystyle \{X_{n}:n\geq 0\}}
be a sequence of random variables, with
0
≤
X
n
≤
X
n
+
1
{\displaystyle 0\leq X_{n}\leq X_{n+1}}
(a.s) for each
n
≥
0.
{\displaystyle n\geq 0.}
Furthermore, let
X
n
→
X
{\displaystyle X_{n}\to X}
pointwise. Then, the monotone convergence theorem states that
lim
n
E
[
X
n
]
=
E
[
X
]
.
{\displaystyle \lim _{n}\operatorname {E} [X_{n}]=\operatorname {E} [X].}
Using the monotone convergence theorem, one can show that expectation indeed satisfies countable additivity for non-negative random variables. In particular, let
{
X
i
}
i
=
0
∞
{\displaystyle \{X_{i}\}_{i=0}^{\infty }}
be non-negative random variables. It follows from the monotone convergence theorem that
E
[
∑
i
=
0
∞
X
i
]
=
∑
i
=
0
∞
E
[
X
i
]
.
{\displaystyle \operatorname {E} \left[\sum _{i=0}^{\infty }X_{i}\right]=\sum _{i=0}^{\infty }\operatorname {E} [X_{i}].}
Fatou's lemma: Let
{
X
n
≥
0
:
n
≥
0
}
{\displaystyle \{X_{n}\geq 0:n\geq 0\}}
be a sequence of non-negative random variables. Fatou's lemma states that
E
[
lim inf
n
X
n
]
≤
lim inf
n
E
[
X
n
]
.
{\displaystyle \operatorname {E} [\liminf _{n}X_{n}]\leq \liminf _{n}\operatorname {E} [X_{n}].}
Corollary. Let
X
n
≥
0
{\displaystyle X_{n}\geq 0}
with
E
[
X
n
]
≤
C
{\displaystyle \operatorname {E} [X_{n}]\leq C}
for all
n
≥
0.
{\displaystyle n\geq 0.}
If
X
n
→
X
{\displaystyle X_{n}\to X}
(a.s), then
E
[
X
]
≤
C
.
{\displaystyle \operatorname {E} [X]\leq C.}
Proof is by observing that
X
=
lim inf
n
X
n
{\textstyle X=\liminf _{n}X_{n}}
(a.s.) and applying Fatou's lemma.
Dominated convergence theorem: Let
{
X
n
:
n
≥
0
}
{\displaystyle \{X_{n}:n\geq 0\}}
be a sequence of random variables. If
X
n
→
X
{\displaystyle X_{n}\to X}
pointwise (a.s.),
|
X
n
|
≤
Y
≤
+
∞
{\displaystyle |X_{n}|\leq Y\leq +\infty }
(a.s.), and
E
[
Y
]
<
∞
.
{\displaystyle \operatorname {E} [Y]<\infty .}
Then, according to the dominated convergence theorem,
E
|
X
|
≤
E
[
Y
]
<
∞
{\displaystyle \operatorname {E} |X|\leq \operatorname {E} [Y]<\infty }
;
lim
n
E
[
X
n
]
=
E
[
X
]
{\displaystyle \lim _{n}\operatorname {E} [X_{n}]=\operatorname {E} [X]}
lim
n
E
|
X
n
−
X
|
=
0.
{\displaystyle \lim _{n}\operatorname {E} |X_{n}-X|=0.}
Uniform integrability: In some cases, the equality
lim
n
E
[
X
n
]
=
E
[
lim
n
X
n
]
{\displaystyle \lim _{n}\operatorname {E} [X_{n}]=\operatorname {E} [\lim _{n}X_{n}]}
holds when the sequence
{
X
n
}
{\displaystyle \{X_{n}\}}
is uniformly integrable.
= Relationship with characteristic function
=The probability density function
f
X
{\displaystyle f_{X}}
of a scalar random variable
X
{\displaystyle X}
is related to its characteristic function
φ
X
{\displaystyle \varphi _{X}}
by the inversion formula:
f
X
(
x
)
=
1
2
π
∫
R
e
−
i
t
x
φ
X
(
t
)
d
t
.
{\displaystyle f_{X}(x)={\frac {1}{2\pi }}\int _{\mathbb {R} }e^{-itx}\varphi _{X}(t)\,dt.}
For the expected value of
g
(
X
)
{\displaystyle g(X)}
(where
g
:
R
→
R
{\displaystyle g:{\mathbb {R} }\to {\mathbb {R} }}
is a Borel function), we can use this inversion formula to obtain
E
[
g
(
X
)
]
=
1
2
π
∫
R
g
(
x
)
[
∫
R
e
−
i
t
x
φ
X
(
t
)
d
t
]
d
x
.
{\displaystyle \operatorname {E} [g(X)]={\frac {1}{2\pi }}\int _{\mathbb {R} }g(x)\left[\int _{\mathbb {R} }e^{-itx}\varphi _{X}(t)\,dt\right]dx.}
If
E
[
g
(
X
)
]
{\displaystyle \operatorname {E} [g(X)]}
is finite, changing the order of integration, we get, in accordance with Fubini–Tonelli theorem,
E
[
g
(
X
)
]
=
1
2
π
∫
R
G
(
t
)
φ
X
(
t
)
d
t
,
{\displaystyle \operatorname {E} [g(X)]={\frac {1}{2\pi }}\int _{\mathbb {R} }G(t)\varphi _{X}(t)\,dt,}
where
G
(
t
)
=
∫
R
g
(
x
)
e
−
i
t
x
d
x
{\displaystyle G(t)=\int _{\mathbb {R} }g(x)e^{-itx}\,dx}
is the Fourier transform of
g
(
x
)
.
{\displaystyle g(x).}
The expression for
E
[
g
(
X
)
]
{\displaystyle \operatorname {E} [g(X)]}
also follows directly from the Plancherel theorem.
Uses and applications
The expectation of a random variable plays an important role in a variety of contexts.
In statistics, where one seeks estimates for unknown parameters based on available data gained from samples, the sample mean serves as an estimate for the expectation, and is itself a random variable. In such settings, the sample mean is considered to meet the desirable criterion for a "good" estimator in being unbiased; that is, the expected value of the estimate is equal to the true value of the underlying parameter.
For a different example, in decision theory, an agent making an optimal choice in the context of incomplete information is often assumed to maximize the expected value of their utility function.
It is possible to construct an expected value equal to the probability of an event by taking the expectation of an indicator function that is one if the event has occurred and zero otherwise. This relationship can be used to translate properties of expected values into properties of probabilities, e.g. using the law of large numbers to justify estimating probabilities by frequencies.
The expected values of the powers of X are called the moments of X; the moments about the mean of X are expected values of powers of X − E[X]. 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. If the expected value exists, this procedure 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 (under fairly mild conditions) that, as the size of the sample gets larger, the variance of this estimate gets smaller.
This property is often exploited in a wide variety of applications, including general problems of statistical estimation and machine learning, to estimate (probabilistic) quantities of interest via Monte Carlo methods, since most quantities of interest can be written in terms of expectation, e.g.
P
(
X
∈
A
)
=
E
[
1
A
]
,
{\displaystyle \operatorname {P} ({X\in {\mathcal {A}}})=\operatorname {E} [{\mathbf {1} }_{\mathcal {A}}],}
where
1
A
{\displaystyle {\mathbf {1} }_{\mathcal {A}}}
is the indicator function of the set
A
.
{\displaystyle {\mathcal {A}}.}
In classical mechanics, the center of mass is an analogous concept to expectation. For example, suppose X is a discrete random variable with values xi and corresponding probabilities pi. Now consider a weightless rod on which are placed weights, at locations xi along the rod and having masses pi (whose sum is one). The point at which the rod balances is E[X].
Expected values can also be used to compute the variance, by means of the computational formula for the variance
Var
(
X
)
=
E
[
X
2
]
−
(
E
[
X
]
)
2
.
{\displaystyle \operatorname {Var} (X)=\operatorname {E} [X^{2}]-(\operatorname {E} [X])^{2}.}
A very important application of the expectation value is in the field of quantum mechanics. The expectation value of a quantum mechanical operator
A
^
{\displaystyle {\hat {A}}}
operating on a quantum state vector
|
ψ
⟩
{\displaystyle |\psi \rangle }
is written as
⟨
A
^
⟩
=
⟨
ψ
|
A
^
|
ψ
⟩
.
{\displaystyle \langle {\hat {A}}\rangle =\langle \psi |{\hat {A}}|\psi \rangle .}
The uncertainty in
A
^
{\displaystyle {\hat {A}}}
can be calculated by the formula
(
Δ
A
)
2
=
⟨
A
^
2
⟩
−
⟨
A
^
⟩
2
{\displaystyle (\Delta A)^{2}=\langle {\hat {A}}^{2}\rangle -\langle {\hat {A}}\rangle ^{2}}
.
See also
Central tendency
Conditional expectation
Expectation (epistemic)
Expectile – related to expectations in a way analogous to that in which quantiles are related to medians
Law of total expectation – the expected value of the conditional expected value of X given Y is the same as the expected value of X
Median – indicated by
m
{\displaystyle m}
in a drawing above
Nonlinear expectation – a generalization of the expected value
Population mean
Predicted value
Wald's equation – an equation for calculating the expected value of a random number of random variables
References
Bibliography
Kata Kunci Pencarian:
- Nilai pada risiko
- Neuroekonomi
- Nilai harapan
- Globalisasi
- Daftar eksoplanet ekstrem
- Uji hipotesis
- Liga Utama Inggris
- Tangan tak terlihat
- Lockheed Martin F-35 Lightning II
- Daftar film terlaris
- Expected value
- Expected
- Expected value (disambiguation)
- Expected shortfall
- Expected value of perfect information
- Expected commercial value
- Conditional expectation
- Expected utility hypothesis
- Expected return
- Expected value of including uncertainty