


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Suppose X is a random variable with mass function f. If Y = g(X) for some function g, then what is the expectation of Y? One way to address th∑is is to first find the mass function fY of Y , and then to compute EY as
a afY^ (a)^ [provided^ that^ the^ sum^ makes^ sense,^ of^ course].^ But^ there^ is^ a more efficient method.
Theorem 11.1. If X has mass function f and g is some function, then
E [g(X)] =
x
g(x)f (x),
provided that either g(x) ≥ 0 for all x, or
x |g(x)|f^ (x)^ <^ ∞.
Proof. Let y 1 , y 2 ,... denote the possible values of g(X). Consider the set Aj = {x : g(x) = yj } for all j ≥ 1. Because the yj ’s are distinct, it follows that the Aj ’s are disjoint. Moreover,
E [g(X)] =
j=
yj P{g(X) = yj } =
j=
yj P{X ∈ Aj }
j=
yj
x∈Aj
f (x) =
j=
x∈Aj
g(x)f (x).
Because the Aj ’s are disjoint,
∑^ ∞
j=
x∈Aj
g(x)f (x) =
x∈∪∞ j=1Aj
g(x)f (x).
The theorem follows from making one final observation: ∪∞ j=1Aj is the col- lection of all possible values of X.!
One can derive other properties of expectations by applying similar ar- guments. Here are some useful properties. For proof see the text.
Theorem 11.2. Let X be a discrete random variable with mass function f and finite expectation EX. Then:
(1) E(aX + b) = aE(X) + b for all constants a, b; (2) Ea = a for all nonrandom (constant) variables a; (3) If P{a ≤ X ≤ b} = 1, then a ≤ EX ≤ b; (4) If g(X) and h(X) have finite expectations, then
E[g(X) + h(X)] = E[g(X)] + E[h(X)].
This is called linearity.
Suppose X has mass function
f (x) =
1 / 4 if x = 0, 3 / 4 if x = 1, 0 otherwise.
Recall: EX = ( 14 × 0) + ( 34 × 1) = 34. Now let us compute E(X 2 ) using Theorem 11.1:
E(X 2 ) =
Two observations:
(1) This is obvious because X = X 2 in this particular example; and (2) E(X 2 ) '= (EX)^2. In fact, the difference between E(X 2 ) and (EX)^2 is an important quantity, called the variance of X. We will return to this topic later.
If X = Bin(n , p), then what is E(X 2 )? It may help to recall that EX = np. By Theorem 11.1,
∑^ n
k=
k 2
n k
p k^ q n−k^ =
∑^ n
k=
k
n! (k − 1)!(n − k)!
p k^ q n−k^.
Proof. Expand the trivial bound (|X| − E(|X|))^2 ≥ 0 to obtain:
X 2 − 2 |X|E(|X|) +
Take expectations, and note that b = E(|X|) is nonrandom. This proves that E(X 2 ) − 2E(|X|)E(|X|) +
The left-hand side is manifestly equal to E(X 2 ) − |E(|X|)|^2 , whence follows the theorem.!
One can use more advanced methods to prove the following: E(|X|) ≤
E(X 2 ) for all random variables X.
Note that |X| and X 2 are nonnegative. So the expectations are defined, though possibly infinite. The preceding form of the Cauchy–Schwarz in- equality implies that if E(X 2 ) is finite, then so is E(|X|).